Support for FITS header protected access


Functions

const char * irplib_pfits_get_dpr_catg (const cpl_propertylist *self)
 The data category.
const char * irplib_pfits_get_dpr_tech (const cpl_propertylist *self)
 The data technique.
const char * irplib_pfits_get_dpr_type (const cpl_propertylist *self)
 The data type.
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.
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.
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.
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 *words, const char *format,...)
 Match a string with word(s) against a list of 1-word-regexps.
cpl_error_code irplib_pfits_set_airmass (cpl_propertylist *self, const irplib_framelist *rawframes)
 Update/Set the AIRMASS property.

Function Documentation

const char* irplib_pfits_get_dpr_catg ( const cpl_propertylist *  self  ) 

The data category.

Parameters:
self property list to read from
Returns:
pointer to statically allocated character string

Definition at line 80 of file irplib_pfits.c.

const char* irplib_pfits_get_dpr_tech ( const cpl_propertylist *  self  ) 

The data technique.

Parameters:
self property list to read from
Returns:
pointer to statically allocated character string

Definition at line 92 of file irplib_pfits.c.

const char* irplib_pfits_get_dpr_type ( const cpl_propertylist *  self  ) 

The data type.

Parameters:
self property list to read from
Returns:
pointer to statically allocated character string

Definition at line 104 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:
self Property list to read from
key Property key
function Function name (for error reporting)
file Source file name (for error reporting)
line Source line number (for error reporting)
Returns:
The property value

Definition at line 121 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:
self Property list to read from
key Property key
function Function name (for error reporting)
file Source file name (for error reporting)
line Source line number (for error reporting)
Returns:
The property value

Definition at line 158 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:
self Property list to read from
key Property key
function Function name (for error reporting)
file Source file name (for error reporting)
line Source line number (for error reporting)
Returns:
The property value or NULL on errror

Definition at line 192 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:
self The frameset to check
pfind Function to find the DO category from a DPR-triplet
Returns:
0 iff ok

Definition at line 226 of file irplib_pfits.c.

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

Referenced by visir_dfs_check_framelist_tag().

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:
words The string with word(s)
format A 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 268 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:
self The propertylist to be updated
rawframes The list of rawframes whose AIRMASSes to use
Returns:
0 iff successfull

Definition at line 339 of file irplib_pfits.c.

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


Generated on Mon Feb 6 15:23:49 2012 for VISIR Pipeline Reference Manual by  doxygen 1.5.8