31 #include <uves_propertylist.h>
32 #include <uves_globals.h>
33 #include <uves_chip.h>
39 #define KEY_NAME_PRO_REC1_RAW1_NAME "ESO PRO REC1 RAW1 NAME"
41 #define KEY_NAME_PRO_DRSID "ESO PRO REC1 DRS ID"
42 #define PAF_NAME_PRO_DRSID "PRO REC1 DRS ID"
43 #define KEY_HELP_PRO_DRSID "Data Reduction System identifier"
45 #define KEY_NAME_PIPE_ID "ESO PRO REC1 PIPE ID"
46 #define PAF_NAME_PIPE_ID "PRO REC1 PIPE ID"
47 #define KEY_HELP_PIPE_ID "Pipeline (unique) identifier"
48 #define KEY_NAME_PIPEFILE "PIPEFILE"
49 #define KEY_HELP_PIPEFILE "Filename of data product"
51 #define KEY_NAME_QC_DID "ESO QC DID"
52 #define PAF_NAME_QC_DID "QC DID"
53 #define KEY_HELP_QC_DID "Data dictionary for QC"
55 #define KEY_NAME_PRO_TYPE "ESO PRO TYPE"
56 #define PAF_NAME_PRO_TYPE "PRO TYPE"
57 #define KEY_HELP_PRO_TYPE "Product Type"
59 #define KEY_NAME_DATE_OBS "DATE-OBS"
60 #define KEY_HELP_DATE_OBS "Observing date"
62 #define KEY_NAME_PRO_RECID "ESO PRO REC1 ID"
63 #define PAF_NAME_PRO_RECID "PRO REC1 ID"
64 #define KEY_HELP_PRO_RECID "Pipeline recipe(unique) identifier"
66 #define KEY_NAME_DPR_TYPE "ESO DPR TYPE"
67 #define KEY_NAME_DPR_CATG "ESO DPR CATG"
68 #define KEY_NAME_DPR_TECH "ESO DPR TECH"
69 #define KEY_NAME_PRO_CATG "ESO PRO CATG"
70 #define KEY_NAME_TPL_ID "ESO TPL ID"
71 #define KEY_NAME_ARCFILE "ARCFILE"
73 #define PAF_NAME_DPR_TYPE "DPR TYPE"
74 #define PAF_NAME_DPR_CATG "DPR CATG"
75 #define PAF_NAME_DPR_TECH "DPR TECH"
76 #define PAF_NAME_PRO_CATG "PRO CATG"
77 #define PAF_NAME_TPL_ID "TPL ID"
78 #define PAF_NAME_PRO_DRSID "PRO REC1 DRS ID"
80 #define KEY_HELP_DPR_TYPE "Observation type"
81 #define KEY_HELP_DPR_CATG "Observation category"
82 #define KEY_HELP_DPR_TECH "Observation technique"
83 #define KEY_HELP_PRO_CATG "Category of pipeline product frame"
84 #define KEY_HELP_TPL_ID "Template sig"
85 #define KEY_HELP_ARCFILE "Archive file name"
86 #define KEY_HELP_PRO_DRSID "Data Reduction System identifier"
88 #define PORT_ID(chip) (((chip) == UVES_CHIP_REDL) ? 4 : 1)
98 const cpl_table* qclog,
101 const char* pro_catg);
105 enum uves_chip chip);
151 const cpl_image *raw_image,
153 const cpl_table *info_tbl);
162 bool flames,
int trace_number);
int uves_save_paf(const char *filename, int paf_no, const char *rec_id, const cpl_table *qclog, uves_propertylist *plist, const uves_propertylist *rhead, const char *pro_catg)
Init QC-LOG table.
char * uves_get_rootname(const char *filename)
computes rootname
int uves_qclog_add_string(cpl_table *table, const char *name, const char *value, const char *help, const char *format)
Add string key to QC-LOG table.
int uves_qclog_delete(cpl_table **table)
delete QC-LOG table
int uves_qclog_add_double(cpl_table *table, const char *name, const double value, const char *help, const char *format)
Add double key to QC-LOG table.
int uves_qclog_add_float(cpl_table *table, const char *name, const float value, const char *help, const char *format)
Add float key to QC-LOG table.
int uves_qclog_dump_common_wave(const uves_propertylist *plist, enum uves_chip chip, cpl_table *qclog)
Create common QC log.
int uves_qclog_add_int(cpl_table *table, const char *name, const int value, const char *help, const char *format)
Add integer key to QC-LOG table.
int uves_qclog_add_bool(cpl_table *table, const char *name, const char value, const char *help, const char *format)
Add boolean key to QC-LOG table.
void uves_get_paf_name(const char *in, int paf_no, char **paf)
get paf file name
void uves_qclog_add_sci(cpl_table *qclog, const uves_propertylist *raw_header, const cpl_image *raw_image, double slit, const cpl_table *info_tbl)
Write QC parameters related to science reduction.
int uves_qclog_dump_common(const uves_propertylist *plist, enum uves_chip chip, cpl_table *qclog)
Create common QC log.
void uves_qclog_add_common_wave(const uves_propertylist *raw_header, enum uves_chip chip, cpl_table *qclog)
Write common QC parameters.
cpl_table * uves_qclog_init(const uves_propertylist *raw_header, enum uves_chip chip)
Init QC-LOG table.
const char * uves_qclog_get_qc_name(const char *name, bool flames, int trace_number)
Create QC parameter name.
int uves_blank2dot(const char *in, char *ou)
replace a blank to a dot
int uves_pfits_put_qc(uves_propertylist *plist, const cpl_table *qclog)
Add QC-LOG to FITS header.