Defines | |
| #define | cleanup |
Functions | |
| cpl_error_code | fors_qc_start_group (cpl_propertylist *header, const char *qcdic_version, const char *instrument) |
| Initiate a new QC1 group. | |
| void | fors_qc_write_group_heading (const cpl_frame *raw_frame, const char *pro_catg, const char *instrument) |
| Initiate a new QC1 group and log basic QC. | |
| cpl_error_code | fors_qc_end_group (void) |
| Close current QC1 PAF file. | |
| cpl_error_code | fors_qc_write_string (const char *name, const char *value, const char *comment, const char *instrument) |
| Add string parameter to current QC1 group. | |
| cpl_error_code | fors_qc_write_string_chat (const char *name, const char *value, const char *comment, const char *instrument) |
| cpl_error_code | fors_qc_write_double (const char *name, double value, const char *unit, const char *comment, const char *instrument) |
| Add double parameter to current QC1 group. | |
| cpl_error_code | fors_qc_write_int (const char *name, int value, const char *unit, const char *comment, const char *instrument) |
| cpl_error_code | fors_qc_keyword_to_paf (cpl_propertylist *header, const char *name, const char *unit, const char *comment, const char *instrument) |
| Copy a keyword value to the currently active QC1 PAF object. | |
| cpl_error_code | fors_qc_write_qc_string (cpl_propertylist *header, const char *name, const char *value, const char *comment, const char *instrument) |
| Write a string value to the active QC1 PAF object and to a header. | |
| cpl_error_code | fors_qc_write_qc_double (cpl_propertylist *header, double value, const char *name, const char *unit, const char *comment, const char *instrument) |
| Write an integer value to the active QC1 PAF object and to a header. | |
| cpl_error_code | fors_qc_write_qc_int (cpl_propertylist *header, int value, const char *name, const char *unit, const char *comment, const char *instrument) |
Variables | |
| const char *const | fors_qc_dic_version = "2.0" |
| static ForsPAF * | pafFile = NULL |
| static int | pafIndex = 0 |
| #define cleanup |
| cpl_error_code fors_qc_start_group | ( | cpl_propertylist * | header, | |
| const char * | qcdic_version, | |||
| const char * | instrument | |||
| ) |
Initiate a new QC1 group.
| header | product header | |
| qcdic_version | dictionary ID | |
| instrument | instrument name |
CPL_ERROR_NONE on successDefinition at line 77 of file fors_qc.c.
References fors_qc_write_qc_string(), newForsPAF(), pafFile, and pafIndex.
Referenced by fors_img_science(), fors_img_sky_flat(), fors_photometry(), fors_zeropoint(), test_qc(), vimos_calib_impl(), vimos_science_impl(), and write_qc().
| void fors_qc_write_group_heading | ( | const cpl_frame * | raw_frame, | |
| const char * | pro_catg, | |||
| const char * | instrument | |||
| ) |
Initiate a new QC1 group and log basic QC.
| raw_frame | input frame | |
| pro_catg | product category | |
| instrument | instrument name |
Definition at line 115 of file fors_qc.c.
References assure, cleanup, dfs_generate_filename(), fors_qc_keyword_to_paf(), and fors_qc_write_string().
Referenced by fors_img_science(), fors_img_sky_flat(), fors_zeropoint(), and write_qc().
| cpl_error_code fors_qc_end_group | ( | void | ) |
Close current QC1 PAF file.
CPL_ERROR_NONE on successfors_qc_start_group() should be called first. If the PAF file is empty, the PAF object is destroyed, but no PAF file is created.
Definition at line 200 of file fors_qc.c.
References deleteForsPAF(), forsPAFIsEmpty(), forsPAFWrite(), pafFile, and pafIndex.
Referenced by fors_img_science(), fors_img_sky_flat(), fors_photometry(), fors_zeropoint(), test_qc(), vimos_calib_impl(), vimos_science_impl(), and write_qc().
| cpl_error_code fors_qc_write_string | ( | const char * | name, | |
| const char * | value, | |||
| const char * | comment, | |||
| const char * | instrument | |||
| ) |
Add string parameter to current QC1 group.
| name | Parameter name | |
| value | Parameter value | |
| comment | Parameter comment | |
| instrument | Instrument name |
CPL_ERROR_NONE on successDefinition at line 235 of file fors_qc.c.
References forsPAFAppendString(), and pafFile.
Referenced by fors_qc_keyword_to_paf(), fors_qc_write_group_heading(), fors_qc_write_qc_string(), test_qc(), vimos_calib_impl(), and vimos_science_impl().
| cpl_error_code fors_qc_write_double | ( | const char * | name, | |
| double | value, | |||
| const char * | unit, | |||
| const char * | comment, | |||
| const char * | instrument | |||
| ) |
Add double parameter to current QC1 group.
| name | Parameter name | |
| value | Parameter value | |
| unit | Parameter unit | |
| comment | Parameter comment; | |
| instrument | Instrument name |
CPL_ERROR_NONE on successDefinition at line 321 of file fors_qc.c.
References forsPAFAppendDouble(), and pafFile.
Referenced by fors_qc_keyword_to_paf(), fors_qc_write_qc_double(), and test_qc().
| cpl_error_code fors_qc_keyword_to_paf | ( | cpl_propertylist * | header, | |
| const char * | name, | |||
| const char * | unit, | |||
| const char * | comment, | |||
| const char * | instrument | |||
| ) |
Copy a keyword value to the currently active QC1 PAF object.
| header | Pointer to a keyword header. | |
| name | Keyword name. | |
| unit | Optional unit to be associated to keyword value. | |
| comment | Optional comment to be associated to keyword value. | |
| instrument | Instrument name |
CPL_ERROR_NONE on successDefinition at line 425 of file fors_qc.c.
References fors_qc_write_double(), fors_qc_write_int(), and fors_qc_write_string().
Referenced by fors_qc_write_group_heading(), test_qc(), vimos_calib_impl(), and vimos_science_impl().
| cpl_error_code fors_qc_write_qc_string | ( | cpl_propertylist * | header, | |
| const char * | name, | |||
| const char * | value, | |||
| const char * | comment, | |||
| const char * | instrument | |||
| ) |
Write a string value to the active QC1 PAF object and to a header.
CPL_ERROR_NONE on success| header | Product header | |
| name | QC1 PAF entry name. | |
| value | Value to write. | |
| unit | Optional unit to be associated to value. | |
| comment | Comment to be associated to value. | |
| instrument | Instrument name |
Definition at line 535 of file fors_qc.c.
References fors_qc_write_string(), and fors_qc_write_string_chat().
Referenced by fors_qc_start_group().
| cpl_error_code fors_qc_write_qc_double | ( | cpl_propertylist * | header, | |
| double | value, | |||
| const char * | name, | |||
| const char * | unit, | |||
| const char * | comment, | |||
| const char * | instrument | |||
| ) |
Write an integer value to the active QC1 PAF object and to a header.
CPL_ERROR_NONE on success| header | Product header | |
| value | Value to write. | |
| name | QC1 PAF entry name. | |
| unit | Optional unit to be associated to value. | |
| comment | Comment to be associated to value. | |
| instrument | Instrument name |
Definition at line 604 of file fors_qc.c.
References fors_qc_write_double().
Referenced by fors_img_science(), fors_img_sky_flat(), fors_photometry(), fors_zeropoint(), vimos_calib_impl(), vimos_science_impl(), and write_qc().
1.4.7