Functions | |
| 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. | |
| 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. | |
| char * | irplib_vsprintf_macro (const char *format, va_list arglist, va_list argcopy) |
| Create a string and fill it using vsnprintf(). | |
| char * | irplib_sprintf (const char *format,...) |
| Create a new string by concatenation. | |
| cpl_type_bpp | irplib_bpp_find (int minval, int maxval) |
| Find the smallest BITPIX usable for the given integer range. | |
| int | irplib_isinf (double value) |
| portable isinf | |
| int | irplib_isnan (double value) |
| portable isnan | |
|
|
Reset IRPLIB state. This function resets all static memory used by IRPLIB to a well-defined, initial state. The function should be called (during initialization) by any application using static memory facilities in IRPLIB. Currently, this function resets the IRPLIB error state, including the cpl_error_code. Definition at line 76 of file irplib_utils.c. References irplib_error_reset(). Referenced by irplib_test_init_macro(). |
|
||||||||||||
|
Comparison function to identify different input frames.
Definition at line 90 of file irplib_utils.c. |
|
||||||||||||
|
Find the filename with the given tag in a frame set.
If the file is not unique, the name of the first one is returned and with a warning. Definition at line 126 of file irplib_utils.c. |
|
||||||||||||
|
Find the first frame belonging to the given group.
Definition at line 156 of file irplib_utils.c. |
|
||||||||||||||||
|
Find the aperture(s) with the greatest flux.
The ind array must be able to hold (at least) nfind integers. On success the first nfind elements of ind point to indices of the aperture object. To find the single ind of the aperture with the maximum flux use simply: int ind; irplib_apertures_find_max_flux(self, &ind, 1); Definition at line 199 of file irplib_utils.c. |
|
||||||||||||||||
|
Create a string and fill it using vsnprintf().
Definition at line 258 of file irplib_utils.c. Referenced by irplib_sprintf(). |
|
||||||||||||
|
Create a new string by concatenation.
int error; char * cp_cmd = irplib_sprintf("cp %s %s/%s", long_file, new_dir, new_file); assert( cp_cmd != NULL); error = system(cp_cmd); assert(!error); cpl_free(cp_cmd); Possible CPL error codes set in this function:
Definition at line 345 of file irplib_utils.c. References irplib_vsprintf_macro(). Referenced by irplib_test_abs_macro(), irplib_test_eq_macro(), irplib_test_eq_string_macro(), irplib_test_macro(), irplib_test_rel_macro(), and test(). |
|
||||||||||||
|
Find the smallest BITPIX usable for the given integer range.
Definition at line 380 of file irplib_utils.c. |
1.4.6