|
ERIS Pipeline Reference Manual 1.8.15
|
Functions | |
| eris_ifu_sdp_properties * | eris_ifu_sdp_properties_new (void) |
| Allocate and initialize new SDP properties structure. | |
| void | eris_ifu_sdp_properties_delete (eris_ifu_sdp_properties *aProperties) |
| Free SDP properties structure and all contained data. | |
| const char * | eris_ifu_pfits_get_origfile (const cpl_propertylist *aHeaders) |
| Get ORIGFILE keyword value from FITS header. | |
| eris_ifu_sdp_properties * | eris_ifu_sdp_properties_collect (hdrl_resample_result *aCube, cpl_frameset *set, const cpl_parameterlist *parlist, const char *recipe_name) |
| Collect all SDP metadata from cube, frameset, and parameters. | |
| cpl_error_code | eris_ifu_cplarray_sort (cpl_array *aArray, cpl_boolean aOrder) |
| Sort CPL array in place using quicksort. | |
| cpl_error_code | eris_ifu_sdp_properties_update (cpl_propertylist *aHeader, const eris_ifu_sdp_properties *aProperties) |
| Update FITS header with ESO Science Data Product keywords. | |
This module provides functionality for creating ESO Science Data Product (SDP) compliant FITS headers and managing Phase 3 metadata for ERIS IFU data products.
The module handles:
The SDP properties structure aggregates all required metadata which is then written to FITS headers using standardized ESO keywords and formatting.
| cpl_error_code eris_ifu_cplarray_sort | ( | cpl_array * | aArray, |
| cpl_boolean | aOrder | ||
| ) |
Sort CPL array in place using quicksort.
Sorts the elements of a CPL array in ascending or descending order using the standard library quicksort function. Supports arrays of type double, float, int, long, and string.
| aArray | Array to sort (modified in place) |
| aOrder | Sort order: CPL_TRUE for ascending, CPL_FALSE for descending |
Definition at line 1440 of file eris_ifu_sdp.c.
Referenced by eris_ifu_sdp_properties_update().
| const char * eris_ifu_pfits_get_origfile | ( | const cpl_propertylist * | aHeaders | ) |
Get ORIGFILE keyword value from FITS header.
Retrieves the original filename from the FITS header ORIGFILE keyword. This tracks the name of the file as originally created by the instrument.
| aHeaders | Property list (FITS header) to query |
Definition at line 851 of file eris_ifu_sdp.c.
Referenced by eris_ifu_sdp_properties_collect().
| eris_ifu_sdp_properties * eris_ifu_sdp_properties_collect | ( | hdrl_resample_result * | aCube, |
| cpl_frameset * | set, | ||
| const cpl_parameterlist * | parlist, | ||
| const char * | recipe_name | ||
| ) |
Collect all SDP metadata from cube, frameset, and parameters.
Main function for gathering ESO Science Data Product metadata from various sources. Processes raw and calibrated data to compute quality metrics and collect observation information required for Phase 3 compliant headers.
The function performs:
| aCube | HDRL resampling result with cube and header |
| set | Complete frameset with raw and processed data |
| parlist | Recipe parameters |
| recipe_name | Recipe name ("jitter" or "stdstar") |
Definition at line 1092 of file eris_ifu_sdp.c.
References eris_check_error_code(), eris_ifu_get_band(), eris_ifu_get_band_resolution(), eris_ifu_pfits_get_origfile(), eris_ifu_sdp_properties_new(), eris_pfits_get_ancestor(), eris_pfits_get_arcfile(), eris_pfits_get_dit(), eris_pfits_get_mjdobs(), eris_pfits_get_ndit(), eris_pfits_get_obsid(), eris_pfits_get_pipefile(), eris_pfits_get_progid(), eris_pfits_get_raw_filename(), hdrl_collapse_mode_parameter_create(), hdrl_image_delete(), hdrl_image_get_image(), hdrl_imagelist_get_size(), hdrl_maglim_compute(), and hdrl_parameter_delete().
Referenced by eris_ifu_resample_save_cube().
| void eris_ifu_sdp_properties_delete | ( | eris_ifu_sdp_properties * | aProperties | ) |
Free SDP properties structure and all contained data.
Deallocates an eris_ifu_sdp_properties structure including all dynamically allocated members (arrays, property lists, strings).
| aProperties | Pointer to SDP properties structure to free |
Definition at line 813 of file eris_ifu_sdp.c.
Referenced by eris_ifu_resample_save_cube().
| eris_ifu_sdp_properties * eris_ifu_sdp_properties_new | ( | void | ) |
Allocate and initialize new SDP properties structure.
Creates a new eris_ifu_sdp_properties structure with all fields initialized to zero/NULL. This structure holds all metadata required for ESO Science Data Product headers.
Definition at line 791 of file eris_ifu_sdp.c.
Referenced by eris_ifu_sdp_properties_collect().
| cpl_error_code eris_ifu_sdp_properties_update | ( | cpl_propertylist * | aHeader, |
| const eris_ifu_sdp_properties * | aProperties | ||
| ) |
Update FITS header with ESO Science Data Product keywords.
Writes all collected SDP metadata to the FITS header in ESO Phase 3 compliant format. This includes observation information, data quality metrics, provenance, wavelength range, flux calibration status, and associated files.
The function:
| aHeader | FITS header propertylist to update (modified in place) |
| aProperties | SDP properties structure with all metadata |
Definition at line 1509 of file eris_ifu_sdp.c.
References eris_check_error_code(), and eris_ifu_cplarray_sort().
Referenced by eris_ifu_resample_save_cube().