NACO Pipeline Reference Manual  4.4.0
Functions
Support for FITS header protected access

Functions

const char * irplib_pfits_get_dpr_catg (const cpl_propertylist *self)
 The data category. More...
 
const char * irplib_pfits_get_dpr_tech (const cpl_propertylist *self)
 The data technique. More...
 
const char * irplib_pfits_get_dpr_type (const cpl_propertylist *self)
 The data type. More...
 
cpl_boolean irplib_pfits_get_bool_macro (const cpl_propertylist *self, const char *key, const char *function, const char *file, unsigned line)
 Get the value of a property of type boolean. More...
 
double irplib_pfits_get_double_macro (const cpl_propertylist *self, const char *key, const char *function, const char *file, unsigned line)
 Get the value of a property of type double. More...
 
int irplib_pfits_get_int_macro (const cpl_propertylist *self, const char *key, const char *function, const char *file, unsigned line)
 Get the value of a property of type int. More...
 
const char * irplib_pfits_get_string_macro (const cpl_propertylist *self, const char *key, const char *function, const char *file, unsigned line)
 Get the value of a property of type string. More...
 
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) More...
 
int irplib_dfs_find_words (const char *words, const char *format,...)
 Match a string with word(s) against a list of 1-word-regexps. More...
 
cpl_error_code irplib_pfits_set_airmass (cpl_propertylist *self, const irplib_framelist *rawframes)
 Update/Set the AIRMASS property. More...
 

Detailed Description

Function Documentation

const char* irplib_pfits_get_dpr_catg ( const cpl_propertylist *  self)

The data category.

Parameters
selfproperty list to read from
Returns
pointer to statically allocated character string

Definition at line 79 of file irplib_pfits.c.

const char* irplib_pfits_get_dpr_tech ( const cpl_propertylist *  self)

The data technique.

Parameters
selfproperty list to read from
Returns
pointer to statically allocated character string

Definition at line 91 of file irplib_pfits.c.

const char* irplib_pfits_get_dpr_type ( const cpl_propertylist *  self)

The data type.

Parameters
selfproperty list to read from
Returns
pointer to statically allocated character string

Definition at line 103 of file irplib_pfits.c.

cpl_boolean irplib_pfits_get_bool_macro ( const cpl_propertylist *  self,
const char *  key,
const char *  function,
const char *  file,
unsigned  line 
)

Get the value of a property of type boolean.

Parameters
selfProperty list to read from
keyProperty key
functionFunction name (for error reporting)
fileSource file name (for error reporting)
lineSource line number (for error reporting)
Returns
The property value

Definition at line 121 of file irplib_pfits.c.

double irplib_pfits_get_double_macro ( const cpl_propertylist *  self,
const char *  key,
const char *  function,
const char *  file,
unsigned  line 
)

Get the value of a property of type double.

Parameters
selfProperty list to read from
keyProperty key
functionFunction name (for error reporting)
fileSource file name (for error reporting)
lineSource line number (for error reporting)
Returns
The property value

Definition at line 155 of file irplib_pfits.c.

int irplib_pfits_get_int_macro ( const cpl_propertylist *  self,
const char *  key,
const char *  function,
const char *  file,
unsigned  line 
)

Get the value of a property of type int.

Parameters
selfProperty list to read from
keyProperty key
functionFunction name (for error reporting)
fileSource file name (for error reporting)
lineSource line number (for error reporting)
Returns
The property value

Definition at line 192 of file irplib_pfits.c.

const char* irplib_pfits_get_string_macro ( const cpl_propertylist *  self,
const char *  key,
const char *  function,
const char *  file,
unsigned  line 
)

Get the value of a property of type string.

Parameters
selfProperty list to read from
keyProperty key
functionFunction name (for error reporting)
fileSource file name (for error reporting)
lineSource line number (for error reporting)
Returns
The property value or NULL on errror

Definition at line 226 of file irplib_pfits.c.

cpl_error_code irplib_dfs_check_framelist_tag ( const irplib_framelist *  self,
const char *(*)(const char *, const char *, const char *)  pfind 
)

Check the tags in a frameset (group raw only)

Parameters
selfThe frameset to check
pfindFunction to find the DO category from a DPR-triplet
Returns
0 iff ok

Definition at line 260 of file irplib_pfits.c.

References irplib_framelist_get_const(), irplib_framelist_get_propertylist_const(), and irplib_framelist_get_size().

int irplib_dfs_find_words ( const char *  words,
const char *  format,
  ... 
)

Match a string with word(s) against a list of 1-word-regexps.

Parameters
wordsThe string with word(s)
formatA format string of space-separed s, e.g. "%s %s %s"
...Variable argument list of 1-word regular expressions
Note
The number of s's in format must equal the number of 1-word-regexps, this allows the GNU C compiler to verify the count of regexps.
Returns
0 if matched, positive if not matched, negative on error.

Definition at line 302 of file irplib_pfits.c.

cpl_error_code irplib_pfits_set_airmass ( cpl_propertylist *  self,
const irplib_framelist *  rawframes 
)

Update/Set the AIRMASS property.

Parameters
selfThe propertylist to be updated
rawframesThe list of rawframes whose AIRMASSes to use
Returns
0 iff successfull

Definition at line 373 of file irplib_pfits.c.

References irplib_framelist_get_const(), irplib_framelist_get_propertylist_const(), and irplib_framelist_get_size().