VIRCAM Pipeline  1.3.3
Functions
vircam_pfits
Groups of Support Routines

These are support routines used for extracting information from FITS headers. More...

Functions

int vircam_pfits_get_crval1 (const cpl_propertylist *plist, double *crval1)
 Get the value of crval1.
int vircam_pfits_get_crpix1 (const cpl_propertylist *plist, double *crpix1)
 Get the value of crpix1.
int vircam_pfits_get_crval2 (const cpl_propertylist *plist, double *crval2)
 Get the value of crval2.
int vircam_pfits_get_crpix2 (const cpl_propertylist *plist, double *crpix2)
 Get the value of crpix2.
int vircam_pfits_get_cd11 (const cpl_propertylist *plist, double *cd11)
 Get the value of cd1_1.
int vircam_pfits_get_cd12 (const cpl_propertylist *plist, double *cd12)
 Get the value of cd1_2.
int vircam_pfits_get_cd21 (const cpl_propertylist *plist, double *cd21)
 Get the value of cd2_1.
int vircam_pfits_get_cd22 (const cpl_propertylist *plist, double *cd22)
 Get the value of cd2_2.
int vircam_pfits_get_pv21 (const cpl_propertylist *plist, double *pv21)
 Get the value of pv2_1.
int vircam_pfits_get_pv23 (const cpl_propertylist *plist, double *pv23)
 Get the value of pv2_3.
int vircam_pfits_get_pv25 (const cpl_propertylist *plist, double *pv25)
 Get the value of pv2_5.
int vircam_pfits_get_exptime (const cpl_propertylist *plist, float *exptime)
 Get the value of exposure time.
int vircam_pfits_get_mindit (const cpl_propertylist *plist, float *mindit)
 Get the value of mindit time.
int vircam_pfits_get_ditdelay (const cpl_propertylist *plist, float *ditdelay)
 Get the value of dit delay time.
int vircam_pfits_get_naxis1 (const cpl_propertylist *plist, long *naxis1)
 Get the value of naxis1.
int vircam_pfits_get_naxis2 (const cpl_propertylist *plist, long *naxis2)
 Get the value of naxis2.
int vircam_pfits_get_chipno (const cpl_propertylist *plist, int *chipno)
 Get the value of chipno.
int vircam_pfits_get_jxoff (const cpl_propertylist *plist, float *xoff)
 Get the value of the X jitter offset.
int vircam_pfits_get_jyoff (const cpl_propertylist *plist, float *yoff)
 Get the value of the Y jitter offset.
int vircam_pfits_get_airmass (const cpl_propertylist *plist, float *airmass)
 Get the value of the airmass.
int vircam_pfits_get_nusteps (const cpl_propertylist *plist, int *nusteps)
 Get the value of the number of microsteps in a sequence.
int vircam_pfits_get_ustepnum (const cpl_propertylist *plist, int *ustepnum)
 Get the value of the first run number in the current microstep sequence.
int vircam_pfits_get_njsteps (const cpl_propertylist *plist, int *njsteps)
 Get the value of the number of observations in a jitter sequence.
int vircam_pfits_get_jitternum (const cpl_propertylist *plist, int *jitternum)
 Get the value of the first run number in the current jitter sequence.
int vircam_pfits_get_jitteri (const cpl_propertylist *plist, int *jitteri)
 Get the position number of an observations in a jitter sequence.
int vircam_pfits_get_offsetnum (const cpl_propertylist *plist, int *offsetnum)
 Get the value of the first run number in the current tile sequence.
int vircam_pfits_get_ndit (const cpl_propertylist *plist, int *ndit)
 Get the value of NDIT.
int vircam_pfits_get_dit (const cpl_propertylist *plist, float *dit)
 Get the value of DIT.
int vircam_pfits_get_detlive (const cpl_propertylist *plist, int *detlive)
 Get the value of DET_LIVE.
int vircam_pfits_get_filter (const cpl_propertylist *plist, char *filt)
 Get the name of the current filter.
int vircam_pfits_get_projid (const cpl_propertylist *plist, char *projid)
 Get the project id.
int vircam_pfits_get_saturation (const cpl_propertylist *plist, float *saturation)
 Get the saturation level for this detector.
int vircam_pfits_get_gain (const cpl_propertylist *plist, float *gain)
 Get the value of the detector gain.
int vircam_pfits_get_mjd (const cpl_propertylist *plist, double *mjd)
 Get the value of the modified Julian date.
int vircam_pfits_get_ra (const cpl_propertylist *plist, double *ra)
 Get the value of RA.
int vircam_pfits_get_dec (const cpl_propertylist *plist, double *dec)
 Get the value of DEC.

Detailed Description

These are support routines used for extracting information from FITS headers.

Author:
Jim Lewis, CASU

Function Documentation

int vircam_pfits_get_airmass ( const cpl_propertylist *  plist,
float *  airmass 
)

Get the value of the airmass.

Parameters:
plistproperty list to read from
airmassrequested value of the airmass
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 405 of file vircam_pfits.c.

Referenced by vircam_illum(), and vircam_photcal().

int vircam_pfits_get_cd11 ( const cpl_propertylist *  plist,
double *  cd11 
)

Get the value of cd1_1.

Parameters:
plistproperty list to read from
cd11requested value of cd1_1
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 135 of file vircam_pfits.c.

int vircam_pfits_get_cd12 ( const cpl_propertylist *  plist,
double *  cd12 
)

Get the value of cd1_2.

Parameters:
plistproperty list to read from
cd12requested value of cd1_2
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 150 of file vircam_pfits.c.

int vircam_pfits_get_cd21 ( const cpl_propertylist *  plist,
double *  cd21 
)

Get the value of cd2_1.

Parameters:
plistproperty list to read from
cd21requested value of cd2_1
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 166 of file vircam_pfits.c.

int vircam_pfits_get_cd22 ( const cpl_propertylist *  plist,
double *  cd22 
)

Get the value of cd2_2.

Parameters:
plistproperty list to read from
cd22requested value of cd2_2
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 181 of file vircam_pfits.c.

int vircam_pfits_get_chipno ( const cpl_propertylist *  plist,
int *  chipno 
)

Get the value of chipno.

Parameters:
plistproperty list to read from
chipnorequested value of chipno
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 346 of file vircam_pfits.c.

int vircam_pfits_get_crpix1 ( const cpl_propertylist *  plist,
double *  crpix1 
)

Get the value of crpix1.

Parameters:
plistproperty list to read from
crpix1requested value of crpix1
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 85 of file vircam_pfits.c.

Referenced by vircam_imdither().

int vircam_pfits_get_crpix2 ( const cpl_propertylist *  plist,
double *  crpix2 
)

Get the value of crpix2.

Parameters:
plistproperty list to read from
crpix2requested value of crpix2
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 119 of file vircam_pfits.c.

Referenced by vircam_imdither().

int vircam_pfits_get_crval1 ( const cpl_propertylist *  plist,
double *  crval1 
)

Get the value of crval1.

Parameters:
plistproperty list to read from
crval1requested value of crval1
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 68 of file vircam_pfits.c.

Referenced by vircam_check_crval().

int vircam_pfits_get_crval2 ( const cpl_propertylist *  plist,
double *  crval2 
)

Get the value of crval2.

Parameters:
plistproperty list to read from
crval2requested value of crval2
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 102 of file vircam_pfits.c.

Referenced by vircam_check_crval().

int vircam_pfits_get_dec ( const cpl_propertylist *  plist,
double *  dec 
)

Get the value of DEC.

Parameters:
plistproperty list to read from
decrequested value of dec
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 757 of file vircam_pfits.c.

Referenced by vircam_check_crval().

int vircam_pfits_get_detlive ( const cpl_propertylist *  plist,
int *  detlive 
)

Get the value of DET_LIVE.

Parameters:
plistproperty list to read from
detliverequested value of DET_LIVE
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 624 of file vircam_pfits.c.

int vircam_pfits_get_dit ( const cpl_propertylist *  plist,
float *  dit 
)

Get the value of DIT.

Parameters:
plistproperty list to read from
ditrequested value of dit
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 608 of file vircam_pfits.c.

int vircam_pfits_get_ditdelay ( const cpl_propertylist *  plist,
float *  ditdelay 
)

Get the value of dit delay time.

Parameters:
plistproperty list to read from
ditdelayrequested value of dit delay time
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 279 of file vircam_pfits.c.

Referenced by vircam_lincor().

int vircam_pfits_get_exptime ( const cpl_propertylist *  plist,
float *  exptime 
)

Get the value of exposure time.

Parameters:
plistproperty list to read from
exptimerequested value of exptime
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 245 of file vircam_pfits.c.

Referenced by classify(), vircam_illum(), vircam_imcombine(), vircam_imdither(), vircam_imstack(), vircam_lincor(), and vircam_photcal().

int vircam_pfits_get_filter ( const cpl_propertylist *  plist,
char *  filt 
)

Get the name of the current filter.

Parameters:
plistproperty list to read from
filtrequested name of the filter
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 649 of file vircam_pfits.c.

Referenced by vircam_jmp_illum(), and vircam_jmp_photcal().

int vircam_pfits_get_gain ( const cpl_propertylist *  plist,
float *  gain 
)

Get the value of the detector gain.

Parameters:
plistproperty list to read from
gainrequested value of the gain
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 709 of file vircam_pfits.c.

Referenced by imcore_conf(), and imcore_opm().

int vircam_pfits_get_jitteri ( const cpl_propertylist *  plist,
int *  jitteri 
)

Get the position number of an observations in a jitter sequence.

Parameters:
plistproperty list to read from
jitterirequested value of the position of the observation in a jitter sequence
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 530 of file vircam_pfits.c.

Referenced by vircam_tilesky().

int vircam_pfits_get_jitternum ( const cpl_propertylist *  plist,
int *  jitternum 
)

Get the value of the first run number in the current jitter sequence.

Parameters:
plistproperty list to read from
jitternumrequested value of the jitter sequence number
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 503 of file vircam_pfits.c.

int vircam_pfits_get_jxoff ( const cpl_propertylist *  plist,
float *  xoff 
)

Get the value of the X jitter offset.

Parameters:
plistproperty list to read from
xoffrequested value of the x offset
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 371 of file vircam_pfits.c.

Referenced by vircam_imdither().

int vircam_pfits_get_jyoff ( const cpl_propertylist *  plist,
float *  yoff 
)

Get the value of the Y jitter offset.

Parameters:
plistproperty list to read from
yoffrequested value of the y offset
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 388 of file vircam_pfits.c.

Referenced by vircam_imdither().

int vircam_pfits_get_mindit ( const cpl_propertylist *  plist,
float *  mindit 
)

Get the value of mindit time.

Parameters:
plistproperty list to read from
minditrequested value of mindit time
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 262 of file vircam_pfits.c.

Referenced by vircam_lincor().

int vircam_pfits_get_mjd ( const cpl_propertylist *  plist,
double *  mjd 
)

Get the value of the modified Julian date.

Parameters:
plistproperty list to read from
mjdrequested value of the mjd
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 725 of file vircam_pfits.c.

int vircam_pfits_get_naxis1 ( const cpl_propertylist *  plist,
long *  naxis1 
)

Get the value of naxis1.

Parameters:
plistproperty list to read from
naxis1requested value of naxis1
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 296 of file vircam_pfits.c.

Referenced by vircam_platesol().

int vircam_pfits_get_naxis2 ( const cpl_propertylist *  plist,
long *  naxis2 
)

Get the value of naxis2.

Parameters:
plistproperty list to read from
naxis2requested value of naxis2
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 321 of file vircam_pfits.c.

Referenced by vircam_platesol().

int vircam_pfits_get_ndit ( const cpl_propertylist *  plist,
int *  ndit 
)

Get the value of NDIT.

Parameters:
plistproperty list to read from
nditrequested value of ndit
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 583 of file vircam_pfits.c.

int vircam_pfits_get_njsteps ( const cpl_propertylist *  plist,
int *  njsteps 
)

Get the value of the number of observations in a jitter sequence.

Parameters:
plistproperty list to read from
njstepsrequested value of the number of observations in a jitter sequence
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 476 of file vircam_pfits.c.

Referenced by vircam_tilesky().

int vircam_pfits_get_nusteps ( const cpl_propertylist *  plist,
int *  nusteps 
)

Get the value of the number of microsteps in a sequence.

Parameters:
plistproperty list to read from
nustepsrequested value of the number of microsteps
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 422 of file vircam_pfits.c.

Referenced by vircam_jmp_ustep_seq().

int vircam_pfits_get_offsetnum ( const cpl_propertylist *  plist,
int *  offsetnum 
)

Get the value of the first run number in the current tile sequence.

Parameters:
plistproperty list to read from
offsetnumrequested value of the tile sequence number
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 557 of file vircam_pfits.c.

int vircam_pfits_get_projid ( const cpl_propertylist *  plist,
char *  projid 
)

Get the project id.

Parameters:
plistproperty list to read from
projidrequested name of the project
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 670 of file vircam_pfits.c.

int vircam_pfits_get_pv21 ( const cpl_propertylist *  plist,
double *  pv21 
)

Get the value of pv2_1.

Parameters:
plistproperty list to read from
pv21requested value of pv2_1
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 197 of file vircam_pfits.c.

int vircam_pfits_get_pv23 ( const cpl_propertylist *  plist,
double *  pv23 
)

Get the value of pv2_3.

Parameters:
plistproperty list to read from
pv23requested value of pv2_3
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 213 of file vircam_pfits.c.

int vircam_pfits_get_pv25 ( const cpl_propertylist *  plist,
double *  pv25 
)

Get the value of pv2_5.

Parameters:
plistproperty list to read from
pv25requested value of pv2_5
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 229 of file vircam_pfits.c.

int vircam_pfits_get_ra ( const cpl_propertylist *  plist,
double *  ra 
)

Get the value of RA.

Parameters:
plistproperty list to read from
rarequested value of ra
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 741 of file vircam_pfits.c.

Referenced by vircam_check_crval().

int vircam_pfits_get_saturation ( const cpl_propertylist *  plist,
float *  saturation 
)

Get the saturation level for this detector.

Parameters:
plistproperty list to read from
saturationrequested name of the filter
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 692 of file vircam_pfits.c.

int vircam_pfits_get_ustepnum ( const cpl_propertylist *  plist,
int *  ustepnum 
)

Get the value of the first run number in the current microstep sequence.

Parameters:
plistproperty list to read from
ustepnumrequested value of the microstep sequence number
Return values:
VIR_OKif everything went right
VIR_FATALif there was an error

Definition at line 449 of file vircam_pfits.c.

Referenced by vircam_jmp_dither_offsets(), and vircam_jmp_ustep_seq().