UVES Pipeline Reference Manual  5.4.0
Functions
FITS header protected access

Functions

int uves_pfits_get_slit3_x1encoder (const uves_propertylist *plist)
 find out the value of UVES_ENCODER_REF1
int uves_pfits_get_slit3_x2encoder (const uves_propertylist *plist)
 find out the value of UVES_ENCODER_REF2
int uves_pfits_get_maxfibres (const uves_propertylist *plist)
 find out the frame
char uves_pfits_get_chipchoice (const uves_propertylist *plist)
 find out the frame
const char * uves_pfits_get_badpxframe (const uves_propertylist *plist)
 find out the frame
double uves_pfits_get_ambipress (const uves_propertylist *plist)
 find out the arcfile
const char * uves_pfits_get_arcfile (const uves_propertylist *plist)
 find out the arcfile
const char * uves_flames_pfits_get_ident (const uves_propertylist *plist)
 find out the ident
const char * uves_flames_pfits_get_object (const uves_propertylist *plist)
 find out the OBJECT
const char * uves_pfits_get_origfile (const uves_propertylist *plist)
 find out the origfile
const char * uves_pfits_get_pipefile (const uves_propertylist *plist)
 find out the pipefile
const char * uves_pfits_get_rec1raw1name (const uves_propertylist *plist)
 find out the arcfile
const char * uves_pfits_get_templateid (const uves_propertylist *plist)
 find out the template id
const char * uves_pfits_get_date_obs (const uves_propertylist *plist)
 find out the date of observation
const char * uves_pfits_get_dpr_catg (const uves_propertylist *plist)
 find out the data category as defined by the DataFlow
int uves_pfits_get_ocs_simcal (const uves_propertylist *plist)
 Read the SIMCAL flag.
void uves_pfits_set_ocs_simcal (uves_propertylist *plist, int simcal)
 Set the SIMCAL flag.
const char * uves_pfits_get_pro_catg (const uves_propertylist *plist)
 find out the product category as defined by the DataFlow
const char * uves_pfits_get_dpr_tech (const uves_propertylist *plist)
 find out the data tech as defined by the DataFlow
const char * uves_pfits_get_dpr_type (const uves_propertylist *plist)
 find out the data type as defined by the DataFlow
bool uves_ccd_is_new (const uves_propertylist *plist)
 Find out if CCD header is new.
bool uves_format_is_new (const uves_propertylist *plist)
 Find out FITS header format.
int uves_pfits_get_prescanx (const uves_propertylist *plist, enum uves_chip chip)
 Find out the x-prescan.
const char * uves_pfits_get_chipid (const uves_propertylist *plist, enum uves_chip chip)
 Find out the chip ID.
const char * uves_pfits_get_chip_name (const uves_propertylist *plist, enum uves_chip chip)
 Find out the chip name.
int uves_pfits_get_ovrscanx (const uves_propertylist *plist, enum uves_chip chip)
 Find out the x-overscan.
int uves_pfits_get_prescany (const uves_propertylist *plist, enum uves_chip chip)
 Find out the y-prescan.
int uves_pfits_get_ovrscany (const uves_propertylist *plist, enum uves_chip chip)
 Find out the y-overscan.
double uves_pfits_get_ron_adu (const uves_propertylist *plist, enum uves_chip chip)
 Find out the readout noise in ADU.
double uves_pfits_get_airmass_start (const uves_propertylist *plist)
 Find out the start airmass.
double uves_pfits_get_airmass_end (const uves_propertylist *plist)
 Find out the end airmass.
double uves_pfits_get_conad (const uves_propertylist *plist, enum uves_chip chip)
 Find out the conad.
const char * uves_pfits_get_targ_name (const uves_propertylist *plist)
 Get target name.
double uves_pfits_get_gain (const uves_propertylist *plist, enum uves_chip chip)
 Find out the gain.
double uves_pfits_get_exptime (const uves_propertylist *plist)
 Find out the exposure time in seconds.
cpl_error_code uves_pfits_set_exptime (uves_propertylist *plist, double exptime)
 Write the exposure time.
void uves_pfits_set_dec (uves_propertylist *plist, double dec)
 Write the declination.
void uves_pfits_set_ra (uves_propertylist *plist, double ra)
 Write the right ascension.
cpl_error_code uves_pfits_set_ordpred (uves_propertylist *plist, int nord)
 Write the predicted number of order.
const char * uves_pfits_get_drs_id (const uves_propertylist *plist)
 Find out the drs id.
const char * uves_pfits_get_tpl_start (const uves_propertylist *plist)
 Find out the tpl start.
double uves_pfits_get_utc (const uves_propertylist *plist)
 Find out the observation time.
double uves_pfits_get_mjdobs (const uves_propertylist *plist)
 Find out the modified julian observation date.
double uves_pfits_get_geolat (const uves_propertylist *plist)
 Find out the telescope latitude.
double uves_pfits_get_geolon (const uves_propertylist *plist)
 Find out the telescope longitude.
double uves_pfits_get_ra (const uves_propertylist *plist)
 Find out the right ascension.
double uves_pfits_get_dec (const uves_propertylist *plist)
 Find out the declination.
int uves_pfits_get_binx (const uves_propertylist *plist)
 Find out the x binning factor.
int uves_pfits_get_biny (const uves_propertylist *plist)
 Find out the y binning factor.
int uves_pfits_get_datancom (const uves_propertylist *plist)
 Find out the number of input raw frames.
const char * uves_pfits_get_ccdid (const uves_propertylist *plist)
 find out the ccd id
double uves_pfits_get_pressure (const uves_propertylist *plist)
 find out the pressure value
const char * uves_chop_eso_prefix (const char *key)
 chop the "ESO " prefix
double uves_pfits_get_tempcam (const uves_propertylist *plist, enum uves_chip chip)
 find out the pressure value
double uves_pfits_get_humidity (const uves_propertylist *plist)
 find out the humidity value
double uves_pfits_get_gratwlen (const uves_propertylist *plist, enum uves_chip chip)
 find out the central wavelength
const char * uves_pfits_get_insmode (const uves_propertylist *plist)
 find out the chip name value
const char * uves_pfits_get_inspath (const uves_propertylist *plist)
 find out the chip name value
const char * uves_pfits_get_gratname (const uves_propertylist *plist, enum uves_chip chip)
 find out the grating name value
const char * uves_pfits_get_readspeed (const uves_propertylist *plist)
 find out the readout speed
const char * uves_pfits_get_gratid (const uves_propertylist *plist, enum uves_chip chip)
 find out the grating ID value
double uves_pfits_get_slitlength (const uves_propertylist *plist, enum uves_chip chip)
 find out the slit length
double uves_pfits_get_slitwidth (const uves_propertylist *plist, enum uves_chip chip)
 find out the slit width
int uves_pfits_get_ordpred (const uves_propertylist *plist)
 Read the predicted number of orders.
void uves_pfits_set_history_val (uves_propertylist *plist, const char *name, const char *format,...)
 Write integer value to HISTORY keyword.
static double parse_history (const uves_propertylist *plist, const char *name, cpl_type type)
 Parse the value of a HISTORY keyword.
void uves_pfits_set_firstabsorder (uves_propertylist *plist, int first_abs_order)
 Write the first absolute order number.
int uves_pfits_get_firstabsorder (const uves_propertylist *plist)
 Get first absolute order number.
void uves_pfits_set_lastabsorder (uves_propertylist *plist, int last_abs_order)
 Write the last absolute order number.
int uves_pfits_get_lastabsorder (const uves_propertylist *plist)
 Get last absolute order number.
cpl_error_code uves_pfits_set_data_average (uves_propertylist *plist, double average)
 Write the average pixel value.
cpl_error_code uves_pfits_set_data_stddev (uves_propertylist *plist, double stddev)
 Write the RMS error of pixel values.
cpl_error_code uves_pfits_set_data_median (uves_propertylist *plist, double median)
 Write the median pixel value.
cpl_error_code uves_pfits_set_data_min (uves_propertylist *plist, double min)
 Write the min pixel value.
cpl_error_code uves_pfits_set_data_max (uves_propertylist *plist, double max)
 Write the max pixel value.
void uves_pfits_set_traceid (uves_propertylist *plist, int trace_id)
 Write the trace ID.
double uves_pfits_get_offset (const uves_propertylist *plist)
 Get the trace offset.
void uves_pfits_set_offset (uves_propertylist *plist, double trace_offset)
 Write the trace offset.
void uves_pfits_set_windownumber (uves_propertylist *plist, int window_number)
 Write the window number.
int uves_pfits_get_traceid (const uves_propertylist *plist)
 Get the trace ID number.
int uves_pfits_get_windownumber (const uves_propertylist *plist)
 Get the window number.
const char * uves_pfits_get_bunit (const uves_propertylist *plist)
 Find out the bunit.
double uves_pfits_get_bscale (const uves_propertylist *plist)
 Find out the bscale.
const char * uves_pfits_get_cunit1 (const uves_propertylist *plist)
 Find out the cunit1.
const char * uves_pfits_get_cunit2 (const uves_propertylist *plist)
 Find out the cunit2.
const char * uves_pfits_get_ctype1 (const uves_propertylist *plist)
 Find out the ctype1.
const char * uves_pfits_get_ctype2 (const uves_propertylist *plist)
 Find out the ctype2.
double uves_pfits_get_uit (const uves_propertylist *plist)
 Find out the user integration time.
int uves_pfits_get_nx (const uves_propertylist *plist, enum uves_chip chip)
 Find out the OUT1 NX or OUT4 NX.
int uves_pfits_get_ny (const uves_propertylist *plist, enum uves_chip chip)
 Find out the OUT1 NY or OUT4 NY.
int uves_pfits_get_out1nx (const uves_propertylist *plist)
 Find out the OUT1 NX.
int uves_pfits_get_out1ny (const uves_propertylist *plist)
 Find out the OUT1 NY.
int uves_pfits_get_out4nx (const uves_propertylist *plist)
 Find out the OUT4 NX.
int uves_pfits_get_out4ny (const uves_propertylist *plist)
 Find out the OUT4 NY.
int uves_pfits_get_naxis (const uves_propertylist *plist)
 Find out the NAXIS.
int uves_flames_pfits_get_nflats (const uves_propertylist *plist)
 Find out the NFLATS.
int uves_pfits_get_bitpix (const uves_propertylist *plist)
 Find out the BITPIX.
int uves_pfits_get_naxis1 (const uves_propertylist *plist)
 Find out the NAXIS1.
double uves_pfits_get_startx (const uves_propertylist *plist)
 Find out the START1.
double uves_pfits_get_starty (const uves_propertylist *plist)
 Find out the STARTY.
int uves_pfits_get_naxis2 (const uves_propertylist *plist)
 Find out the NAXIS2.
double uves_pfits_get_crval1 (const uves_propertylist *plist)
 Find out the crval1.
double uves_pfits_get_crval2 (const uves_propertylist *plist)
 Find out the crval2.
double uves_pfits_get_crpix1 (const uves_propertylist *plist)
 Find out the crpix1.
double uves_pfits_get_crpix2 (const uves_propertylist *plist)
 Find out the crpix2.
double uves_pfits_get_cdelt1 (const uves_propertylist *plist)
 Find out the cdelt1.
double uves_pfits_get_cdelt2 (const uves_propertylist *plist)
 Find out the cdelt2.
void uves_pfits_set_dpr_catg (uves_propertylist *plist, const char *catg)
 Set DPR CATG value.
void uves_pfits_set_dpr_tech (uves_propertylist *plist, const char *tech)
 Set DPR TECH value.
void uves_pfits_set_dpr_type (uves_propertylist *plist, const char *type)
 Set DPR TYPE value.
cpl_error_code uves_pfits_set_object (uves_propertylist *plist, const char *object)
 Write the object keyword.
cpl_error_code uves_pfits_set_badpixcorr (uves_propertylist *plist, const char *corr)
 Write the object keyword.
cpl_error_code uves_pfits_set_redlevel (uves_propertylist *plist, const char *redlevel)
 Write the reduction level.
cpl_error_code uves_pfits_set_status (uves_propertylist *plist, const char *status)
 Write the status.
cpl_error_code uves_pfits_set_starttime (uves_propertylist *plist, const char *start_time)
 Write the start time.
cpl_error_code uves_pfits_set_stoptime (uves_propertylist *plist, const char *stop_time)
 Write the stop time.
cpl_error_code uves_pfits_set_bunit (uves_propertylist *plist, const char *bunit)
 Write the bunit keyword.
cpl_error_code uves_pfits_set_bscale (uves_propertylist *plist, const double bscale)
 Write the bscale keyword.
cpl_error_code uves_pfits_set_tunit_no (uves_propertylist *plist, const int col_no, const char *tunit)
 Write the tunit keyword.
cpl_error_code uves_pfits_set_bunit_no (uves_propertylist *plist, const int axis_no, const char *bunit)
 Write the bunit keyword.
cpl_error_code uves_pfits_set_ctype1 (uves_propertylist *plist, const char *ctype1)
 Write the ctype1 keyword.
cpl_error_code uves_pfits_set_ctype2 (uves_propertylist *plist, const char *ctype2)
 Write the ctype2 keyword.
cpl_error_code uves_pfits_set_cunit1 (uves_propertylist *plist, const char *cunit1)
 Write the cunit1 keyword.
cpl_error_code uves_pfits_set_cunit2 (uves_propertylist *plist, const char *cunit2)
 Write the cunit2 keyword.
cpl_error_code uves_pfits_set_crval1 (uves_propertylist *plist, double crval1)
 Write the crval1 keyword.
cpl_error_code uves_pfits_set_crval2 (uves_propertylist *plist, double crval2)
 Write the crval2 keyword.
cpl_error_code uves_pfits_set_crpix1 (uves_propertylist *plist, double crpix1)
 Write the crpix1 keyword.
cpl_error_code uves_pfits_set_crpix2 (uves_propertylist *plist, double crpix2)
 Write the crpix2 keyword.
cpl_error_code uves_pfits_set_cdelt1 (uves_propertylist *plist, double cdelt1)
 Write the cdelt1 keyword.
void uves_flames_pfits_set_ccfposmax (uves_propertylist *plist, double ccfposmax)
 Write the ccfposmax keyword (what is it?)
cpl_error_code uves_pfits_set_cdelt2 (uves_propertylist *plist, double cdelt2)
 Write the cdelt2 keyword.
void uves_pfits_set_hs (uves_propertylist *plist, int hs)
 Write the 2d extractino slit length.
cpl_error_code uves_pfits_set_wstart (uves_propertylist *plist, int order, double wstart)
 Write the wstart keyword.
double uves_pfits_get_wstart (const uves_propertylist *plist, int order)
 Read the wstart keyword.
cpl_error_code uves_pfits_set_wend (uves_propertylist *plist, int order, double wend)
 Write the wend keyword.
double uves_pfits_get_wend (const uves_propertylist *plist, int order)
 Read the wend keyword.
double uves_pfits_get_pixelscale (const uves_propertylist *plist)
 Get pixel scale.
const char * uves_pfits_get_slit1_name (const uves_propertylist *plist)
 Get image slicer name.
double uves_pfits_get_slitlength_pixels (const uves_propertylist *plist, enum uves_chip chip)
 Read the slit length in pixels.
int uves_flames_pfits_get_plateid (const uves_propertylist *raw_header)
 read the plate id
double uves_flames_pfits_get_dit (const uves_propertylist *plist)
 Find out the integration time.
void uves_flames_pfits_set_newplateid (uves_propertylist *plist, int plate_no)
 Write the plate number.

Detailed Description

Interface for reading/writing FITS keywords.


Function Documentation

int uves_pfits_get_slit3_x1encoder ( const uves_propertylist plist)

find out the value of UVES_ENCODER_REF1

Parameters:
plistFITS header
Returns:
keyword value

Definition at line 284 of file uves_pfits.c.

References check, and uves_propertylist_get_int().

Referenced by uves_mflat_at_ypos().

int uves_pfits_get_slit3_x2encoder ( const uves_propertylist plist)

find out the value of UVES_ENCODER_REF2

Parameters:
plistFITS header
Returns:
keyword value

Definition at line 302 of file uves_pfits.c.

References check, and uves_propertylist_get_int().

Referenced by uves_mflat_at_ypos().

int uves_pfits_get_maxfibres ( const uves_propertylist plist)

find out the frame

Parameters:
plistFITS header
Returns:
number max of fibres

Definition at line 321 of file uves_pfits.c.

References check.

char uves_pfits_get_chipchoice ( const uves_propertylist plist)

find out the frame

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 340 of file uves_pfits.c.

References check, and uves_propertylist_get_char().

const char * uves_pfits_get_badpxframe ( const uves_propertylist plist)

find out the frame

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 357 of file uves_pfits.c.

References check.

double uves_pfits_get_ambipress ( const uves_propertylist plist)

find out the arcfile

Parameters:
plistFITS header
Returns:
keyword value

Definition at line 379 of file uves_pfits.c.

References check.

const char * uves_pfits_get_arcfile ( const uves_propertylist plist)

find out the arcfile

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 400 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common(), and uves_save_paf().

const char * uves_flames_pfits_get_ident ( const uves_propertylist plist)

find out the ident

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 422 of file uves_pfits.c.

References check, and uves_propertylist_get_string().

const char * uves_flames_pfits_get_object ( const uves_propertylist plist)

find out the OBJECT

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 442 of file uves_pfits.c.

References check, and uves_propertylist_get_string().

const char * uves_pfits_get_origfile ( const uves_propertylist plist)

find out the origfile

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 462 of file uves_pfits.c.

References check.

Referenced by uves_physmod_plotmod().

const char * uves_pfits_get_pipefile ( const uves_propertylist plist)

find out the pipefile

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 483 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common().

const char * uves_pfits_get_rec1raw1name ( const uves_propertylist plist)

find out the arcfile

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 508 of file uves_pfits.c.

References check.

Referenced by uves_save_paf().

const char * uves_pfits_get_templateid ( const uves_propertylist plist)

find out the template id

Parameters:
plistFITS header
Returns:
pointer to statically allocated character string

Definition at line 527 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common(), and uves_save_paf().

const char * uves_pfits_get_date_obs ( const uves_propertylist plist)

find out the date of observation

Parameters:
plistFITS file name
Returns:
pointer to statically allocated character string

Definition at line 549 of file uves_pfits.c.

References check.

const char * uves_pfits_get_dpr_catg ( const uves_propertylist plist)

find out the data category as defined by the DataFlow

Parameters:
plistsource FITS header
Returns:
statically allocated char string, no need to free() it

Definition at line 568 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common(), and uves_save_paf().

int uves_pfits_get_ocs_simcal ( const uves_propertylist plist)

Read the SIMCAL flag.

Parameters:
plistsource FITS header
Returns:
SIMCAL flag as integer

Definition at line 587 of file uves_pfits.c.

References check.

void uves_pfits_set_ocs_simcal ( uves_propertylist plist,
int  simcal 
)

Set the SIMCAL flag.

Parameters:
plistFITS header
simcalvalue to write

Definition at line 605 of file uves_pfits.c.

References check, and uves_propertylist_update_int().

const char * uves_pfits_get_pro_catg ( const uves_propertylist plist)

find out the product category as defined by the DataFlow

Parameters:
plistsource FITS header
Returns:
statically allocated char string, no need to free() it

Definition at line 622 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common().

const char * uves_pfits_get_dpr_tech ( const uves_propertylist plist)

find out the data tech as defined by the DataFlow

Parameters:
plistsource FITS header
Returns:
statically allocated char string, no need to free() it

Definition at line 641 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table(), and uves_save_paf().

const char * uves_pfits_get_dpr_type ( const uves_propertylist plist)

find out the data type as defined by the DataFlow

Parameters:
plistsource FITS header
Returns:
statically allocated char string, no need to free() it

Definition at line 660 of file uves_pfits.c.

References check.

Referenced by uves_save_paf().

bool uves_ccd_is_new ( const uves_propertylist plist)

Find out if CCD header is new.

Parameters:
plistHeader to read from
Returns:
true iff the observation date is later than July 6th, 2009

Definition at line 681 of file uves_pfits.c.

References check, and uves_pfits_get_mjdobs().

Referenced by uves_physmod_create_table(), and uves_reduce_scired().

bool uves_format_is_new ( const uves_propertylist plist)

Find out FITS header format.

Parameters:
plistHeader to read from
Returns:
true iff the observation date is later than April 1st, 2004

Definition at line 701 of file uves_pfits.c.

References check, and uves_pfits_get_mjdobs().

Referenced by uves_pfits_get_conad(), uves_pfits_get_gain(), uves_pfits_get_nx(), uves_pfits_get_ny(), uves_pfits_get_ovrscanx(), uves_pfits_get_ovrscany(), uves_pfits_get_prescanx(), uves_pfits_get_prescany(), uves_pfits_get_ron_adu(), and uves_pfits_get_uit().

int uves_pfits_get_prescanx ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the x-prescan.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 722 of file uves_pfits.c.

References check, and uves_format_is_new().

const char * uves_pfits_get_chipid ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the chip ID.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 747 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table(), uves_qclog_dump_common(), uves_reduce_mflat(), and uves_reduce_scired().

const char * uves_pfits_get_chip_name ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the chip name.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 767 of file uves_pfits.c.

References check.

Referenced by uves_qclog_init().

int uves_pfits_get_ovrscanx ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the x-overscan.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 787 of file uves_pfits.c.

References check, and uves_format_is_new().

int uves_pfits_get_prescany ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the y-prescan.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 812 of file uves_pfits.c.

References check, and uves_format_is_new().

int uves_pfits_get_ovrscany ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the y-overscan.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 838 of file uves_pfits.c.

References check, and uves_format_is_new().

double uves_pfits_get_ron_adu ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the readout noise in ADU.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

The function reads the readout noise in electrons and multiplies by the gain (conversion factor from electrons to ADU).

An error is set if the readout noise is not positive.

Definition at line 868 of file uves_pfits.c.

References check, uves_format_is_new(), uves_msg_warning, and uves_pfits_get_gain().

Referenced by uves_define_noise().

double uves_pfits_get_airmass_start ( const uves_propertylist plist)

Find out the start airmass.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 907 of file uves_pfits.c.

References check.

Referenced by uves_normalize_spectrum().

double uves_pfits_get_airmass_end ( const uves_propertylist plist)

Find out the end airmass.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 926 of file uves_pfits.c.

References check.

Referenced by uves_normalize_spectrum().

double uves_pfits_get_conad ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the conad.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

Definition at line 946 of file uves_pfits.c.

References check, and uves_format_is_new().

const char * uves_pfits_get_targ_name ( const uves_propertylist plist)

Get target name.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 971 of file uves_pfits.c.

References check.

double uves_pfits_get_gain ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the gain.

Parameters:
plistHeader to read from
chipCCD chip
Returns:
The requested value, or undefined on error

The gain is in units of (ADU / el-).

Definition at line 993 of file uves_pfits.c.

References check, uves_format_is_new(), and uves_msg_warning.

Referenced by uves_define_noise(), uves_mflat_process_chip(), uves_normalize_spectrum(), and uves_pfits_get_ron_adu().

double uves_pfits_get_exptime ( const uves_propertylist plist)

Find out the exposure time in seconds.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

An error is set if the exposure time is negative. In that case this negative value is returned.

Definition at line 1028 of file uves_pfits.c.

References check.

Referenced by tflat_qclog(), uves_define_noise(), uves_mflat_process_chip(), uves_normalize_spectrum(), uves_reduce(), and uves_subtract_dark().

cpl_error_code uves_pfits_set_exptime ( uves_propertylist plist,
double  exptime 
)

Write the exposure time.

Parameters:
plistProperty list to write to
exptimeThe value to write
Returns:
CPL_ERROR_NONE iff okay.

Definition at line 1050 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_double().

Referenced by uves_mflat_process_chip().

void uves_pfits_set_dec ( uves_propertylist plist,
double  dec 
)

Write the declination.

Parameters:
plistProperty list to write to
decThe value to write
Returns:
CPL_ERROR_NONE iff okay.

Definition at line 1070 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by test_3dtable().

void uves_pfits_set_ra ( uves_propertylist plist,
double  ra 
)

Write the right ascension.

Parameters:
plistProperty list to write to
raThe value to write
Returns:
CPL_ERROR_NONE iff okay.

Definition at line 1088 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by test_3dtable().

cpl_error_code uves_pfits_set_ordpred ( uves_propertylist plist,
int  nord 
)

Write the predicted number of order.

Parameters:
plistProperty list to write to
nordThe value to write
Returns:
CPL_ERROR_NONE iff okay.

Definition at line 1106 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_int().

const char * uves_pfits_get_drs_id ( const uves_propertylist plist)

Find out the drs id.

Parameters:
plistHeader to read from
Returns:
The requested value, or NULL on error

Definition at line 1123 of file uves_pfits.c.

References check.

const char * uves_pfits_get_tpl_start ( const uves_propertylist plist)

Find out the tpl start.

Parameters:
plistHeader to read from
Returns:
The requested value, or NULL on error

Definition at line 1149 of file uves_pfits.c.

References check.

Referenced by uves_physmod_plotmod().

double uves_pfits_get_utc ( const uves_propertylist plist)

Find out the observation time.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1173 of file uves_pfits.c.

References check.

Referenced by uves_baryvel().

double uves_pfits_get_mjdobs ( const uves_propertylist plist)

Find out the modified julian observation date.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1192 of file uves_pfits.c.

References check.

Referenced by uves_baryvel(), uves_ccd_is_new(), and uves_format_is_new().

double uves_pfits_get_geolat ( const uves_propertylist plist)

Find out the telescope latitude.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1210 of file uves_pfits.c.

References check.

Referenced by uves_baryvel().

double uves_pfits_get_geolon ( const uves_propertylist plist)

Find out the telescope longitude.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1228 of file uves_pfits.c.

References check.

Referenced by uves_baryvel().

double uves_pfits_get_ra ( const uves_propertylist plist)

Find out the right ascension.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1246 of file uves_pfits.c.

References check.

Referenced by uves_align(), and uves_baryvel().

double uves_pfits_get_dec ( const uves_propertylist plist)

Find out the declination.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1264 of file uves_pfits.c.

References check.

Referenced by uves_align(), and uves_baryvel().

int uves_pfits_get_binx ( const uves_propertylist plist)

Find out the x binning factor.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1282 of file uves_pfits.c.

References check.

Referenced by uves_image_mflat_detect_blemishes(), uves_pfits_get_slitlength_pixels(), uves_physmod_create_table(), uves_physmod_msrawxy(), uves_qclog_dump_common(), uves_qclog_init(), and uves_reduce_scired().

int uves_pfits_get_biny ( const uves_propertylist plist)

Find out the y binning factor.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1300 of file uves_pfits.c.

References check.

Referenced by uves_image_mflat_detect_blemishes(), uves_normalize_spectrum(), uves_physmod_create_table(), uves_physmod_msrawxy(), uves_qclog_dump_common(), uves_qclog_init(), and uves_reduce_scired().

int uves_pfits_get_datancom ( const uves_propertylist plist)

Find out the number of input raw frames.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1318 of file uves_pfits.c.

References check, uves_msg_warning, and uves_propertylist_contains().

Referenced by uves_reduce().

const char * uves_pfits_get_ccdid ( const uves_propertylist plist)

find out the ccd id

Parameters:
plistproperty list to read from
Returns:
the requested value

Definition at line 1357 of file uves_pfits.c.

References check.

double uves_pfits_get_pressure ( const uves_propertylist plist)

find out the pressure value

Parameters:
plistproperty list to read from
Returns:
the requested value

Definition at line 1375 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table().

const char * uves_chop_eso_prefix ( const char *  key)

chop the "ESO " prefix

Parameters:
keykeyword name
Returns:
the requested value or NULL on error

The function fails if the provided keyword does not start with "ESO "

Definition at line 1394 of file uves_pfits.c.

double uves_pfits_get_tempcam ( const uves_propertylist plist,
enum uves_chip  chip 
)

find out the pressure value

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 1419 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table(), uves_physmod_plotmod(), uves_qclog_add_common_wave(), and uves_qclog_dump_common_wave().

double uves_pfits_get_humidity ( const uves_propertylist plist)

find out the humidity value

Parameters:
plistproperty list to read from
Returns:
the requested value

Definition at line 1438 of file uves_pfits.c.

References check.

double uves_pfits_get_gratwlen ( const uves_propertylist plist,
enum uves_chip  chip 
)

find out the central wavelength

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value which is always positive on success

Definition at line 1457 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table(), uves_physmod_plotmod(), uves_qclog_add_common_wave(), and uves_qclog_dump_common_wave().

const char * uves_pfits_get_insmode ( const uves_propertylist plist)

find out the chip name value

Parameters:
plistproperty list to read from
Returns:
the requested value

Definition at line 1477 of file uves_pfits.c.

References check.

Referenced by tflat_qclog(), uves_qclog_dump_common(), and uves_qclog_init().

const char * uves_pfits_get_inspath ( const uves_propertylist plist)

find out the chip name value

Parameters:
plistproperty list to read from
Returns:
the requested value

Definition at line 1495 of file uves_pfits.c.

References check.

Referenced by tflat_qclog(), uves_qclog_dump_common(), and uves_qclog_init().

const char * uves_pfits_get_gratname ( const uves_propertylist plist,
enum uves_chip  chip 
)

find out the grating name value

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 1513 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common(), and uves_qclog_init().

const char * uves_pfits_get_readspeed ( const uves_propertylist plist)

find out the readout speed

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 1532 of file uves_pfits.c.

References check.

Referenced by uves_qclog_dump_common(), and uves_qclog_init().

const char * uves_pfits_get_gratid ( const uves_propertylist plist,
enum uves_chip  chip 
)

find out the grating ID value

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 1551 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table().

double uves_pfits_get_slitlength ( const uves_propertylist plist,
enum uves_chip  chip 
)

find out the slit length

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 1570 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table(), and uves_physmod_plotmod().

double uves_pfits_get_slitwidth ( const uves_propertylist plist,
enum uves_chip  chip 
)

find out the slit width

Parameters:
plistproperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 1590 of file uves_pfits.c.

References check.

Referenced by uves_physmod_create_table(), uves_physmod_plotmod(), uves_qclog_add_common_wave(), and uves_qclog_dump_common_wave().

int uves_pfits_get_ordpred ( const uves_propertylist plist)

Read the predicted number of orders.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 1608 of file uves_pfits.c.

References check, uves_propertylist_contains(), uves_propertylist_get_type(), and uves_tostring_cpl_type().

void uves_pfits_set_history_val ( uves_propertylist plist,
const char *  name,
const char *  format,
  ... 
)

Write integer value to HISTORY keyword.

Parameters:
plistproperty list to write to
namename
formatprintf-style argument, value to write

This function adds a HISTORY keyword with value "[name] [value]". If a HISTORY entry with value prefix "[name] " already exists, the value will be changed (first match is used).

See also parse_history().

Definition at line 1665 of file uves_pfits.c.

References check, and uves_propertylist_get_size().

Referenced by uves_pfits_set_firstabsorder(), uves_pfits_set_lastabsorder(), uves_pfits_set_offset(), uves_pfits_set_traceid(), and uves_pfits_set_windownumber().

static double parse_history ( const uves_propertylist plist,
const char *  name,
cpl_type  type 
)
static

Parse the value of a HISTORY keyword.

Parameters:
plistproperty list to read from
namename
typeinteger or double
Returns:
The requested value, or undefined on error. An integer value is cast to double (i.e. the caller should round the returned value)

This function will search for a HISTORY keyword containing the value "[name] [number]" where [name] is the specified name and number is an integer or double (the value to read).

The first "HISTORY [name] ..." entry will be read and it is an error if this doesn't contain a valid number string (also if a valid entry exists at a later point in the propertylist).

Definition at line 1739 of file uves_pfits.c.

References check, uves_propertylist_get_const(), uves_propertylist_get_size(), and uves_tostring_cpl_type().

Referenced by uves_pfits_get_firstabsorder(), uves_pfits_get_lastabsorder(), uves_pfits_get_offset(), uves_pfits_get_traceid(), and uves_pfits_get_windownumber().

void uves_pfits_set_firstabsorder ( uves_propertylist plist,
int  first_abs_order 
)

Write the first absolute order number.

Parameters:
plistProperty list to write to
first_abs_orderThe value to write
Returns:
CPL_ERROR_NONE iff okay.

Definition at line 1803 of file uves_pfits.c.

References uves_pfits_set_history_val().

Referenced by test_load_linetable().

int uves_pfits_get_firstabsorder ( const uves_propertylist plist)

Get first absolute order number.

Parameters:
plistProperty list to read from
Returns:
The requested value, or undefined on error

Definition at line 1818 of file uves_pfits.c.

References parse_history().

Referenced by extract_ff_rebin_merge(), and uves_response_efficiency().

void uves_pfits_set_lastabsorder ( uves_propertylist plist,
int  last_abs_order 
)

Write the last absolute order number.

Parameters:
plistProperty list to write to
last_abs_orderThe value to write
Returns:
The requested value, or undefined on error

Definition at line 1834 of file uves_pfits.c.

References uves_pfits_set_history_val().

Referenced by test_load_linetable().

int uves_pfits_get_lastabsorder ( const uves_propertylist plist)

Get last absolute order number.

Parameters:
plistProperty list to read from
Returns:
The requested value, or undefined on error

Definition at line 1848 of file uves_pfits.c.

References parse_history().

Referenced by extract_ff_rebin_merge(), and uves_response_efficiency().

cpl_error_code uves_pfits_set_data_average ( uves_propertylist plist,
double  average 
)

Write the average pixel value.

Parameters:
plistProperty list to write to
averageThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1862 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_double().

cpl_error_code uves_pfits_set_data_stddev ( uves_propertylist plist,
double  stddev 
)

Write the RMS error of pixel values.

Parameters:
plistProperty list to write to
stddevThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1880 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_double().

cpl_error_code uves_pfits_set_data_median ( uves_propertylist plist,
double  median 
)

Write the median pixel value.

Parameters:
plistProperty list to write to
medianThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1900 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_double().

cpl_error_code uves_pfits_set_data_min ( uves_propertylist plist,
double  min 
)

Write the min pixel value.

Parameters:
plistProperty list to write to
minThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1918 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_double().

cpl_error_code uves_pfits_set_data_max ( uves_propertylist plist,
double  max 
)

Write the max pixel value.

Parameters:
plistProperty list to write to
maxThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1936 of file uves_pfits.c.

References check, uves_propertylist_set_comment(), and uves_propertylist_update_double().

void uves_pfits_set_traceid ( uves_propertylist plist,
int  trace_id 
)

Write the trace ID.

Parameters:
plistProperty list to write to
trace_idThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1956 of file uves_pfits.c.

References uves_pfits_set_history_val().

Referenced by test_load_linetable().

double uves_pfits_get_offset ( const uves_propertylist plist)

Get the trace offset.

Parameters:
plistProperty list to read
Returns:
offset

Definition at line 1970 of file uves_pfits.c.

References check, parse_history(), and uves_propertylist_contains().

Referenced by interpolate_wave().

void uves_pfits_set_offset ( uves_propertylist plist,
double  trace_offset 
)

Write the trace offset.

Parameters:
plistProperty list to write to
trace_offsetThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 1997 of file uves_pfits.c.

References uves_pfits_set_history_val().

void uves_pfits_set_windownumber ( uves_propertylist plist,
int  window_number 
)

Write the window number.

Parameters:
plistProperty list to write to
window_numberThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2012 of file uves_pfits.c.

References uves_pfits_set_history_val().

Referenced by test_load_linetable().

int uves_pfits_get_traceid ( const uves_propertylist plist)

Get the trace ID number.

Parameters:
plistProperty list to read from
Returns:
The requested value, or undefined on error

Definition at line 2027 of file uves_pfits.c.

References parse_history().

int uves_pfits_get_windownumber ( const uves_propertylist plist)

Get the window number.

Parameters:
plistProperty list to read from
Returns:
The requested value, or undefined on error

Definition at line 2040 of file uves_pfits.c.

References parse_history().

const char * uves_pfits_get_bunit ( const uves_propertylist plist)

Find out the bunit.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2053 of file uves_pfits.c.

References check.

double uves_pfits_get_bscale ( const uves_propertylist plist)

Find out the bscale.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2072 of file uves_pfits.c.

References check.

const char * uves_pfits_get_cunit1 ( const uves_propertylist plist)

Find out the cunit1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2092 of file uves_pfits.c.

References check.

const char * uves_pfits_get_cunit2 ( const uves_propertylist plist)

Find out the cunit2.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2111 of file uves_pfits.c.

References check.

const char * uves_pfits_get_ctype1 ( const uves_propertylist plist)

Find out the ctype1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2130 of file uves_pfits.c.

References check.

const char * uves_pfits_get_ctype2 ( const uves_propertylist plist)

Find out the ctype2.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2149 of file uves_pfits.c.

References check.

double uves_pfits_get_uit ( const uves_propertylist plist)

Find out the user integration time.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2168 of file uves_pfits.c.

References check, and uves_format_is_new().

int uves_pfits_get_nx ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the OUT1 NX or OUT4 NX.

Parameters:
plistProperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 2194 of file uves_pfits.c.

References check, and uves_format_is_new().

Referenced by uves_physmod_chop_otab(), and uves_physmod_regress_echelle().

int uves_pfits_get_ny ( const uves_propertylist plist,
enum uves_chip  chip 
)

Find out the OUT1 NY or OUT4 NY.

Parameters:
plistProperty list to read from
chipCCD chip
Returns:
the requested value

Definition at line 2223 of file uves_pfits.c.

References check, and uves_format_is_new().

Referenced by uves_physmod_chop_otab(), and uves_physmod_regress_echelle().

int uves_pfits_get_out1nx ( const uves_propertylist plist)

Find out the OUT1 NX.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2250 of file uves_pfits.c.

References check.

int uves_pfits_get_out1ny ( const uves_propertylist plist)

Find out the OUT1 NY.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2269 of file uves_pfits.c.

References check.

int uves_pfits_get_out4nx ( const uves_propertylist plist)

Find out the OUT4 NX.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2288 of file uves_pfits.c.

References check.

int uves_pfits_get_out4ny ( const uves_propertylist plist)

Find out the OUT4 NY.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2307 of file uves_pfits.c.

References check.

int uves_pfits_get_naxis ( const uves_propertylist plist)

Find out the NAXIS.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2327 of file uves_pfits.c.

References check.

Referenced by flames_utl_unpack().

int uves_flames_pfits_get_nflats ( const uves_propertylist plist)

Find out the NFLATS.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2346 of file uves_pfits.c.

References check.

int uves_pfits_get_bitpix ( const uves_propertylist plist)

Find out the BITPIX.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2366 of file uves_pfits.c.

References check.

Referenced by flames_midas_scfinf().

int uves_pfits_get_naxis1 ( const uves_propertylist plist)

Find out the NAXIS1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2384 of file uves_pfits.c.

References check.

Referenced by uves_physmod_regress_echelle().

double uves_pfits_get_startx ( const uves_propertylist plist)

Find out the START1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2404 of file uves_pfits.c.

References check.

double uves_pfits_get_starty ( const uves_propertylist plist)

Find out the STARTY.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2424 of file uves_pfits.c.

References check.

int uves_pfits_get_naxis2 ( const uves_propertylist plist)

Find out the NAXIS2.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2443 of file uves_pfits.c.

References check.

Referenced by uves_physmod_regress_echelle().

double uves_pfits_get_crval1 ( const uves_propertylist plist)

Find out the crval1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2461 of file uves_pfits.c.

References check.

Referenced by subtract_sky(), uves_calculate_response(), uves_normalize_spectrum(), uves_physmod_regress_echelle(), and uves_scired_process_chip().

double uves_pfits_get_crval2 ( const uves_propertylist plist)

Find out the crval2.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2479 of file uves_pfits.c.

References check.

Referenced by detect_lines(), and uves_physmod_regress_echelle().

double uves_pfits_get_crpix1 ( const uves_propertylist plist)

Find out the crpix1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2497 of file uves_pfits.c.

References check.

double uves_pfits_get_crpix2 ( const uves_propertylist plist)

Find out the crpix2.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2515 of file uves_pfits.c.

References check.

double uves_pfits_get_cdelt1 ( const uves_propertylist plist)

Find out the cdelt1.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2533 of file uves_pfits.c.

References check.

Referenced by subtract_sky(), uves_calculate_response(), uves_merge_orders(), uves_normalize_spectrum(), uves_physmod_regress_echelle(), uves_response_efficiency(), and uves_scired_process_chip().

double uves_pfits_get_cdelt2 ( const uves_propertylist plist)

Find out the cdelt2.

Parameters:
plistProperty list to read from
Returns:
the requested value

Definition at line 2551 of file uves_pfits.c.

References check.

Referenced by uves_physmod_regress_echelle().

void uves_pfits_set_dpr_catg ( uves_propertylist plist,
const char *  catg 
)

Set DPR CATG value.

Parameters:
plistProperty list to read from
catgkey value
Returns:
void

Definition at line 2572 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

void uves_pfits_set_dpr_tech ( uves_propertylist plist,
const char *  tech 
)

Set DPR TECH value.

Parameters:
plistProperty list to read from
catgkey value
Returns:
void

Definition at line 2589 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

void uves_pfits_set_dpr_type ( uves_propertylist plist,
const char *  type 
)

Set DPR TYPE value.

Parameters:
plistProperty list to read from
catgkey value
Returns:
void

Definition at line 2605 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_object ( uves_propertylist plist,
const char *  object 
)

Write the object keyword.

Parameters:
plistProperty list to write to
objectThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2622 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_badpixcorr ( uves_propertylist plist,
const char *  corr 
)

Write the object keyword.

Parameters:
plistProperty list to write to
corrThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2639 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

Referenced by uves_correct_badpix().

cpl_error_code uves_pfits_set_redlevel ( uves_propertylist plist,
const char *  redlevel 
)

Write the reduction level.

Parameters:
plistProperty list to write to
redlevelThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2657 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_status ( uves_propertylist plist,
const char *  status 
)

Write the status.

Parameters:
plistProperty list to write to
statusThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2675 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_starttime ( uves_propertylist plist,
const char *  start_time 
)

Write the start time.

Parameters:
plistProperty list to write to
start_timeThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2693 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_stoptime ( uves_propertylist plist,
const char *  stop_time 
)

Write the stop time.

Parameters:
plistProperty list to write to
stop_timeThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2710 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_bunit ( uves_propertylist plist,
const char *  bunit 
)

Write the bunit keyword.

Parameters:
plistProperty list to write to
bunitThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2728 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

Referenced by uves_initialize_image_header(), and uves_reduce_scired().

cpl_error_code uves_pfits_set_bscale ( uves_propertylist plist,
const double  bscale 
)

Write the bscale keyword.

Parameters:
plistProperty list to write to
bscaleThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2746 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by uves_initialize_image_header().

cpl_error_code uves_pfits_set_tunit_no ( uves_propertylist plist,
const int  col_no,
const char *  tunit 
)

Write the tunit keyword.

Parameters:
plistProperty list to write to
bunitThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2765 of file uves_pfits.c.

References check, uves_msg, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_bunit_no ( uves_propertylist plist,
const int  axis_no,
const char *  bunit 
)

Write the bunit keyword.

Parameters:
plistProperty list to write to
bunitThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2786 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

cpl_error_code uves_pfits_set_ctype1 ( uves_propertylist plist,
const char *  ctype1 
)

Write the ctype1 keyword.

Parameters:
plistProperty list to write to
ctype1The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2804 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

Referenced by uves_initialize_image_header(), and uves_reduce_scired().

cpl_error_code uves_pfits_set_ctype2 ( uves_propertylist plist,
const char *  ctype2 
)

Write the ctype2 keyword.

Parameters:
plistProperty list to write to
ctype2The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2821 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

Referenced by uves_initialize_image_header(), and uves_reduce_scired().

cpl_error_code uves_pfits_set_cunit1 ( uves_propertylist plist,
const char *  cunit1 
)

Write the cunit1 keyword.

Parameters:
plistProperty list to write to
cunit1The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2841 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

Referenced by uves_initialize_image_header().

cpl_error_code uves_pfits_set_cunit2 ( uves_propertylist plist,
const char *  cunit2 
)

Write the cunit2 keyword.

Parameters:
plistProperty list to write to
cunit2The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2859 of file uves_pfits.c.

References check, and uves_propertylist_update_string().

Referenced by uves_initialize_image_header().

cpl_error_code uves_pfits_set_crval1 ( uves_propertylist plist,
double  crval1 
)

Write the crval1 keyword.

Parameters:
plistProperty list to write to
crval1The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2877 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by subtract_sky(), and uves_initialize_image_header().

cpl_error_code uves_pfits_set_crval2 ( uves_propertylist plist,
double  crval2 
)

Write the crval2 keyword.

Parameters:
plistProperty list to write to
crval2The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2895 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by uves_initialize_image_header().

cpl_error_code uves_pfits_set_crpix1 ( uves_propertylist plist,
double  crpix1 
)

Write the crpix1 keyword.

Parameters:
plistProperty list to write to
crpix1The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2912 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by uves_initialize_image_header().

cpl_error_code uves_pfits_set_crpix2 ( uves_propertylist plist,
double  crpix2 
)

Write the crpix2 keyword.

Parameters:
plistProperty list to write to
crpix2The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2930 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by uves_initialize_image_header().

cpl_error_code uves_pfits_set_cdelt1 ( uves_propertylist plist,
double  cdelt1 
)

Write the cdelt1 keyword.

Parameters:
plistProperty list to write to
cdelt1The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2947 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by uves_initialize_image_header().

void uves_flames_pfits_set_ccfposmax ( uves_propertylist plist,
double  ccfposmax 
)

Write the ccfposmax keyword (what is it?)

Parameters:
plistProperty list to write to
ccfposmaxThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2965 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

cpl_error_code uves_pfits_set_cdelt2 ( uves_propertylist plist,
double  cdelt2 
)

Write the cdelt2 keyword.

Parameters:
plistProperty list to write to
cdelt2The value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 2983 of file uves_pfits.c.

References check, and uves_propertylist_update_double().

Referenced by uves_initialize_image_header().

void uves_pfits_set_hs ( uves_propertylist plist,
int  hs 
)

Write the 2d extractino slit length.

Parameters:
plistProperty list to write to
hsThe value to write

Definition at line 3000 of file uves_pfits.c.

References check, and uves_propertylist_update_int().

Referenced by uves_reduce().

cpl_error_code uves_pfits_set_wstart ( uves_propertylist plist,
int  order,
double  wstart 
)

Write the wstart keyword.

Parameters:
plistProperty list to write to
orderWrite WSTART keyword for this order number
wstartThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 3020 of file uves_pfits.c.

References assure_mem, check, and uves_propertylist_update_double().

Referenced by subtract_sky(), and uves_rebin().

double uves_pfits_get_wstart ( const uves_propertylist plist,
int  order 
)

Read the wstart keyword.

Parameters:
plistProperty list to read
orderRead WSTART keyword for this order number
Returns:
The value read

Definition at line 3052 of file uves_pfits.c.

References assure_mem, and check.

Referenced by subtract_sky(), uves_calculate_response(), uves_merge_orders(), uves_normalize_spectrum(), uves_rebin(), and uves_response_efficiency().

cpl_error_code uves_pfits_set_wend ( uves_propertylist plist,
int  order,
double  wend 
)

Write the wend keyword.

Parameters:
plistProperty list to write to
orderWrite WEND keyword for this order number
wendThe value to write
Returns:
CPL_ERROR_NONE iff okay

Definition at line 3083 of file uves_pfits.c.

References assure_mem, check, and uves_propertylist_update_double().

Referenced by subtract_sky(), and uves_rebin().

double uves_pfits_get_wend ( const uves_propertylist plist,
int  order 
)

Read the wend keyword.

Parameters:
plistProperty list to read
orderRead WEND keyword for this order number
Returns:
The value read

Definition at line 3115 of file uves_pfits.c.

References assure_mem, and check.

Referenced by subtract_sky(), uves_merge_orders(), and uves_response_efficiency().

double uves_pfits_get_pixelscale ( const uves_propertylist plist)

Get pixel scale.

Parameters:
plistProperty list to read from
Returns:
The requested value

Definition at line 3145 of file uves_pfits.c.

References check.

Referenced by uves_pfits_get_slitlength_pixels().

const char * uves_pfits_get_slit1_name ( const uves_propertylist plist)

Get image slicer name.

Parameters:
plistProperty list to read from
Returns:
The requested value

Definition at line 3164 of file uves_pfits.c.

References check.

Referenced by tflat_qclog(), uves_pfits_get_slitlength_pixels(), and uves_reduce().

double uves_pfits_get_slitlength_pixels ( const uves_propertylist plist,
enum uves_chip  chip 
)

Read the slit length in pixels.

Parameters:
plistProperty list to read
chipCCD chip
Returns:
The slit length in pixels

The function returns the slit length in pixels taking into account the possible existence of an image slicer

Definition at line 3189 of file uves_pfits.c.

References check, check_nomsg, uves_pfits_get_binx(), uves_pfits_get_pixelscale(), and uves_pfits_get_slit1_name().

Referenced by uves_reduce().

int uves_flames_pfits_get_plateid ( const uves_propertylist raw_header)

read the plate id

Parameters:
raw_headerFITS header
Returns:
plate id

Definition at line 3249 of file uves_pfits.c.

References check, uves_msg_warning, and uves_propertylist_contains().

Referenced by uves_physmod_create_table().

double uves_flames_pfits_get_dit ( const uves_propertylist plist)

Find out the integration time.

Parameters:
plistHeader to read from
Returns:
The requested value, or undefined on error

Definition at line 3302 of file uves_pfits.c.

References check.

void uves_flames_pfits_set_newplateid ( uves_propertylist plist,
int  plate_no 
)

Write the plate number.

Parameters:
plistProperty list to write to
plate_noThe value to write

Definition at line 3321 of file uves_pfits.c.

References check, and uves_propertylist_update_int().