CR2RE Pipeline Reference Manual 1.6.2
Functions
FITS header protected access

Functions

cr2res_nodding_pos cr2res_pfits_get_nodding_pos (const cpl_propertylist *plist)
 find out the nodding position
 
const char * cr2res_pfits_get_drstype (const cpl_propertylist *plist)
 find out the DRS.TYPE
 
const char * cr2res_pfits_get_protype (const cpl_propertylist *plist)
 find out the PRO.TYPE
 
const char * cr2res_pfits_get_progid (const cpl_propertylist *plist)
 find out the PROG ID
 
const char * cr2res_pfits_get_wlen_id (const cpl_propertylist *plist)
 find out the Setting
 
double cr2res_pfits_get_dec (const cpl_propertylist *plist)
 find out the DEC
 
double cr2res_pfits_get_ra (const cpl_propertylist *plist)
 find out the RA
 
double cr2res_pfits_get_drot_posang (const cpl_propertylist *plist)
 find out the DROT POSANG value
 
double cr2res_pfits_get_nodthrow (const cpl_propertylist *plist)
 find out the NODTHROW value
 
double cr2res_pfits_get_dit (const cpl_propertylist *plist)
 find out the DIT value
 
double cr2res_pfits_get_mjd_obs (const cpl_propertylist *plist)
 find out the MJD-OBS value
 
double cr2res_pfits_get_cwlen (const cpl_propertylist *plist)
 find out the CWLEN value
 
const char * cr2res_pfits_get_poltype (const cpl_propertylist *plist)
 find out the POL TYPE value
 
double cr2res_pfits_get_wstrt (const cpl_propertylist *plist, int order_idx)
 find out the Start wavelength for an order_idx (current detector)
 
double cr2res_pfits_get_wend (const cpl_propertylist *plist, int order_idx)
 find out the End wavelength for an order_idx (current detector)
 
int cr2res_pfits_get_ndit (const cpl_propertylist *plist)
 find out the NDIT value
 
int cr2res_pfits_get_obs_id (const cpl_propertylist *plist)
 find out the OBS ID value
 
int cr2res_pfits_get_order_idx (const cpl_propertylist *plist, double yposition)
 find out the order_idx closest to the passed y position
 
cr2res_decker cr2res_pfits_get_decker_position (const cpl_propertylist *plist)
 find out the decker position
 

Detailed Description

Function Documentation

◆ cr2res_pfits_get_cwlen()

double cr2res_pfits_get_cwlen ( const cpl_propertylist *  plist)

find out the CWLEN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 229 of file cr2res_pfits.c.

◆ cr2res_pfits_get_dec()

double cr2res_pfits_get_dec ( const cpl_propertylist *  plist)

find out the DEC

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 150 of file cr2res_pfits.c.

◆ cr2res_pfits_get_decker_position()

cr2res_decker cr2res_pfits_get_decker_position ( const cpl_propertylist *  plist)

find out the decker position

Parameters
plistproperty list to read from
Returns
0, 1 or 2 or -1 in error case

Definition at line 467 of file cr2res_pfits.c.

Referenced by cr2res_io_extract_decker_frameset(), cr2res_io_find_SLIT_MODEL(), cr2res_io_read_decker_positions(), and cr2res_trace_add_extra_columns().

◆ cr2res_pfits_get_dit()

double cr2res_pfits_get_dit ( const cpl_propertylist *  plist)

find out the DIT value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 199 of file cr2res_pfits.c.

Referenced by cr2res_calib_image(), cr2res_idp_compute_mjd(), cr2res_idp_save(), and cr2res_io_read_dits().

◆ cr2res_pfits_get_drot_posang()

double cr2res_pfits_get_drot_posang ( const cpl_propertylist *  plist)

find out the DROT POSANG value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 174 of file cr2res_pfits.c.

◆ cr2res_pfits_get_drstype()

const char * cr2res_pfits_get_drstype ( const cpl_propertylist *  plist)

find out the DRS.TYPE

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

Definition at line 86 of file cr2res_pfits.c.

◆ cr2res_pfits_get_mjd_obs()

double cr2res_pfits_get_mjd_obs ( const cpl_propertylist *  plist)

find out the MJD-OBS value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 217 of file cr2res_pfits.c.

Referenced by cr2res_idp_compute_mjd().

◆ cr2res_pfits_get_ndit()

int cr2res_pfits_get_ndit ( const cpl_propertylist *  plist)

find out the NDIT value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 363 of file cr2res_pfits.c.

Referenced by cr2res_idp_compute_mjd(), cr2res_idp_save(), and cr2res_io_read_ndits().

◆ cr2res_pfits_get_nodding_pos()

cr2res_nodding_pos cr2res_pfits_get_nodding_pos ( const cpl_propertylist *  plist)

find out the nodding position

Parameters
plistproperty list to read from
Returns

Definition at line 53 of file cr2res_pfits.c.

Referenced by cr2res_nodding_read_positions().

◆ cr2res_pfits_get_nodthrow()

double cr2res_pfits_get_nodthrow ( const cpl_propertylist *  plist)

find out the NODTHROW value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 186 of file cr2res_pfits.c.

◆ cr2res_pfits_get_obs_id()

int cr2res_pfits_get_obs_id ( const cpl_propertylist *  plist)

find out the OBS ID value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 375 of file cr2res_pfits.c.

Referenced by cr2res_idp_save().

◆ cr2res_pfits_get_order_idx()

int cr2res_pfits_get_order_idx ( const cpl_propertylist *  plist,
double  yposition 
)

find out the order_idx closest to the passed y position

Parameters
plistproperty list to read from
ypositionY position
Returns
the order_idx (-49 -> 50)

Definition at line 412 of file cr2res_pfits.c.

References cr2res_io_convert_order_idx_to_idxp().

Referenced by cr2res_trace_add_extra_columns().

◆ cr2res_pfits_get_poltype()

const char * cr2res_pfits_get_poltype ( const cpl_propertylist *  plist)

find out the POL TYPE value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 241 of file cr2res_pfits.c.

Referenced by cr2res_idp_save(), and cr2res_pol_sort_frames().

◆ cr2res_pfits_get_progid()

const char * cr2res_pfits_get_progid ( const cpl_propertylist *  plist)

find out the PROG ID

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

Definition at line 124 of file cr2res_pfits.c.

Referenced by cr2res_idp_save().

◆ cr2res_pfits_get_protype()

const char * cr2res_pfits_get_protype ( const cpl_propertylist *  plist)

find out the PRO.TYPE

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

Definition at line 98 of file cr2res_pfits.c.

◆ cr2res_pfits_get_ra()

double cr2res_pfits_get_ra ( const cpl_propertylist *  plist)

find out the RA

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 162 of file cr2res_pfits.c.

◆ cr2res_pfits_get_wend()

double cr2res_pfits_get_wend ( const cpl_propertylist *  plist,
int  order_idx 
)

find out the End wavelength for an order_idx (current detector)

Parameters
plistproperty list to read from
order_idxOrder INDEX (-49 -> 50)
Returns
the requested value

Definition at line 285 of file cr2res_pfits.c.

References cr2res_io_convert_order_idx_to_idxp().

Referenced by cr2res_wave_get_estimate().

◆ cr2res_pfits_get_wlen_id()

const char * cr2res_pfits_get_wlen_id ( const cpl_propertylist *  plist)

find out the Setting

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

Definition at line 137 of file cr2res_pfits.c.

Referenced by cr2res_io_find_SLIT_MODEL().

◆ cr2res_pfits_get_wstrt()

double cr2res_pfits_get_wstrt ( const cpl_propertylist *  plist,
int  order_idx 
)

find out the Start wavelength for an order_idx (current detector)

Parameters
plistproperty list to read from
order_idxOrder INDEX (-49 -> 50)
Returns
the requested value

Definition at line 254 of file cr2res_pfits.c.

References cr2res_io_convert_order_idx_to_idxp().

Referenced by cr2res_wave_get_estimate().