Miscellaneous Utilities

Functions

cpl_error_code naco_get_filter_infos (const char *f, double *lam, double *dlam)
 Get the infos of one of the filters.
const char ** naco_framelist_set_tag (irplib_framelist *self, char *(*pftag)(const cpl_frame *, const cpl_propertylist *, int), int *pntags)
 Retag a framelist according to the given tagging function.

Function Documentation

cpl_error_code naco_get_filter_infos ( const char *  f,
double *  lam,
double *  dlam 
)

Get the infos of one of the filters.

Parameters:
f The filter name
lam The associated central wavelength [micrometer]
dlam The associated filter width [micrometer]
Note:
The function will return immediately if called with a CPL error.
Returns:
0 iff ok

Definition at line 61 of file naco_utils.c.

const char** naco_framelist_set_tag ( irplib_framelist *  self,
char *(*)(const cpl_frame *, const cpl_propertylist *, int)  pftag,
int *  pntags 
)

Retag a framelist according to the given tagging function.

Parameters:
self Framelist with frames to retag
pftag Function to create a new tag for one frame
pntags On success, number of new tags in framelist, otherwise undef
Returns:
List of new tags or NULL on error
Note:
(*pftag)() must return a newly allocated pointer. It must indicate an error by returning NULL and by setting a CPL error code. On error some of the the tags in the framelist may be modified. The integer parameter to (*pftag)() is its index in the framelist (starting with zero).

Definition at line 176 of file naco_utils.c.

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

Generated on Mon Feb 17 15:01:45 2014 for NACO Pipeline Reference Manual by  doxygen 1.6.3