39 #include "naco_pfits.h"
45 #define naco_pfits_get_bool(KEY) irplib_pfits_get_bool(self, KEY)
46 #define naco_pfits_get_double(KEY) irplib_pfits_get_double(self, KEY)
47 #define naco_pfits_get_int(KEY) irplib_pfits_get_int(self, KEY)
48 #define naco_pfits_get_string(KEY) irplib_pfits_get_string(self, KEY)
73 return naco_pfits_get_double(
"ESO TEL AIRM START");
85 return naco_pfits_get_double(
"ESO TEL AIRM END");
97 return naco_pfits_get_double(
"ESO SEQ CUMOFFSETX");
109 return naco_pfits_get_double(
"ESO SEQ CUMOFFSETY");
121 return naco_pfits_get_double(
"DEC");
133 return naco_pfits_get_double(
"ESO DET DIT");
145 return naco_pfits_get_double(
"ESO AOS RTC DET DST ECMEAN");
157 return naco_pfits_get_double(
"EXPTIME");
170 cpl_errorstate prestate = cpl_errorstate_get();
173 val = naco_pfits_get_string(
"ESO INS OPTI5 ID");
176 irplib_error_recover(prestate,
"Could not get FITS key:");
177 }
else if (strcmp(val,
"empty")) {
183 val = naco_pfits_get_string(
"ESO INS OPTI6 ID");
186 irplib_error_recover(prestate,
"Could not get FITS key:");
187 }
else if (strcmp(val,
"empty")) {
193 val = naco_pfits_get_string(
"ESO INS OPTI4 ID");
194 cpl_ensure(val != NULL, cpl_error_get_code(), NULL);
195 cpl_ensure(strcmp(val,
"empty"), CPL_ERROR_ILLEGAL_OUTPUT, NULL);
210 return naco_pfits_get_double(
"ESO AOS RTC DET DST FLUXMEAN");
222 return naco_pfits_get_double(
"ESO AOS INS FOCU ABSPOS");
234 return naco_pfits_get_double(
"ESO TEL AMBI RHUM");
246 return naco_pfits_get_double(
"ESO AOS RTC DET DST L0MEAN");
258 return naco_pfits_get_int(
"ESO INS LAMP2 SET");
270 return naco_pfits_get_string(
"ESO DET MODE NAME");
282 return naco_pfits_get_string(NACO_PFITS_STRING_OBJECT);
294 return naco_pfits_get_int(
"ESO DET NDIT");
306 return naco_pfits_get_string(
"ESO INS OPTI3 NAME");
318 return naco_pfits_get_string(
"ESO INS OPTI4 NAME");
331 return naco_pfits_get_string(
"ESO INS OPTI7 NAME");
343 return naco_pfits_get_double(
"ESO INS PIXSCALE");
355 return naco_pfits_get_double(
"ESO AOS RTC DET DST R0MEAN");
367 return naco_pfits_get_double(
"RA");
379 return naco_pfits_get_int(
"ESO DET NCORRS");
391 return naco_pfits_get_string(
"ESO DET NCORRS NAME");
403 return naco_pfits_get_double(
"ESO AOS RTC DET DST T0MEAN");
415 return naco_pfits_get_string(
"ESO TPL ID");
const char * naco_pfits_get_rom_name(const cpl_propertylist *self)
find out the read out mode name
double naco_pfits_get_dit(const cpl_propertylist *self)
find out the DIT
double naco_pfits_get_pixscale(const cpl_propertylist *self)
find out the pixel scale
double naco_pfits_get_cumoffsety(const cpl_propertylist *self)
find out the cumulative offset in Y
const char * naco_pfits_get_opti4_name(const cpl_propertylist *self)
find out the OPTI4.NAME key
int naco_pfits_get_lamp2(const cpl_propertylist *self)
find out the INS.LAMP2.SET keyword
double naco_pfits_get_t0mean(const cpl_propertylist *self)
find out the T0MEAN key
double naco_pfits_get_ra(const cpl_propertylist *self)
find out the RA
int naco_pfits_get_rom(const cpl_propertylist *self)
find out the read out mode
double naco_pfits_get_cumoffsetx(const cpl_propertylist *self)
find out the cumulative offset in X
double naco_pfits_get_dec(const cpl_propertylist *self)
find out the DEC
int naco_pfits_get_ndit(const cpl_propertylist *self)
find out the NDIT keyword
double naco_pfits_get_l0mean(const cpl_propertylist *self)
find out the L0MEAN
double naco_pfits_get_focus(const cpl_propertylist *self)
find out the focus
const char * naco_pfits_get_opti7_name(const cpl_propertylist *self)
find out the OPTI7.NAME key
double naco_pfits_get_airmass_start(const cpl_propertylist *self)
find out airmass start
double naco_pfits_get_fluxmean(const cpl_propertylist *self)
find out the FLUXMEAN key
double naco_pfits_get_humidity_level(const cpl_propertylist *self)
find out the humidity level
const char * naco_pfits_get_object(const cpl_propertylist *self)
Get the Object name.
const char * naco_pfits_get_opti3_name(const cpl_propertylist *self)
find out the OPTI3.NAME key
double naco_pfits_get_airmass_end(const cpl_propertylist *self)
find out airmass end
const char * naco_pfits_get_templateid(const cpl_propertylist *self)
find out the template ID
double naco_pfits_get_r0mean(const cpl_propertylist *self)
find out the R0MEAN key
const char * naco_pfits_get_mode(const cpl_propertylist *self)
find out the mode name
double naco_pfits_get_ecmean(const cpl_propertylist *self)
find out the ECMEAN key
const char * naco_pfits_get_filter(const cpl_propertylist *self)
find out the filter
double naco_pfits_get_exptime(const cpl_propertylist *self)
find out the exposure time