28 #ifndef IRPLIB_PFITS_H
29 #define IRPLIB_PFITS_H
37 #include "irplib_utils.h"
38 #include "irplib_framelist.h"
45 #define IRPLIB_FITS_STRLEN 68
47 #define irplib_pfits_get_bool(LIST, KEY) \
48 irplib_pfits_get_bool_macro(LIST, KEY, cpl_func, __FILE__, __LINE__)
50 #define irplib_pfits_get_double(LIST, KEY) \
51 irplib_pfits_get_double_macro(LIST, KEY, cpl_func, __FILE__, __LINE__)
53 #define irplib_pfits_get_int(LIST, KEY) \
54 irplib_pfits_get_int_macro(LIST, KEY, cpl_func, __FILE__, __LINE__)
56 #define irplib_pfits_get_string(LIST, KEY) \
57 irplib_pfits_get_string_macro(LIST, KEY, cpl_func, __FILE__, __LINE__)
59 #define IRPLIB_PFITS_STRING_DPR_CATG "ESO DPR CATG"
60 #define IRPLIB_PFITS_STRING_DPR_TECH "ESO DPR TECH"
61 #define IRPLIB_PFITS_STRING_DPR_TYPE "ESO DPR TYPE"
63 #define IRPLIB_PFITS_REGEXP_DPR \
64 IRPLIB_PFITS_STRING_DPR_CATG "|" \
65 IRPLIB_PFITS_STRING_DPR_TECH "|" \
66 IRPLIB_PFITS_STRING_DPR_TYPE
68 #define IRPLIB_PFITS_WCS_REGEXP "WCSAXES|WCSNAME|(PC|CD|PV|PS)[0-9]+_[0-9]+|" \
69 "C(RVAL|RPIX|DELT|TYPE|UNIT|RDER|SYER)[0-9]+"
71 #define IRPLIB_PFITS_REGEXP_PAF "DATE-OBS|MJD-OBS|ARCFILE|ESO TPL ID"
74 #define IRPLIB_PFITS_REGEXP_RECAL_LAMP "EXPTIME"
76 #define IRPLIB_PFITS_REGEXP_RECAL IRPLIB_PFITS_REGEXP_RECAL_LAMP "|AIRMASS"
82 #define IRPLIB_DFS_DOCATG_FROM_DPR(DOCATG, MATCH_CATG, \
85 if ((docatg == NULL) && ((irplib_dfs_find_words MATCH_CATG) == 0) \
86 && ((irplib_dfs_find_words MATCH_TYPE) == 0) \
87 && ((irplib_dfs_find_words MATCH_TECH) == 0)) \
99 const char *,
const char *,
100 const char *,
unsigned);
103 const char *,
const char *,
104 const char *,
unsigned);
107 const char *,
const char *,
108 const char *,
unsigned);
111 const char *,
const char *,
112 const char *,
unsigned);
117 const irplib_framelist *);
121 __attribute__((format (printf, 2, 3)))
126 const char * (*)(
const char*,
const char * irplib_pfits_get_dpr_catg(const cpl_propertylist *)
The data category.
const char * irplib_pfits_get_string_macro(const cpl_propertylist *, const char *, const char *, const char *, unsigned)
Get the value of a property of type string.
const char * irplib_pfits_get_dpr_type(const cpl_propertylist *)
The data type.
cpl_boolean irplib_pfits_get_bool_macro(const cpl_propertylist *, const char *, const char *, const char *, unsigned)
Get the value of a property of type boolean.
cpl_error_code irplib_pfits_set_airmass(cpl_propertylist *, const irplib_framelist *)
Update/Set the AIRMASS property.
const char * irplib_pfits_get_dpr_tech(const cpl_propertylist *)
The data technique.
double irplib_pfits_get_double_macro(const cpl_propertylist *, const char *, const char *, const char *, unsigned)
Get the value of a property of type double.
int irplib_pfits_get_int_macro(const cpl_propertylist *, const char *, const char *, const char *, unsigned)
Get the value of a property of type int.
cpl_error_code irplib_dfs_check_framelist_tag(const irplib_framelist *self, const char *(*pfind)(const char *, const char *, const char *))
Check the tags in a frameset (group raw only)
int irplib_dfs_find_words(const char *, const char *,...)
Match a string with word(s) against a list of 1-word-regexps.