#include <math.h>#include <string.h>#include <assert.h>#include <cpl.h>#include "xsh_irplib_utils.h"Go to the source code of this file.
Defines | |
| #define | inline |
Functions | |
| static double | irplib_data_get_double (const void *self, cpl_type type, int i) |
| Optimized version of cpl_image_get(). | |
| static void | irplib_data_set_double (void *self, cpl_type type, int i, double value) |
| Optimized version of cpl_image_set(). | |
| static void | irplib_errorstate_dump_one_level (void(*messenger)(const char *,const char *,...), unsigned self, unsigned first, unsigned last) |
| Dump a single CPL error. | |
| static double | frame_get_exptime (const cpl_frame *pframe) |
| static void | quicksort (int *index, double *exptime, int left, int right) |
| void | irplib_errorstate_dump_warning (unsigned self, unsigned first, unsigned last) |
| Dump a single CPL error at the CPL warning level. | |
| static cpl_polynomial * | irplib_polynomial_fit_1d_create_common (const cpl_vector *x_pos, const cpl_vector *values, int degree, double *mse, double *rechisq) |
| void | irplib_errorstate_dump_info (unsigned self, unsigned first, unsigned last) |
| Dump a single CPL error at the CPL info level. | |
| void | irplib_errorstate_dump_debug (unsigned self, unsigned first, unsigned last) |
| Dump a single CPL error at the CPL debug level. | |
| cpl_error_code | irplib_dfs_save_image (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_image *image, cpl_type_bpp bpp, const char *recipe, const char *procat, const cpl_propertylist *applist, const char *remregexp, const char *pipe_id, const char *filename) |
| Save an image as a DFS-compliant pipeline product. | |
| cpl_error_code | irplib_dfs_save_propertylist (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const char *recipe, const char *procat, const cpl_propertylist *applist, const char *remregexp, const char *pipe_id, const char *filename) |
| Save a propertylist as a DFS-compliant pipeline product. | |
| cpl_error_code | irplib_dfs_save_imagelist (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_imagelist *imagelist, cpl_type_bpp bpp, const char *recipe, const char *procat, const cpl_propertylist *applist, const char *remregexp, const char *pipe_id, const char *filename) |
| Save an imagelist as a DFS-compliant pipeline product. | |
| cpl_error_code | irplib_dfs_save_table (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const cpl_table *table, const cpl_propertylist *tablelist, const char *recipe, const char *procat, const cpl_propertylist *applist, const char *remregexp, const char *pipe_id, const char *filename) |
| Save a table as a DFS-compliant pipeline product. | |
| cpl_error_code | irplib_image_split (const cpl_image *self, cpl_image *im_low, cpl_image *im_mid, cpl_image *im_high, double th_low, cpl_boolean isleq_low, double th_high, cpl_boolean isgeq_high, double alt_low, double alt_high, cpl_boolean isbad_low, cpl_boolean isbad_mid, cpl_boolean isbad_high) |
| Split the values in an image in three according to two thresholds. | |
| cpl_error_code | irplib_dfs_table_convert (cpl_table *self, cpl_frameset *allframes, const cpl_frameset *useframes, int maxlinelen, char commentchar, const char *product_name, const char *procatg, const cpl_parameterlist *parlist, const char *recipe_name, const cpl_propertylist *mainlist, const cpl_propertylist *extlist, const char *remregexp, const char *instrume, const char *pipe_id, cpl_boolean(*table_set_row)(cpl_table *, const char *, int, const cpl_frame *, const cpl_parameterlist *), cpl_error_code(*table_check)(cpl_table *, const cpl_frameset *, const cpl_parameterlist *)) |
| Create a DFS product with one table from one or more (ASCII) file(s). | |
| cpl_error_code | irplib_table_read_from_frameset (cpl_table *self, const cpl_frameset *useframes, int maxlinelen, char commentchar, const cpl_parameterlist *parlist, cpl_boolean(*table_set_row)(cpl_table *, const char *, int, const cpl_frame *, const cpl_parameterlist *)) |
| Set the rows of a table with data from one or more (ASCII) files. | |
| void | irplib_reset (void) |
| Reset IRPLIB state. | |
| int | irplib_compare_tags (cpl_frame *frame1, cpl_frame *frame2) |
| Comparison function to identify different input frames. | |
| const char * | irplib_frameset_find_file (const cpl_frameset *self, const char *tag) |
| Find the filename with the given tag in a frame set. | |
| const cpl_frame * | irplib_frameset_get_first_from_group (const cpl_frameset *self, cpl_frame_group group) |
| Find the first frame belonging to the given group. | |
| cpl_error_code | irplib_apertures_find_max_flux (const cpl_apertures *self, int *ind, int nfind) |
| Find the aperture(s) with the greatest flux. | |
| int | irplib_isinf (double value) |
| portable isinf | |
| int | irplib_isnan (double value) |
| portable isnan | |
| void | irplib_errorstate_warning (unsigned self, unsigned first, unsigned last) |
| Dump a single CPL error. | |
| cpl_polynomial * | irplib_polynomial_fit_1d_create_chiq (const cpl_vector *x_pos, const cpl_vector *values, int degree, double *rechisq) |
| cpl_polynomial * | irplib_polynomial_fit_1d_create (const cpl_vector *x_pos, const cpl_vector *values, int degree, double *mse) |
| cpl_error_code | irplib_frameset_sort (const cpl_frameset *self, int *index, double *exptime) |
| #define inline |
Definition at line 50 of file xsh_irplib_utils.c.
| static double frame_get_exptime | ( | const cpl_frame * | pframe | ) | [static] |
Definition at line 1378 of file xsh_irplib_utils.c.
Referenced by irplib_frameset_sort().
| static double irplib_data_get_double | ( | const void * | self, | |
| cpl_type | type, | |||
| int | i | |||
| ) | [static] |
Optimized version of cpl_image_get().
| self | A void pointer, e.g. from cpl_image_get_data_const() | |
| type | The data type, e.g. from cpl_image_get_type() | |
| i | The index into the buffer after it has been cast to type |
Definition at line 1136 of file xsh_irplib_utils.c.
Referenced by irplib_image_split().
| static void irplib_data_set_double | ( | void * | self, | |
| cpl_type | type, | |||
| int | i, | |||
| double | value | |||
| ) | [static] |
Optimized version of cpl_image_set().
| self | A void pointer, e.g. from cpl_image_get_data_const() | |
| type | The data type, e.g. from cpl_image_get_type() | |
| i | The index into the buffer after it has been cast to type | |
| value | The value to write |
Definition at line 1181 of file xsh_irplib_utils.c.
Referenced by irplib_image_split().
| static void irplib_errorstate_dump_one_level | ( | void(*)(const char *, const char *,...) | messenger, | |
| unsigned | self, | |||
| unsigned | first, | |||
| unsigned | last | |||
| ) | [static] |
Dump a single CPL error.
| Pointer | to one of cpl_msg_info(), cpl_msg_warning(), ... | |
| self | The number of the current error to be dumped | |
| first | The number of the first error to be dumped | |
| last | The number of the last error to be dumped |
Definition at line 1223 of file xsh_irplib_utils.c.
Referenced by irplib_errorstate_dump_debug(), irplib_errorstate_dump_info(), and irplib_errorstate_dump_warning().
| cpl_error_code irplib_frameset_sort | ( | const cpl_frameset * | self, | |
| int * | index, | |||
| double * | exptime | |||
| ) |
Definition at line 1355 of file xsh_irplib_utils.c.
References frame_get_exptime(), and quicksort().
Referenced by xsh_detmon_lg_reduce_set().
| cpl_polynomial* irplib_polynomial_fit_1d_create | ( | const cpl_vector * | x_pos, | |
| const cpl_vector * | values, | |||
| int | degree, | |||
| double * | mse | |||
| ) |
Definition at line 1278 of file xsh_irplib_utils.c.
References irplib_polynomial_fit_1d_create_common().
Referenced by xsh_detmon_lg_qc_ptc(), and xsh_detmon_lg_reduce_all().
| cpl_polynomial* irplib_polynomial_fit_1d_create_chiq | ( | const cpl_vector * | x_pos, | |
| const cpl_vector * | values, | |||
| int | degree, | |||
| double * | rechisq | |||
| ) |
Definition at line 1269 of file xsh_irplib_utils.c.
References irplib_polynomial_fit_1d_create_common().
Referenced by xsh_detmon_lg_qc_ptc(), and xsh_detmon_lin().
| static void quicksort | ( | int * | index, | |
| double * | exptime, | |||
| int | left, | |||
| int | right | |||
| ) | [static] |
Definition at line 1320 of file xsh_irplib_utils.c.
Referenced by irplib_frameset_sort().
1.6.1