|
ERIS Pipeline Reference Manual 1.9.2
|
Functions | |
| cpl_error_code | eris_ifu_debug_header (const cpl_propertylist *header) |
| Print all properties in a propertylist for debugging. | |
| cpl_error_code | eris_ifu_debug_frameset (const cpl_frameset *frameset) |
| Print all frames in a frameset for debugging. | |
| cpl_error_code | eris_ifu_debug_parameterlist (const cpl_parameterlist *plist) |
| Print all parameters in a parameterlist for debugging. | |
| cpl_error_code | eris_ifu_debug_propertylist (const cpl_propertylist *plist) |
| Print all properties in a propertylist for debugging. | |
| cpl_error_code | eris_ifu_debug_frame (const cpl_frame *frame) |
| Print frame information for debugging. | |
| cpl_error_code | eris_ifu_debug_cube (const cpl_imagelist *imglist) |
| Print all images in an imagelist for debugging. | |
| cpl_error_code | eris_ifu_debug_image (const cpl_image *img) |
| Print all pixel values in an image for debugging. | |
| cpl_error_code | eris_ifu_debug_vector (const cpl_vector *vec) |
| Print all values in a vector for debugging. | |
| cpl_error_code | eris_ifu_debug_array (const cpl_array *arr) |
| Print all values in an array for debugging. | |
| cpl_error_code | eris_ifu_debug_table (const cpl_table *table) |
| Print all values in a table for debugging. | |
| cpl_error_code | eris_ifu_plot_vector (const char *pre, const char *opt, const cpl_vector *vector) |
| Plot a vector for debugging. | |
| cpl_error_code | eris_ifu_plot_vectors_xy (const char *pre, const char *opt, const cpl_vector *x, const cpl_vector *y) |
| Plot vector y against vector x for debugging. | |
| cpl_error_code | eris_ifu_plot_vectors2 (const char *pre, const char **opt, const cpl_vector *x, const cpl_vector *y1, const cpl_vector *y2) |
| Plot two y-vectors against an x-vector for debugging. | |
| cpl_error_code | eris_ifu_plot_image (const char *pre, const char *opt, const cpl_image *img) |
| Plot an image for debugging. | |
This module provides debugging and diagnostic functions for printing and plotting various CPL data structures. These functions are primarily intended for development and troubleshooting purposes.
| cpl_error_code eris_ifu_debug_array | ( | const cpl_array * | arr | ) |
Print all values in an array for debugging.
| arr | The array to print |
All values contained in the array are printed for debugging purposes. Supports arrays of type CPL_TYPE_INT and CPL_TYPE_DOUBLE.
Possible cpl_error_code set in this function:
Definition at line 549 of file eris_ifu_debug.c.
References CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_debug_cube | ( | const cpl_imagelist * | imglist | ) |
Print all images in an imagelist for debugging.
| imglist | The imagelist to print |
All images contained in the imagelist are printed for debugging purposes by calling eris_ifu_debug_image() for each image.
Possible cpl_error_code set in this function:
Definition at line 404 of file eris_ifu_debug.c.
References BRK_IF_ERROR, CATCH, CATCH_MSG, CHECK_ERROR_STATE, eris_ifu_debug_image(), and TRY.
| cpl_error_code eris_ifu_debug_frame | ( | const cpl_frame * | frame | ) |
Print frame information for debugging.
| frame | The frame to print |
The CPL_FRAME_TYPE, CPL_FRAME_LEVEL, and CPL_FRAME_GROUP of the frame are printed for debugging purposes, along with the filename and tag.
Possible cpl_error_code set in this function:
Definition at line 289 of file eris_ifu_debug.c.
References CATCH, CATCH_MSG, CHECK_ERROR_STATE, GET_NEW_ERROR, RECOVER, and TRY.
Referenced by eris_ifu_debug_frameset().
| cpl_error_code eris_ifu_debug_frameset | ( | const cpl_frameset * | frameset | ) |
Print all frames in a frameset for debugging.
| frameset | The frameset to print |
All frames contained in the frameset are printed for debugging purposes, including their filenames, tags, types, groups, and levels.
Possible cpl_error_code set in this function:
Definition at line 118 of file eris_ifu_debug.c.
References BRK_IF_NULL, CATCH, CATCH_MSG, CHECK_ERROR_STATE, eris_ifu_debug_frame(), GET_NEW_ERROR, RECOVER, and TRY.
| cpl_error_code eris_ifu_debug_header | ( | const cpl_propertylist * | header | ) |
Print all properties in a propertylist for debugging.
| header | The propertylist to print |
All properties contained in the propertylist are printed as pairs of keyword and data for debugging purposes. The output is only generated when the message level is set to debug.
Possible cpl_error_code set in this function:
Definition at line 46 of file eris_ifu_debug.c.
References BRK_IF_NULL, CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_debug_image | ( | const cpl_image * | img | ) |
Print all pixel values in an image for debugging.
| img | The image to print |
All pixel values contained in the image are printed for debugging purposes. Values are printed row by row.
Possible cpl_error_code set in this function:
Definition at line 449 of file eris_ifu_debug.c.
References CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
Referenced by eris_ifu_debug_cube().
| cpl_error_code eris_ifu_debug_parameterlist | ( | const cpl_parameterlist * | plist | ) |
Print all parameters in a parameterlist for debugging.
| plist | The parameterlist to print |
All parameters contained in the parameterlist are printed for debugging purposes, showing both current values and default values in the format "Parameter name: value [default]".
Possible cpl_error_code set in this function:
Definition at line 174 of file eris_ifu_debug.c.
References BRK_WITH_ERROR, CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_debug_propertylist | ( | const cpl_propertylist * | plist | ) |
Print all properties in a propertylist for debugging.
| plist | The propertylist to print |
All properties contained in the propertylist are printed for debugging purposes using cpl_propertylist_dump().
Possible cpl_error_code set in this function:
Definition at line 250 of file eris_ifu_debug.c.
References CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_debug_table | ( | const cpl_table * | table | ) |
Print all values in a table for debugging.
| table | The table to print |
All values contained in the table are printed for debugging purposes using cpl_table_dump().
Possible cpl_error_code set in this function:
Definition at line 622 of file eris_ifu_debug.c.
References CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_debug_vector | ( | const cpl_vector * | vec | ) |
Print all values in a vector for debugging.
| vec | The vector to print |
All values contained in the vector are printed for debugging purposes, one value per line.
Possible cpl_error_code set in this function:
Definition at line 500 of file eris_ifu_debug.c.
References BRK_IF_NULL, CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_plot_image | ( | const char * | pre, |
| const char * | opt, | ||
| const cpl_image * | img | ||
| ) |
Plot an image for debugging.
| pre | Optional string with pre-plot commands (gnuplot syntax) |
| opt | Optional string with plotting options (gnuplot syntax) |
| img | The image to plot |
Plots an image only if the message level is CPL_MSG_DEBUG. Uses gnuplot for visualization with appropriate 2D plotting settings.
Possible cpl_error_code set in this function:
Definition at line 878 of file eris_ifu_debug.c.
References BRK_IF_ERROR, CATCH, CATCH_MSG, and TRY.
| cpl_error_code eris_ifu_plot_vector | ( | const char * | pre, |
| const char * | opt, | ||
| const cpl_vector * | vector | ||
| ) |
Plot a vector for debugging.
| pre | Optional string with pre-plot commands (gnuplot syntax) |
| opt | Optional string with plotting options (gnuplot syntax) |
| vector | The vector to plot |
Plots a vector only if the message level is CPL_MSG_DEBUG. Uses gnuplot for visualization. On Darwin/macOS systems, automatically sets the terminal to x11.
Possible cpl_error_code set in this function:
Definition at line 665 of file eris_ifu_debug.c.
References BRK_IF_ERROR, CATCH, CATCH_MSG, and TRY.
| cpl_error_code eris_ifu_plot_vectors2 | ( | const char * | pre, |
| const char ** | opt, | ||
| const cpl_vector * | x, | ||
| const cpl_vector * | y1, | ||
| const cpl_vector * | y2 | ||
| ) |
Plot two y-vectors against an x-vector for debugging.
| pre | Optional string with pre-plot commands (gnuplot syntax) |
| opt | Optional array of strings with plotting options for each plot |
| x | The x-axis vector |
| y1 | The first y-axis vector to plot |
| y2 | The second y-axis vector to plot |
Plots two y-vectors (y1 and y2) against a common x-vector in the same plot, only if the message level is CPL_MSG_DEBUG. Uses gnuplot for visualization.
Possible cpl_error_code set in this function:
Definition at line 793 of file eris_ifu_debug.c.
References BRK_IF_ERROR, BRK_IF_NULL, CATCH, CATCH_MSG, CHECK_ERROR_STATE, and TRY.
| cpl_error_code eris_ifu_plot_vectors_xy | ( | const char * | pre, |
| const char * | opt, | ||
| const cpl_vector * | x, | ||
| const cpl_vector * | y | ||
| ) |
Plot vector y against vector x for debugging.
| pre | Optional string with pre-plot commands (gnuplot syntax) |
| opt | Optional string with plotting options (gnuplot syntax) |
| x | The x-axis vector to plot |
| y | The y-axis vector to plot |
Plots vector y against vector x as an x-y plot only if the message level is CPL_MSG_DEBUG. Uses gnuplot for visualization.
Possible cpl_error_code set in this function:
Definition at line 720 of file eris_ifu_debug.c.
References BRK_IF_ERROR, BRK_IF_NULL, CATCH, CATCH_MSG, and TRY.