X-shooter Pipeline Reference Manual 3.8.15
Functions
FITS header general KW access

Functions

int xsh_pfits_get_tpl_expno (const cpl_propertylist *plist)
 Find out the template start.
 
double xsh_pfits_get_tpl_start (const cpl_propertylist *plist)
 Find out the template start.
 
double xsh_pfits_get_tpl_end (const cpl_propertylist *plist)
 Find out the template end.
 
double xsh_pfits_get_geolat (const cpl_propertylist *plist)
 Find out the telescope latitude.
 
double xsh_pfits_get_geolon (const cpl_propertylist *plist)
 Find out the telescope longitude.
 
double xsh_pfits_get_utc (const cpl_propertylist *plist)
 Find out the observation time.
 
double xsh_pfits_get_pixscale (const cpl_propertylist *plist)
 find out the number of chopping cycles
 
double xsh_pfits_get_posangle (const cpl_propertylist *plist)
 find out the value of the CUMOFFSETX keyword in a header
 
double xsh_pfits_get_mjdobs (const cpl_propertylist *plist)
 Find out the modified julian observation date.
 
int xsh_pfits_get_naxis (const cpl_propertylist *plist)
 find out the NAXIS value
 
int xsh_pfits_get_naxis1 (const cpl_propertylist *plist)
 find out the NAXIS1 value
 
int xsh_pfits_get_naxis2 (const cpl_propertylist *plist)
 find out the NAXIS2 value
 
int xsh_pfits_get_naxis3 (const cpl_propertylist *plist)
 find out the NAXIS3 value
 
XSH_ARM xsh_pfits_get_arm (const cpl_propertylist *plist)
 
int xsh_pfits_get_binx (const cpl_propertylist *plist)
 find out the BINX value
 
int xsh_pfits_get_biny (const cpl_propertylist *plist)
 find out the BINY value
 
int xsh_pfits_get_chip_nx (const cpl_propertylist *plist)
 find out the CHIP NX value
 
int xsh_pfits_get_chip_ny (const cpl_propertylist *plist)
 find out the CHIP NY value
 
int xsh_pfits_get_out_nx (const cpl_propertylist *plist)
 find out the OUT NX value
 
int xsh_pfits_get_out_ny (const cpl_propertylist *plist)
 find out the OUT NY value
 
int xsh_pfits_get_ovscx (const cpl_propertylist *plist)
 find out the OVSCX value
 
int xsh_pfits_get_ovscy (const cpl_propertylist *plist)
 find out the OVSCY value
 
int xsh_pfits_get_prscx (const cpl_propertylist *plist)
 find out the PRSCX value
 
int xsh_pfits_get_prscy (const cpl_propertylist *plist)
 find out the PRSCY value
 
double xsh_pfits_get_ron (const cpl_propertylist *plist)
 find out the RON value
 
double xsh_pfits_get_lst (const cpl_propertylist *plist)
 find out the LST value
 
double xsh_pfits_get_airm_start (const cpl_propertylist *plist)
 find out the TEL AIRM START value
 
double xsh_pfits_get_airm_mean (const cpl_propertylist *plist)
 find out the mean airmass value
 
double xsh_pfits_get_airm_end (const cpl_propertylist *plist)
 find out the TEL AIRM END value
 
double xsh_pfits_get_seeing_start (const cpl_propertylist *plist)
 find out the TEL AMBI START value (Seeing)
 
double xsh_pfits_get_seeing_end (const cpl_propertylist *plist)
 find out the TEL AMBI END value (Seeing)
 
double xsh_pfits_get_slit_width (const cpl_propertylist *plist, xsh_instrument *instrument)
 find out the INS OPTIx NAME value (the width of the slit)
 
char * xsh_pfits_get_slit_value (const cpl_propertylist *plist, xsh_instrument *instrument)
 find out the INS OPTIx NAME value (the width of the slit)
 
const char * xsh_pfits_get_telescop (const cpl_propertylist *plist)
 find out the TELESCOP value (telescope ID)
 
double xsh_pfits_get_gain (const cpl_propertylist *plist)
 find out the GAIN value
 
double xsh_pfits_get_conad (const cpl_propertylist *plist)
 find out the CONAD value
 
int xsh_pfits_get_datancom (const cpl_propertylist *plist)
 find out the DATANCOM value
 
double xsh_pfits_get_det_gain (const cpl_propertylist *plist)
 find out the ESO DET OUT1 GAIN value
 
double xsh_pfits_get_bias_left_median (cpl_propertylist *plist)
 find out the BIAS LEFT MEDIAN value
 
double xsh_pfits_get_bias_right_median (cpl_propertylist *plist)
 find out the BIAS RIGHT MEDIAN value
 
double xsh_pfits_get_bias_up_median (cpl_propertylist *plist)
 find out the BIAS UP MEDIAN value
 
double xsh_pfits_get_bias_down_median (cpl_propertylist *plist)
 find out the BIAS DOWN MEDIAN value
 
double xsh_pfits_get_bias_left_stdev (cpl_propertylist *plist)
 find out the BIAS LEFT STDEV value
 
double xsh_pfits_get_bias_right_stdev (cpl_propertylist *plist)
 find out the BIAS RIGHT STDEV value
 
double xsh_pfits_get_bias_up_stdev (cpl_propertylist *plist)
 find out the BIAS UP STDEV value
 
double xsh_pfits_get_bias_down_stdev (cpl_propertylist *plist)
 find out the BIAS DOWN STDEV value
 
cpl_error_code xsh_frame_force_pro_catg (const char *fname, const char *tag)
 Force a frame PRO.CATG to a given value.
 
void xsh_pfits_set_extname (cpl_propertylist *plist, const char *value)
 Write the EXTNAME value.
 
void xsh_pfits_set_arm (cpl_propertylist *plist, xsh_instrument *instr)
 
void xsh_pfits_set_pcatg (cpl_propertylist *plist, const char *value)
 Write the PCATG value.
 
void xsh_pfits_set_dpr_type (cpl_propertylist *plist, const char *value)
 Write the DPR TYPE value.
 
void xsh_pfits_set_dpr_catg (cpl_propertylist *plist, const char *value)
 Write the DPR CATG value.
 
void xsh_pfits_set_dpr_tech (cpl_propertylist *plist, const char *value)
 Write the DPR TECH value.
 
void xsh_pfits_set_nsat (cpl_propertylist *plist, int value)
 Write the number of saturated pixels value.
 
void xsh_pfits_set_frac_sat (cpl_propertylist *plist, double value)
 Write the fraction of saturated pixels value.
 
void xsh_pfits_set_total_nsat (cpl_propertylist *plist, int value)
 Write the total number of saturated pixels value.
 
void xsh_pfits_set_total_frac_sat (cpl_propertylist *plist, double value)
 Write the fraction of saturated pixels value.
 
void xsh_pfits_set_n_range_pix (cpl_propertylist *plist, int value)
 Write the number of range pixels value.
 
void xsh_pfits_set_frac_range_pix (cpl_propertylist *plist, double value)
 Write the fraction of range pixels value.
 
void xsh_pfits_set_bias_left_median (cpl_propertylist *plist, double value)
 Write the BIAS LEFT MEDIAN value.
 
void xsh_pfits_set_bias_right_median (cpl_propertylist *plist, double value)
 Write the BIAS RIGHT MEDIAN value.
 
void xsh_pfits_set_bias_up_median (cpl_propertylist *plist, double value)
 Write the BIAS UP MEDIAN value.
 
void xsh_pfits_set_datancom (cpl_propertylist *plist, int value)
 
void xsh_pfits_set_bias_down_median (cpl_propertylist *plist, double value)
 Write the BIAS DOWN MEDIAN value.
 
void xsh_pfits_set_bias_left_stdev (cpl_propertylist *plist, double value)
 Write the BIAS LEFT STDEV value.
 
void xsh_pfits_set_bias_right_stdev (cpl_propertylist *plist, double value)
 Write the BIAS RIGHT STDEV value.
 
void xsh_pfits_set_bias_up_stdev (cpl_propertylist *plist, double value)
 Write the BIAS UP STDEV value.
 
void xsh_pfits_set_bias_down_stdev (cpl_propertylist *plist, double value)
 Write the BIAS DOWN STDEV value.
 
void xsh_pfits_set_dit (cpl_propertylist *plist, double dit)
 Write the DIT value.
 
void xsh_pfits_set_ndit (cpl_propertylist *plist, int ndit)
 Write the NDIT value.
 
double xsh_pfits_get_win1_dit1 (const cpl_propertylist *plist)
 find out the DET WIN1 DIT1 value
 
double xsh_pfits_get_dit (const cpl_propertylist *plist)
 find out the DIT value
 
int xsh_pfits_get_ndit (const cpl_propertylist *plist)
 find out the NDIT value
 
const char * xsh_pfits_get_raw1name (const cpl_propertylist *plist)
 find out the ESO.RAW1.NAME

 
const char * xsh_pfits_get_bunit (const cpl_propertylist *plist)
 find out the BUNIT
 
const char * xsh_pfits_get_cunit1 (const cpl_propertylist *plist)
 find out the CUNIT1
 
const char * xsh_pfits_get_cunit2 (const cpl_propertylist *plist)
 find out the CUNIT2
 
const char * xsh_pfits_get_cunit3 (const cpl_propertylist *plist)
 find out the CUNIT3
 
const char * xsh_pfits_get_raw1catg (const cpl_propertylist *plist)
 find out the ESO.RAW1.CATG
 
const char * xsh_pfits_get_obs_targ_name (const cpl_propertylist *plist)
 find out the ESO.OBS.TARG.NAME

 
const char * xsh_pfits_get_arcfile (const cpl_propertylist *plist)
 find out the arcfile

 
bool xsh_pfits_get_lamp_on_off (const cpl_propertylist *plist)
 find out the Lamp status (ON/OFF)

 
const char * xsh_pfits_get_pcatg (const cpl_propertylist *plist)
 find out the pcatg
 
const char * xsh_pfits_get_dpr_tech (const cpl_propertylist *plist)
 find out the DPR TECH
 
const char * xsh_pfits_get_dpr_type (const cpl_propertylist *plist)
 find out the DPR TECH
 
const char * xsh_pfits_get_dpr_catg (const cpl_propertylist *plist)
 find out the DPR CATG
 
const char * xsh_pfits_get_extname (const cpl_propertylist *plist)
 find out the EXTNAME
 
const char * xsh_pfits_get_date (const cpl_propertylist *plist)
 find out the DATE
 
const char * xsh_pfits_get_date_obs (const cpl_propertylist *plist)
 find out the DATE
 
double xsh_pfits_get_pszx (const cpl_propertylist *plist)
 find out the PSZX (size of 1 pixel in Microns)
 
double xsh_pfits_get_pszy (const cpl_propertylist *plist)
 find out the PSZY (size of 1 pixel in Microns)
 
double xsh_pfits_get_det_pxspace (const cpl_propertylist *plist)
 find out the DET CHIP PXSPACE

 
int xsh_pfits_get_FOCU1ENC (const cpl_propertylist *plist)
 find out the FOCU1 POS (UVB prism auto-focus temperature)
 
double xsh_pfits_get_temp5 (const cpl_propertylist *plist)
 find out the temp5 (VIS prism)
 
double xsh_pfits_get_temp2 (const cpl_propertylist *plist)
 find out the temp2 (UVB prism)
 
double xsh_pfits_get_temp82 (const cpl_propertylist *plist)
 find out the temp82 (NIR prisms)
 
double xsh_pfits_get_crval1 (const cpl_propertylist *plist)
 find out the crval1
 
double xsh_pfits_get_crval2 (const cpl_propertylist *plist)
 find out the crval2
 
double xsh_pfits_get_crval3 (const cpl_propertylist *plist)
 find out the crval3
 
double xsh_pfits_get_crpix1 (const cpl_propertylist *plist)
 find out the CRPIX1 value
 
double xsh_pfits_get_crpix2 (const cpl_propertylist *plist)
 find out the CRPIX2 value
 
double xsh_pfits_get_crpix3 (const cpl_propertylist *plist)
 find out the CRPIX3 value
 
double xsh_pfits_get_cd11 (const cpl_propertylist *plist)
 find out the cd1_1
 
double xsh_pfits_get_cd12 (const cpl_propertylist *plist)
 find out the cd1_2
 
double xsh_pfits_get_cd21 (const cpl_propertylist *plist)
 find out the cd2_1
 
double xsh_pfits_get_cd22 (const cpl_propertylist *plist)
 find out the cd2_2
 
double xsh_pfits_get_cd13 (const cpl_propertylist *plist)
 find out the cd1_3
 
double xsh_pfits_get_cd23 (const cpl_propertylist *plist)
 find out the cd2_3
 
double xsh_pfits_get_cd33 (const cpl_propertylist *plist)
 find out the cd3_3
 
double xsh_pfits_get_cd31 (const cpl_propertylist *plist)
 find out the cd3_1
 
double xsh_pfits_get_cd32 (const cpl_propertylist *plist)
 find out the cd3_2
 
double xsh_pfits_get_cdelt1 (const cpl_propertylist *plist)
 find out the cdelt1
 
double xsh_pfits_get_cdelt2 (const cpl_propertylist *plist)
 find out the cdelt2
 
double xsh_pfits_get_cdelt3 (const cpl_propertylist *plist)
 find out the cdelt3
 
double xsh_pfits_get_exptime (const cpl_propertylist *plist)
 find out the exposure time

 
double xsh_pfits_get_det_win1_uit1 (const cpl_propertylist *plist)
 find out the user defined exposure time
 
void xsh_pfits_set_exptime (cpl_propertylist *plist, double value)
 Write the EXPTIME value.
 
void xsh_pfits_set_cd1 (cpl_propertylist *plist, double value)
 Write the CD1 value.
 
void xsh_pfits_set_cd11 (cpl_propertylist *plist, double value)
 Write the CD1_1 value.
 
void xsh_pfits_set_cd12 (cpl_propertylist *plist, double value)
 Write the CD1_2 value.
 
void xsh_pfits_set_cd21 (cpl_propertylist *plist, double value)
 Write the CD2_1 value.
 
void xsh_pfits_set_cd22 (cpl_propertylist *plist, double value)
 Write the CD2_2 value.
 
void xsh_pfits_set_cd13 (cpl_propertylist *plist, double value)
 Write the CD1_3 value.
 
void xsh_pfits_set_cd23 (cpl_propertylist *plist, double value)
 Write the CD2_3 value.
 
void xsh_pfits_set_cd33 (cpl_propertylist *plist, double value)
 Write the CD3_3 value.
 
void xsh_pfits_set_cd32 (cpl_propertylist *plist, double value)
 Write the CD3_2 value.
 
void xsh_pfits_set_cd31 (cpl_propertylist *plist, double value)
 Write the CD3_2 value.
 
void xsh_pfits_set_crpix1 (cpl_propertylist *plist, double value)
 Write the CRPIX1 value.
 
void xsh_pfits_set_crval1 (cpl_propertylist *plist, double value)
 Write the CRVAL1 value.
 
void xsh_pfits_set_cdelt1 (cpl_propertylist *plist, double value)
 Write the CDELT1 value.
 
void xsh_pfits_set_crpix2 (cpl_propertylist *plist, double value)
 Write the CRPIX2 value.
 
void xsh_pfits_set_crpix3 (cpl_propertylist *plist, double value)
 Write the CRPIX3 value.
 
void xsh_pfits_set_crval2 (cpl_propertylist *plist, double value)
 Write the CRVAL2 value.
 
void xsh_pfits_set_crval3 (cpl_propertylist *plist, double value)
 Write the CRVAL3 value.
 
void xsh_pfits_set_cdelt2 (cpl_propertylist *plist, double value)
 Write the CDELT2 value.
 
void xsh_pfits_set_cdelt3 (cpl_propertylist *plist, double value)
 Write the CDELT3 value.
 
void xsh_pfits_set_bunit (cpl_propertylist *plist, const char *value)
 Write the BUNIT value.
 
void xsh_pfits_set_cunit1 (cpl_propertylist *plist, const char *value)
 Write the CUNIT1 value.
 
void xsh_pfits_set_cunit2 (cpl_propertylist *plist, const char *value)
 Write the CUNIT2 value.
 
void xsh_pfits_set_cunit3 (cpl_propertylist *plist, const char *value)
 Write the CUNIT1 value.
 
void xsh_pfits_set_ctype1 (cpl_propertylist *plist, const char *value)
 Write the CTYPE1 value.
 
void xsh_pfits_set_ctype2 (cpl_propertylist *plist, const char *value)
 Write the CTYPE2 value.
 
void xsh_pfits_set_ctype3 (cpl_propertylist *plist, const char *value)
 Write the CTYPE3 value.
 
void xsh_pfits_set_wavesol_lambda_min (cpl_propertylist *plist, double value)
 WRITE the min lambda.
 
void xsh_pfits_set_wavesol_lambda_max (cpl_propertylist *plist, double value)
 WRITE the max lambda.
 
void xsh_pfits_set_wavesol_order_min (cpl_propertylist *plist, double value)
 WRITE the min order.
 
void xsh_pfits_set_wavesol_order_max (cpl_propertylist *plist, double value)
 WRITE the max order.
 
void xsh_pfits_set_wavesol_slit_min (cpl_propertylist *plist, double value)
 WRITE the min slit.
 
void xsh_pfits_set_wavesol_slit_max (cpl_propertylist *plist, double value)
 WRITE the max slit.
 
void xsh_pfits_set_extract_slit_min (cpl_propertylist *plist, double value)
 WRITE the min slit for extraction.
 
void xsh_pfits_set_extract_slit_max (cpl_propertylist *plist, double value)
 WRITE the min slit for extraction.
 
void xsh_pfits_set_wavesol_x_min (cpl_propertylist *plist, double value)
 WRITE the min x.
 
void xsh_pfits_set_wavesol_x_max (cpl_propertylist *plist, double value)
 WRITE the max x position.
 
void xsh_pfits_set_wavesol_y_min (cpl_propertylist *plist, double value)
 WRITE the min y.
 
void xsh_pfits_set_wavesol_y_max (cpl_propertylist *plist, double value)
 WRITE the max y position.
 
double xsh_pfits_get_wavesol_lambda_min (cpl_propertylist *plist)
 find out the min lambda
 
double xsh_pfits_get_wavesol_lambda_max (cpl_propertylist *plist)
 find out the wavesol max lambda
 
double xsh_pfits_get_wavesol_order_min (cpl_propertylist *plist)
 find out the min order
 
double xsh_pfits_get_wavesol_order_max (cpl_propertylist *plist)
 find out the wavesol max order
 
double xsh_pfits_get_wavesol_slit_min (cpl_propertylist *plist)
 find out the min slit
 
double xsh_pfits_get_wavesol_slit_max (cpl_propertylist *plist)
 find out the wavesol max slit
 
double xsh_pfits_get_extract_slit_min (cpl_propertylist *plist)
 find out the extraction min slit
 
double xsh_pfits_get_extract_slit_max (cpl_propertylist *plist)
 find out the extraction min slit
 
double xsh_pfits_get_wavesol_x_min (cpl_propertylist *plist)
 find out the min x position
 
double xsh_pfits_get_wavesol_x_max (cpl_propertylist *plist)
 find out the wavesol max x position
 
double xsh_pfits_get_wavesol_y_min (cpl_propertylist *plist)
 find out the min y position
 
double xsh_pfits_get_wavesol_y_max (cpl_propertylist *plist)
 find out the wavesol max y position
 
const char * xsh_pfits_get_wavesoltype (const cpl_propertylist *plist)
 Find out the WAVESOL TYPE.
 
void xsh_pfits_set_wavesoltype (cpl_propertylist *plist, const char *value)
 Write the WAVESOL TYPE value.
 
void xsh_pfits_set_rectify_bin_lambda (cpl_propertylist *plist, double value)
 WRITE the lambda binning.
 
void xsh_pfits_set_rectify_bin_space (cpl_propertylist *plist, double value)
 WRITE the space (slit) binning.
 
void xsh_pfits_set_rectify_lambda_min (cpl_propertylist *plist, double value)
 WRITE the lambda min value.
 
void xsh_pfits_set_rectify_lambda_max (cpl_propertylist *plist, double value)
 WRITE the lambda max value.
 
void xsh_pfits_set_rectify_space_min (cpl_propertylist *plist, double value)
 WRITE the space (slit) min value.
 
void xsh_pfits_set_rectify_space_max (cpl_propertylist *plist, double value)
 WRITE the space (slit) max value.
 
double xsh_pfits_get_rectify_bin_lambda (cpl_propertylist *plist)
 find out the rectify lambda binning
 
double xsh_pfits_get_rectify_bin_space (cpl_propertylist *plist)
 find out the rectify space (slit) binning
 
double xsh_pfits_get_rectify_lambda_min (cpl_propertylist *plist)
 find out the rectify lambda min
 
double xsh_pfits_get_rectify_lambda_max (cpl_propertylist *plist)
 find out the rectify lambda max
 
double xsh_pfits_get_rectify_space_min (cpl_propertylist *plist)
 find out the rectify space min
 
double xsh_pfits_get_rectify_space_max (cpl_propertylist *plist)
 find out the rectify SPACE max
 
int xsh_pfits_get_obs_id (cpl_propertylist *plist)
 find out the OBS ID
 
int xsh_pfits_get_nb_pinhole (const cpl_propertylist *plist)
 Get the number of pinhole.
 
double xsh_pfits_get_tel_targ_alpha (const cpl_propertylist *plist)
 Get the TEL TARG ALPHA.
 
double xsh_pfits_get_tel_targ_delta (const cpl_propertylist *plist)
 Get the TEL TARG DELTA.
 
double xsh_pfits_get_ra (const cpl_propertylist *plist)
 Get the Right Ascension.
 
double xsh_pfits_get_dec (const cpl_propertylist *plist)
 Get the Right Ascension.
 
double xsh_pfits_get_posang (const cpl_propertylist *plist)
 
double xsh_pfits_get_ra_reloffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_dec_reloffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_cumoffsetx (const cpl_propertylist *plist)
 
double xsh_pfits_get_cumoffsety (const cpl_propertylist *plist)
 
double xsh_pfits_get_ra_cumoffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_dec_cumoffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_b_ra_reloffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_b_dec_reloffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_b_ra_cumoffset (const cpl_propertylist *plist)
 
double xsh_pfits_get_b_dec_cumoffset (const cpl_propertylist *plist)
 
void xsh_pfits_set_b_ra_reloffset (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_b_dec_reloffset (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_b_ra_cumoffset (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_b_dec_cumoffset (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_slitmap_order_edgup (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_slitmap_order_edglo (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_slitmap_order_slicup (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_slitmap_order_sliclo (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_slitmap_order_cen (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_slitmap_median_edgup (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_slitmap_median_edglo (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_slitmap_median_sliclo (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_slitmap_median_slicup (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_slitmap_median_cen (cpl_propertylist *plist, double value)
 
double xsh_pfits_get_slitmap_median_edgup (const cpl_propertylist *plist)
 
double xsh_pfits_get_slitmap_median_edglo (const cpl_propertylist *plist)
 
double xsh_pfits_get_slitmap_median_cen (const cpl_propertylist *plist)
 
double xsh_pfits_get_slitmap_median_slicup (const cpl_propertylist *plist)
 
double xsh_pfits_get_slitmap_median_sliclo (const cpl_propertylist *plist)
 
void xsh_pfits_set_wavemap_order_lambda_min (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_wavemap_order_lambda_max (cpl_propertylist *plist, int absorder, double value)
 
void xsh_pfits_set_shiftifu_lambdaref (cpl_propertylist *plist, double value)
 
double xsh_pfits_get_shiftifu_lambdaref (cpl_propertylist *plist)
 
void xsh_pfits_set_shiftifu_slitref (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_shiftifu_slitdownref (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_shiftifu_slitcenref (cpl_propertylist *plist, double value)
 
void xsh_pfits_set_shiftifu_slitupref (cpl_propertylist *plist, double value)
 
double xsh_pfits_get_shiftifu_slitref (cpl_propertylist *plist)
 
double xsh_pfits_get_nod_reloffset (const cpl_propertylist *plist)
 Get the Relative Jitter Offset.
 
double xsh_pfits_get_nod_cumoffset (const cpl_propertylist *plist)
 Get the Cumulative Jitter Offset.
 
double xsh_pfits_get_nod_jitterwidth (const cpl_propertylist *plist)
 Get the Jitter Box size.
 
double xsh_pfits_get_nodthrow (const cpl_propertylist *plist)
 Get the Nod Throw value.
 
static cpl_error_code xsh_plist_set_extra_common_keys (cpl_propertylist *plist)
 set hdu keys
 
cpl_error_code xsh_plist_set_extra_keys (cpl_propertylist *plist, const char *hduclas1, const char *hduclas2, const char *hduclas3, const char *scidata, const char *errdata, const char *qualdata, const int type)
 set hdu keys
 
cpl_error_code xsh_pfits_set_wcs1 (cpl_propertylist *header, const double crpix1, const double crval1, const double cdelt1)
 
cpl_error_code xsh_pfits_set_wcs2 (cpl_propertylist *header, const double crpix2, const double crval2, const double cdelt2)
 
cpl_error_code xsh_pfits_set_wcs3 (cpl_propertylist *header, const double crpix3, const double crval3, const double cdelt3)
 
cpl_error_code xsh_pfits_set_cd_matrix (cpl_propertylist *header, const double cdelt1, const double cdelt2)
 
cpl_error_code xsh_pfits_set_wcs (cpl_propertylist *header, const double crpix1, const double crval1, const double cdelt1, const double crpix2, const double crval2, const double cdelt2)
 
static cpl_error_code xsh_key_bin_mult_by_fct (cpl_propertylist **plist, const char *kname, const int fct)
 
static cpl_error_code xsh_key_scan_div_by_fct (cpl_propertylist **plist, const char *kname, const int fct)
 
cpl_error_code xsh_plist_div_by_fct (cpl_propertylist **plist, const int fctx, const int fcty)
 
cpl_error_code xsh_pfits_combine_headers (cpl_propertylist *header, cpl_frameset *set)
 
cpl_error_code xsh_pfits_combine_two_frames_headers (cpl_frame *first, cpl_frame *second)
 
int xsh_pfits_is_obs (cpl_propertylist *plist)
 
int xsh_pfits_is_flat (cpl_propertylist *plist)
 

Detailed Description

Function Documentation

◆ xsh_frame_force_pro_catg()

cpl_error_code xsh_frame_force_pro_catg ( const char *  fname,
const char *  tag 
)

Force a frame PRO.CATG to a given value.

Parameters
fnameframe filename
tagframe tag
Returns
0 if no error is detected,-1 else

Definition at line 906 of file xsh_pfits.c.

References check, xsh_free_image(), xsh_free_imagelist(), xsh_free_propertylist(), xsh_free_table(), xsh_msg_error, XSH_PCATG, and xsh_pfits_get_naxis().

◆ xsh_key_bin_mult_by_fct()

static cpl_error_code xsh_key_bin_mult_by_fct ( cpl_propertylist **  plist,
const char *  kname,
const int  fct 
)
static

Definition at line 4376 of file xsh_pfits.c.

References check, and xsh_get_property_value().

Referenced by xsh_plist_div_by_fct().

◆ xsh_key_scan_div_by_fct()

static cpl_error_code xsh_key_scan_div_by_fct ( cpl_propertylist **  plist,
const char *  kname,
const int  fct 
)
static

Definition at line 4396 of file xsh_pfits.c.

References check, and xsh_get_property_value().

Referenced by xsh_plist_div_by_fct().

◆ xsh_pfits_combine_headers()

cpl_error_code xsh_pfits_combine_headers ( cpl_propertylist *  header,
cpl_frameset *  set 
)

Definition at line 4431 of file xsh_pfits.c.

References size, xsh_free_propertylist(), and xsh_pfits_get_tpl_expno().

Referenced by xsh_dfs_fix_key_start_end().

◆ xsh_pfits_combine_two_frames_headers()

cpl_error_code xsh_pfits_combine_two_frames_headers ( cpl_frame *  first,
cpl_frame *  second 
)

Definition at line 4500 of file xsh_pfits.c.

References first, xsh_free_propertylist(), and xsh_pfits_get_tpl_expno().

◆ xsh_pfits_get_airm_end()

double xsh_pfits_get_airm_end ( const cpl_propertylist *  plist)

find out the TEL AIRM END value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 527 of file xsh_pfits.c.

References XSH_AIRM_END, and xsh_get_property_value().

Referenced by xsh_calibrate_flux(), xsh_pfits_get_airm_mean(), xsh_util_efficiency2d(), and xsh_utils_compute_airm_eff().

◆ xsh_pfits_get_airm_mean()

double xsh_pfits_get_airm_mean ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_airm_start()

double xsh_pfits_get_airm_start ( const cpl_propertylist *  plist)

find out the TEL AIRM START value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 496 of file xsh_pfits.c.

References XSH_AIRM_START, and xsh_get_property_value().

Referenced by xsh_calibrate_flux(), xsh_pfits_get_airm_mean(), xsh_util_efficiency2d(), and xsh_utils_compute_airm_eff().

◆ xsh_pfits_get_arcfile()

const char * xsh_pfits_get_arcfile ( const cpl_propertylist *  plist)

find out the arcfile

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

Definition at line 1589 of file xsh_pfits.c.

References check_msg, XSH_ARCFILE, and xsh_get_property_value().

◆ xsh_pfits_get_arm()

XSH_ARM xsh_pfits_get_arm ( const cpl_propertylist *  plist)

Definition at line 270 of file xsh_pfits.c.

References xsh_arm_get(), XSH_ARM_UNDEFINED, XSH_PFITS_GET, and XSH_SEQ_ARM.

Referenced by main().

◆ xsh_pfits_get_b_dec_cumoffset()

double xsh_pfits_get_b_dec_cumoffset ( const cpl_propertylist *  plist)

Definition at line 3660 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_CUMULATIVE_B_OFFSET_DEC.

Referenced by compute_shift_with_kw().

◆ xsh_pfits_get_b_dec_reloffset()

double xsh_pfits_get_b_dec_reloffset ( const cpl_propertylist *  plist)

Definition at line 3630 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_RELATIVE_B_OFFSET_DEC.

Referenced by compute_shift_with_kw().

◆ xsh_pfits_get_b_ra_cumoffset()

double xsh_pfits_get_b_ra_cumoffset ( const cpl_propertylist *  plist)

Definition at line 3645 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_CUMULATIVE_B_OFFSET_RA.

Referenced by compute_shift_with_kw().

◆ xsh_pfits_get_b_ra_reloffset()

double xsh_pfits_get_b_ra_reloffset ( const cpl_propertylist *  plist)

Definition at line 3615 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_RELATIVE_B_OFFSET_RA.

Referenced by compute_shift_with_kw().

◆ xsh_pfits_get_bias_down_median()

double xsh_pfits_get_bias_down_median ( cpl_propertylist *  plist)

find out the BIAS DOWN MEDIAN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 808 of file xsh_pfits.c.

References check_msg, XSH_BIAS_DOWN_MEDIAN, and xsh_get_property_value().

◆ xsh_pfits_get_bias_down_stdev()

double xsh_pfits_get_bias_down_stdev ( cpl_propertylist *  plist)

find out the BIAS DOWN STDEV value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 886 of file xsh_pfits.c.

References check_msg, XSH_BIAS_DOWN_STDEV, and xsh_get_property_value().

◆ xsh_pfits_get_bias_left_median()

double xsh_pfits_get_bias_left_median ( cpl_propertylist *  plist)

find out the BIAS LEFT MEDIAN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 749 of file xsh_pfits.c.

References check_msg, XSH_BIAS_LEFT_MEDIAN, and xsh_get_property_value().

◆ xsh_pfits_get_bias_left_stdev()

double xsh_pfits_get_bias_left_stdev ( cpl_propertylist *  plist)

find out the BIAS LEFT STDEV value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 828 of file xsh_pfits.c.

References check_msg, XSH_BIAS_LEFT_STDEV, and xsh_get_property_value().

◆ xsh_pfits_get_bias_right_median()

double xsh_pfits_get_bias_right_median ( cpl_propertylist *  plist)

find out the BIAS RIGHT MEDIAN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 769 of file xsh_pfits.c.

References check_msg, XSH_BIAS_RIGHT_MEDIAN, and xsh_get_property_value().

◆ xsh_pfits_get_bias_right_stdev()

double xsh_pfits_get_bias_right_stdev ( cpl_propertylist *  plist)

find out the BIAS RIGHT STDEV value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 847 of file xsh_pfits.c.

References check_msg, XSH_BIAS_RIGHT_STDEV, and xsh_get_property_value().

◆ xsh_pfits_get_bias_up_median()

double xsh_pfits_get_bias_up_median ( cpl_propertylist *  plist)

find out the BIAS UP MEDIAN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 788 of file xsh_pfits.c.

References check_msg, XSH_BIAS_UP_MEDIAN, and xsh_get_property_value().

◆ xsh_pfits_get_bias_up_stdev()

double xsh_pfits_get_bias_up_stdev ( cpl_propertylist *  plist)

find out the BIAS UP STDEV value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 867 of file xsh_pfits.c.

References check_msg, XSH_BIAS_UP_STDEV, and xsh_get_property_value().

◆ xsh_pfits_get_binx()

int xsh_pfits_get_binx ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_biny()

int xsh_pfits_get_biny ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_bunit()

const char * xsh_pfits_get_bunit ( const cpl_propertylist *  plist)

find out the BUNIT

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

Definition at line 1467 of file xsh_pfits.c.

References check_msg, XSH_BUNIT, and xsh_get_property_value().

Referenced by xsh_merge_ord_with_tag().

◆ xsh_pfits_get_cd11()

double xsh_pfits_get_cd11 ( const cpl_propertylist *  plist)

find out the cd1_1

Parameters
plistproperty list to read from
Returns
cd1_1

Definition at line 2017 of file xsh_pfits.c.

References check_msg, XSH_CD11, and xsh_get_property_value().

◆ xsh_pfits_get_cd12()

double xsh_pfits_get_cd12 ( const cpl_propertylist *  plist)

find out the cd1_2

Parameters
plistproperty list to read from
Returns
cd1_2

Definition at line 2038 of file xsh_pfits.c.

References check_msg, XSH_CD12, and xsh_get_property_value().

◆ xsh_pfits_get_cd13()

double xsh_pfits_get_cd13 ( const cpl_propertylist *  plist)

find out the cd1_3

Parameters
plistproperty list to read from
Returns
cd1_3

Definition at line 2096 of file xsh_pfits.c.

References check_msg, XSH_CD13, and xsh_get_property_value().

◆ xsh_pfits_get_cd21()

double xsh_pfits_get_cd21 ( const cpl_propertylist *  plist)

find out the cd2_1

Parameters
plistproperty list to read from
Returns
cd2_1

Definition at line 2057 of file xsh_pfits.c.

References check_msg, XSH_CD21, and xsh_get_property_value().

◆ xsh_pfits_get_cd22()

double xsh_pfits_get_cd22 ( const cpl_propertylist *  plist)

find out the cd2_2

Parameters
plistproperty list to read from
Returns
cd2_2

Definition at line 2077 of file xsh_pfits.c.

References check_msg, XSH_CD22, and xsh_get_property_value().

◆ xsh_pfits_get_cd23()

double xsh_pfits_get_cd23 ( const cpl_propertylist *  plist)

find out the cd2_3

Parameters
plistproperty list to read from
Returns
cd2_3

Definition at line 2116 of file xsh_pfits.c.

References check_msg, XSH_CD23, and xsh_get_property_value().

◆ xsh_pfits_get_cd31()

double xsh_pfits_get_cd31 ( const cpl_propertylist *  plist)

find out the cd3_1

Parameters
plistproperty list to read from
Returns
cd3_1

Definition at line 2155 of file xsh_pfits.c.

References check_msg, XSH_CD31, and xsh_get_property_value().

◆ xsh_pfits_get_cd32()

double xsh_pfits_get_cd32 ( const cpl_propertylist *  plist)

find out the cd3_2

Parameters
plistproperty list to read from
Returns
cd3_2

Definition at line 2175 of file xsh_pfits.c.

References check_msg, XSH_CD32, and xsh_get_property_value().

◆ xsh_pfits_get_cd33()

double xsh_pfits_get_cd33 ( const cpl_propertylist *  plist)

find out the cd3_3

Parameters
plistproperty list to read from
Returns
cd3_3

Definition at line 2136 of file xsh_pfits.c.

References check_msg, XSH_CD33, and xsh_get_property_value().

◆ xsh_pfits_get_cdelt1()

double xsh_pfits_get_cdelt1 ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_cdelt2()

double xsh_pfits_get_cdelt2 ( const cpl_propertylist *  plist)

find out the cdelt2

Parameters
plistproperty list to read from
Returns
cdelt2

Definition at line 2216 of file xsh_pfits.c.

References check_msg, XSH_CDELT2, and xsh_get_property_value().

Referenced by main(), xsh_center_cube(), xsh_cube(), xsh_format(), xsh_rec_list_load_eso(), xsh_set_cd_matrix2d(), xsh_spectrum_load(), xsh_spectrum_load_order(), xsh_spectrum_save(), and xsh_util_ima_rebin().

◆ xsh_pfits_get_cdelt3()

double xsh_pfits_get_cdelt3 ( const cpl_propertylist *  plist)

find out the cdelt3

Parameters
plistproperty list to read from
Returns
cdelt3

Definition at line 2235 of file xsh_pfits.c.

References check_msg, XSH_CDELT3, and xsh_get_property_value().

Referenced by main(), xsh_center_cube(), xsh_cube_qc_trace_window(), xsh_imagelist_cut_dichroic_uvb(), xsh_monitor_spectrum3D_flux_qc(), and xsh_set_cd_matrix3d().

◆ xsh_pfits_get_chip_nx()

int xsh_pfits_get_chip_nx ( const cpl_propertylist *  plist)

find out the CHIP NX value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 323 of file xsh_pfits.c.

References XSH_CHIP_NX, and XSH_PFITS_GET.

◆ xsh_pfits_get_chip_ny()

int xsh_pfits_get_chip_ny ( const cpl_propertylist *  plist)

find out the CHIP NY value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 340 of file xsh_pfits.c.

References XSH_CHIP_NY, and XSH_PFITS_GET.

◆ xsh_pfits_get_conad()

double xsh_pfits_get_conad ( const cpl_propertylist *  plist)

find out the CONAD value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 692 of file xsh_pfits.c.

References XSH_CONAD, and XSH_PFITS_GET.

Referenced by main(), xsh_frame_sci_get_gain_airmass_exptime_naxis1_biny(), xsh_pre_init(), and xsh_util_efficiency2d().

◆ xsh_pfits_get_crpix1()

double xsh_pfits_get_crpix1 ( const cpl_propertylist *  plist)

find out the CRPIX1 value

Parameters
plistProperty list to write to

Definition at line 1965 of file xsh_pfits.c.

References check_msg, XSH_CRPIX1, and xsh_get_property_value().

Referenced by main(), xsh_cube(), xsh_spectrum_save(), and xsh_util_efficiency().

◆ xsh_pfits_get_crpix2()

double xsh_pfits_get_crpix2 ( const cpl_propertylist *  plist)

find out the CRPIX2 value

Parameters
plistProperty list to write to

Definition at line 1982 of file xsh_pfits.c.

References check_msg, XSH_CRPIX2, and xsh_get_property_value().

Referenced by main(), xsh_cube(), and xsh_spectrum_save().

◆ xsh_pfits_get_crpix3()

double xsh_pfits_get_crpix3 ( const cpl_propertylist *  plist)

find out the CRPIX3 value

Parameters
plistProperty list to write to

Definition at line 1999 of file xsh_pfits.c.

References check_msg, XSH_CRPIX3, and xsh_get_property_value().

Referenced by main().

◆ xsh_pfits_get_crval1()

double xsh_pfits_get_crval1 ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_crval2()

double xsh_pfits_get_crval2 ( const cpl_propertylist *  plist)

find out the crval2

Parameters
plistproperty list to read from
Returns
crval2

Definition at line 1926 of file xsh_pfits.c.

References check_msg, XSH_CRVAL2, and xsh_get_property_value().

Referenced by main(), xsh_center_cube(), xsh_cube(), xsh_format(), xsh_rec_list_load_eso(), xsh_spectrum_load(), xsh_spectrum_load_order(), and xsh_spectrum_save().

◆ xsh_pfits_get_crval3()

double xsh_pfits_get_crval3 ( const cpl_propertylist *  plist)

find out the crval3

Parameters
plistproperty list to read from
Returns
crval3

Definition at line 1946 of file xsh_pfits.c.

References check_msg, XSH_CRVAL3, and xsh_get_property_value().

Referenced by main(), xsh_center_cube(), xsh_cube_qc_trace_window(), xsh_imagelist_cut_dichroic_uvb(), and xsh_monitor_spectrum3D_flux_qc().

◆ xsh_pfits_get_cumoffsetx()

double xsh_pfits_get_cumoffsetx ( const cpl_propertylist *  plist)

Definition at line 3558 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_CUMULATIVE_OFFSETX.

◆ xsh_pfits_get_cumoffsety()

double xsh_pfits_get_cumoffsety ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_cunit1()

const char * xsh_pfits_get_cunit1 ( const cpl_propertylist *  plist)

find out the CUNIT1

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

Definition at line 1487 of file xsh_pfits.c.

References check_msg, XSH_CUNIT1, and xsh_get_property_value().

◆ xsh_pfits_get_cunit2()

const char * xsh_pfits_get_cunit2 ( const cpl_propertylist *  plist)

find out the CUNIT2

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

Definition at line 1507 of file xsh_pfits.c.

References check_msg, XSH_CUNIT2, and xsh_get_property_value().

◆ xsh_pfits_get_cunit3()

const char * xsh_pfits_get_cunit3 ( const cpl_propertylist *  plist)

find out the CUNIT3

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

Definition at line 1527 of file xsh_pfits.c.

References check_msg, XSH_CUNIT3, and xsh_get_property_value().

◆ xsh_pfits_get_datancom()

int xsh_pfits_get_datancom ( const cpl_propertylist *  plist)

find out the DATANCOM value

Parameters
plistThe property list to read from
Returns
The requested value

Definition at line 712 of file xsh_pfits.c.

References XSH_DATANCOM, and XSH_PFITS_GET.

◆ xsh_pfits_get_date()

const char * xsh_pfits_get_date ( const cpl_propertylist *  plist)

find out the DATE

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

Definition at line 1726 of file xsh_pfits.c.

References check_msg, XSH_DATE, and xsh_get_property_value().

Referenced by xsh_create_order_table().

◆ xsh_pfits_get_date_obs()

const char * xsh_pfits_get_date_obs ( const cpl_propertylist *  plist)

find out the DATE

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

Definition at line 1746 of file xsh_pfits.c.

References check_msg, XSH_DATE_OBS, and xsh_get_property_value().

Referenced by xsh_order_frameset_by_date(), and xsh_sdp_spectrum_create().

◆ xsh_pfits_get_dec()

double xsh_pfits_get_dec ( const cpl_propertylist *  plist)

Get the Right Ascension.

Parameters
[in]plistproperty list to read from
Returns
right ascension

Definition at line 3500 of file xsh_pfits.c.

References check_msg, XSH_DEC, and xsh_get_property_value().

Referenced by xsh_baryvel(), xsh_cube_set_wcs(), xsh_frame_sci_get_ra_dec_airmass(), xsh_get_std_obs_values(), and xsh_utils_get_airm().

◆ xsh_pfits_get_dec_cumoffset()

double xsh_pfits_get_dec_cumoffset ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_dec_reloffset()

double xsh_pfits_get_dec_reloffset ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_det_gain()

double xsh_pfits_get_det_gain ( const cpl_propertylist *  plist)

find out the ESO DET OUT1 GAIN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 730 of file xsh_pfits.c.

References check_msg, XSH_DET_GAIN, and xsh_get_property_value().

Referenced by xsh_pre_init().

◆ xsh_pfits_get_det_pxspace()

double xsh_pfits_get_det_pxspace ( const cpl_propertylist *  plist)

find out the DET CHIP PXSPACE

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 1803 of file xsh_pfits.c.

References check_msg, XSH_DET_PXSPACE, and xsh_get_property_value().

Referenced by xsh_pre_init().

◆ xsh_pfits_get_det_win1_uit1()

double xsh_pfits_get_det_win1_uit1 ( const cpl_propertylist *  plist)

find out the user defined exposure time

Parameters
plistproperty list to read from
Returns
Exposure time

Definition at line 2274 of file xsh_pfits.c.

References check_msg, XSH_DET_WIN1_UIT1, and xsh_get_property_value().

Referenced by xsh_frameset_check_uniform_exptime().

◆ xsh_pfits_get_dit()

double xsh_pfits_get_dit ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_dpr_catg()

const char * xsh_pfits_get_dpr_catg ( const cpl_propertylist *  plist)

find out the DPR CATG

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

Definition at line 1688 of file xsh_pfits.c.

References check_msg, XSH_DPR_CATG, and xsh_get_property_value().

Referenced by xsh_pfits_is_obs(), and xsh_set_recipe_file_prefix().

◆ xsh_pfits_get_dpr_tech()

const char * xsh_pfits_get_dpr_tech ( const cpl_propertylist *  plist)

find out the DPR TECH

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

Definition at line 1647 of file xsh_pfits.c.

References check_msg, XSH_DPR_TECH, and xsh_get_property_value().

Referenced by xsh_pfits_get_nb_pinhole().

◆ xsh_pfits_get_dpr_type()

const char * xsh_pfits_get_dpr_type ( const cpl_propertylist *  plist)

find out the DPR TECH

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

Definition at line 1667 of file xsh_pfits.c.

References check_msg, XSH_DPR_TYPE, and xsh_get_property_value().

Referenced by xsh_detect_arclines(), xsh_detect_arclines_dan(), xsh_pfits_is_flat(), xsh_pfits_is_obs(), and xsh_set_recipe_file_prefix().

◆ xsh_pfits_get_exptime()

double xsh_pfits_get_exptime ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_extname()

const char * xsh_pfits_get_extname ( const cpl_propertylist *  plist)

find out the EXTNAME

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

Definition at line 1707 of file xsh_pfits.c.

References check_msg, XSH_EXTNAME, and xsh_get_property_value().

Referenced by xsh_pre_load(), xsh_rec_list_load_eso(), and xsh_rec_list_load_eso_1d().

◆ xsh_pfits_get_extract_slit_max()

double xsh_pfits_get_extract_slit_max ( cpl_propertylist *  plist)

find out the extraction min slit

Parameters
plistproperty list to read from
Returns
the request value

Definition at line 3052 of file xsh_pfits.c.

References check_msg, XSH_EXTRACT_SLIT_MAX, and xsh_get_property_value().

Referenced by xsh_extract_clean_with_tag(), and xsh_extract_with_tag().

◆ xsh_pfits_get_extract_slit_min()

double xsh_pfits_get_extract_slit_min ( cpl_propertylist *  plist)

find out the extraction min slit

Parameters
plistproperty list to read from
Returns
the request value

Definition at line 3033 of file xsh_pfits.c.

References check_msg, XSH_EXTRACT_SLIT_MIN, and xsh_get_property_value().

Referenced by xsh_extract_clean_with_tag(), and xsh_extract_with_tag().

◆ xsh_pfits_get_FOCU1ENC()

int xsh_pfits_get_FOCU1ENC ( const cpl_propertylist *  plist)

find out the FOCU1 POS (UVB prism auto-focus temperature)

Parameters
plistproperty list to read from
Returns
temp5

Definition at line 1824 of file xsh_pfits.c.

References check_msg, XSH_FOCU1ENC_VAL, and xsh_get_property_value().

Referenced by xsh_model_temperature_update_frame(), and xsh_model_temperature_update_structure().

◆ xsh_pfits_get_gain()

double xsh_pfits_get_gain ( const cpl_propertylist *  plist)

find out the GAIN value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 675 of file xsh_pfits.c.

References XSH_DET_GAIN, and XSH_PFITS_GET.

Referenced by xsh_compute_response(), xsh_compute_response_ord(), xsh_normalize_spectrum(), xsh_normalize_spectrum_ord(), xsh_obs_std_correct(), and xsh_subtract_sky_single().

◆ xsh_pfits_get_geolat()

double xsh_pfits_get_geolat ( const cpl_propertylist *  plist)

Find out the telescope latitude.

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

Definition at line 114 of file xsh_pfits.c.

References XSH_GEOLAT.

Referenced by xsh_baryvel().

◆ xsh_pfits_get_geolon()

double xsh_pfits_get_geolon ( const cpl_propertylist *  plist)

Find out the telescope longitude.

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

Definition at line 128 of file xsh_pfits.c.

References XSH_GEOLON.

Referenced by xsh_baryvel().

◆ xsh_pfits_get_lamp_on_off()

bool xsh_pfits_get_lamp_on_off ( const cpl_propertylist *  plist)

find out the Lamp status (ON/OFF)

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 1607 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_LAMP_ON_OFF.

Referenced by xsh_linear_group_by_exptime().

◆ xsh_pfits_get_lst()

double xsh_pfits_get_lst ( const cpl_propertylist *  plist)

find out the LST value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 478 of file xsh_pfits.c.

References XSH_LST, and XSH_PFITS_GET.

Referenced by xsh_utils_get_airm().

◆ xsh_pfits_get_mjdobs()

double xsh_pfits_get_mjdobs ( const cpl_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 186 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_MJDOBS.

Referenced by xsh_baryvel(), xsh_extract_nod_pairs(), xsh_extract_obj_and_sky_pairs(), xsh_gain(), and xsh_validate_model_cfg().

◆ xsh_pfits_get_naxis()

int xsh_pfits_get_naxis ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_naxis1()

int xsh_pfits_get_naxis1 ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_naxis2()

int xsh_pfits_get_naxis2 ( const cpl_propertylist *  plist)

find out the NAXIS2 value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 244 of file xsh_pfits.c.

References XSH_NAXIS2, and XSH_PFITS_GET.

Referenced by xsh_absorp(), xsh_extract_local_clean(), xsh_geom_ifu(), xsh_pre_3d_init(), xsh_pre_create(), xsh_pre_init(), xsh_preoverscan_corr(), xsh_rec_list_load_eso(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_spectrum_load(), and xsh_spectrum_load_order().

◆ xsh_pfits_get_naxis3()

int xsh_pfits_get_naxis3 ( const cpl_propertylist *  plist)

find out the NAXIS3 value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 260 of file xsh_pfits.c.

References XSH_NAXIS3, and XSH_PFITS_GET.

Referenced by xsh_pre_3d_init().

◆ xsh_pfits_get_nb_pinhole()

int xsh_pfits_get_nb_pinhole ( const cpl_propertylist *  plist)

Get the number of pinhole.

Parameters
[in]plistproperty list to read from
Returns
Number of pinhole

Definition at line 3409 of file xsh_pfits.c.

References check, XSH_ASSURE_NOT_NULL, XSH_DPR_TECH_MULTI_PINHOLE, XSH_DPR_TECH_SINGLE_PINHOLE, xsh_error_msg, XSH_NB_PINHOLE, and xsh_pfits_get_dpr_tech().

Referenced by xsh_detect_arclines(), and xsh_detect_arclines_dan().

◆ xsh_pfits_get_ndit()

int xsh_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 1426 of file xsh_pfits.c.

References check_msg, XSH_DET_NDIT, and xsh_get_property_value().

Referenced by xsh_util_compute_response().

◆ xsh_pfits_get_nod_cumoffset()

double xsh_pfits_get_nod_cumoffset ( const cpl_propertylist *  plist)

Get the Cumulative Jitter Offset.

Parameters
[in]plistproperty list to read from
Returns
cumoffset

Definition at line 4151 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), xsh_msg_dbg_high, XSH_NOD_CUMULATIVE_OFFSET_DEC, and XSH_NOD_CUMULATIVE_OFFSET_RA.

Referenced by xsh_rec_get_nod_kw().

◆ xsh_pfits_get_nod_jitterwidth()

double xsh_pfits_get_nod_jitterwidth ( const cpl_propertylist *  plist)

Get the Jitter Box size.

Parameters
[in]plistproperty list to read from
Returns
cumoffset

Definition at line 4178 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_JITTER_BOX.

Referenced by xsh_frameset_dump_nod_info(), and xsh_rec_get_nod_kw().

◆ xsh_pfits_get_nod_reloffset()

double xsh_pfits_get_nod_reloffset ( const cpl_propertylist *  plist)

Get the Relative Jitter Offset.

Parameters
[in]plistproperty list to read from
Returns
reloffset

Definition at line 4125 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), xsh_msg_dbg_high, XSH_NOD_RELATIVE_OFFSET_DEC, and XSH_NOD_RELATIVE_OFFSET_RA.

Referenced by xsh_rec_get_nod_kw().

◆ xsh_pfits_get_nodthrow()

double xsh_pfits_get_nodthrow ( const cpl_propertylist *  plist)

Get the Nod Throw value.

Parameters
[in]plistproperty list to read from
Returns
nodthrow

Definition at line 4199 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_NOD_THROW.

Referenced by xsh_extract_clean_with_tag(), xsh_extract_with_tag(), xsh_frameset_dump_nod_info(), xsh_rec_get_nod_extract_slit_min_max(), and xsh_rec_get_nod_kw().

◆ xsh_pfits_get_obs_id()

int xsh_pfits_get_obs_id ( cpl_propertylist *  plist)

find out the OBS ID

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3388 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_OBS_ID.

Referenced by xsh_frame_check_model_cfg_is_proper_for_sci(), and xsh_sdp_spectrum_create().

◆ xsh_pfits_get_obs_targ_name()

const char * xsh_pfits_get_obs_targ_name ( const cpl_propertylist *  plist)

find out the ESO.OBS.TARG.NAME

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

Definition at line 1569 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_OBS_TARG_NAME.

Referenced by xsh_frame_check_model_cfg_is_proper_for_sci().

◆ xsh_pfits_get_out_nx()

int xsh_pfits_get_out_nx ( const cpl_propertylist *  plist)

find out the OUT NX value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 357 of file xsh_pfits.c.

References XSH_OUT_NX, and XSH_PFITS_GET.

◆ xsh_pfits_get_out_ny()

int xsh_pfits_get_out_ny ( const cpl_propertylist *  plist)

find out the OUT NY value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 374 of file xsh_pfits.c.

References XSH_OUT_NY, and XSH_PFITS_GET.

◆ xsh_pfits_get_ovscx()

int xsh_pfits_get_ovscx ( const cpl_propertylist *  plist)

find out the OVSCX value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 391 of file xsh_pfits.c.

References XSH_OVSCX, and XSH_PFITS_GET.

Referenced by xsh_frame_image_div_by_fct(), xsh_frame_image_mult_by_fct(), xsh_pre_init(), xsh_preoverscan_corr(), and xsh_util_ima_rebin().

◆ xsh_pfits_get_ovscy()

int xsh_pfits_get_ovscy ( const cpl_propertylist *  plist)

find out the OVSCY value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 408 of file xsh_pfits.c.

References XSH_OVSCY, and XSH_PFITS_GET.

Referenced by xsh_frame_image_div_by_fct(), xsh_frame_image_mult_by_fct(), xsh_pre_init(), and xsh_util_ima_rebin().

◆ xsh_pfits_get_pcatg()

const char * xsh_pfits_get_pcatg ( const cpl_propertylist *  plist)

find out the pcatg

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

Definition at line 1627 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_PCATG.

Referenced by create_instrument(), main(), xsh_ifu_trace_object_calibrate(), xsh_merge_ord_slitlet(), xsh_merge_ord_with_tag(), xsh_model_reduce(), xsh_pre_save_product(), xsh_spectrum_cut_dichroic_uvb(), and xsh_spectrum_orders_cut_dichroic_uvb().

◆ xsh_pfits_get_pixscale()

double xsh_pfits_get_pixscale ( const cpl_propertylist *  plist)

find out the number of chopping cycles

Parameters
plistFITS header
Returns
pointer to statically allocated character string

Definition at line 158 of file xsh_pfits.c.

◆ xsh_pfits_get_posang()

double xsh_pfits_get_posang ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_posangle()

double xsh_pfits_get_posangle ( const cpl_propertylist *  plist)

find out the value of the CUMOFFSETX keyword in a header

Parameters
plistFITS header
Returns
keyword value

Definition at line 172 of file xsh_pfits.c.

Referenced by xsh_cube_set_wcs().

◆ xsh_pfits_get_prscx()

int xsh_pfits_get_prscx ( const cpl_propertylist *  plist)

find out the PRSCX value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 425 of file xsh_pfits.c.

References XSH_PFITS_GET, and XSH_PRSCX.

Referenced by xsh_frame_image_div_by_fct(), xsh_frame_image_mult_by_fct(), xsh_pre_init(), xsh_preoverscan_corr(), and xsh_util_ima_rebin().

◆ xsh_pfits_get_prscy()

int xsh_pfits_get_prscy ( const cpl_propertylist *  plist)

find out the PRSCY value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 442 of file xsh_pfits.c.

References XSH_PFITS_GET, and XSH_PRSCY.

Referenced by xsh_frame_image_div_by_fct(), xsh_frame_image_mult_by_fct(), xsh_pre_init(), and xsh_util_ima_rebin().

◆ xsh_pfits_get_pszx()

double xsh_pfits_get_pszx ( const cpl_propertylist *  plist)

find out the PSZX (size of 1 pixel in Microns)

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 1765 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_PSZX.

Referenced by xsh_pre_init().

◆ xsh_pfits_get_pszy()

double xsh_pfits_get_pszy ( const cpl_propertylist *  plist)

find out the PSZY (size of 1 pixel in Microns)

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 1784 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_PSZY.

Referenced by xsh_pre_init().

◆ xsh_pfits_get_ra()

double xsh_pfits_get_ra ( const cpl_propertylist *  plist)

Get the Right Ascension.

Parameters
[in]plistproperty list to read from
Returns
right ascension

Definition at line 3479 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RA.

Referenced by xsh_baryvel(), xsh_cube_set_wcs(), xsh_frame_sci_get_ra_dec_airmass(), xsh_get_std_obs_values(), and xsh_utils_get_airm().

◆ xsh_pfits_get_ra_cumoffset()

double xsh_pfits_get_ra_cumoffset ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_ra_reloffset()

double xsh_pfits_get_ra_reloffset ( const cpl_propertylist *  plist)

◆ xsh_pfits_get_raw1catg()

const char * xsh_pfits_get_raw1catg ( const cpl_propertylist *  plist)

find out the ESO.RAW1.CATG

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

Definition at line 1548 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RAW1_CATG.

Referenced by xsh_frame_check_model_cfg_is_afc_corrected().

◆ xsh_pfits_get_raw1name()

const char * xsh_pfits_get_raw1name ( const cpl_propertylist *  plist)

find out the ESO.RAW1.NAME

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

Definition at line 1446 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RAW1_NAME.

◆ xsh_pfits_get_rectify_bin_lambda()

double xsh_pfits_get_rectify_bin_lambda ( cpl_propertylist *  plist)

find out the rectify lambda binning

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3284 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RECTIFY_BIN_LAMBDA.

Referenced by xsh_combine_nod(), xsh_format(), and xsh_merge_ord_with_tag().

◆ xsh_pfits_get_rectify_bin_space()

double xsh_pfits_get_rectify_bin_space ( cpl_propertylist *  plist)

find out the rectify space (slit) binning

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3302 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RECTIFY_BIN_SPACE.

Referenced by shift_with_kw(), test_combine_lists(), xsh_combine_nod(), xsh_correct_scale(), xsh_correct_scale_w(), xsh_extract_clean_with_tag(), xsh_extract_with_tag(), xsh_find_image_scale_factors(), and xsh_merge_ord_with_tag().

◆ xsh_pfits_get_rectify_lambda_max()

double xsh_pfits_get_rectify_lambda_max ( cpl_propertylist *  plist)

find out the rectify lambda max

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3336 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RECTIFY_LAMBDA_MAX.

Referenced by xsh_combine_nod(), xsh_format(), and xsh_merge_ord_with_tag().

◆ xsh_pfits_get_rectify_lambda_min()

double xsh_pfits_get_rectify_lambda_min ( cpl_propertylist *  plist)

find out the rectify lambda min

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3319 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RECTIFY_LAMBDA_MIN.

Referenced by xsh_combine_nod(), xsh_format(), and xsh_merge_ord_with_tag().

◆ xsh_pfits_get_rectify_space_max()

double xsh_pfits_get_rectify_space_max ( cpl_propertylist *  plist)

find out the rectify SPACE max

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3370 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RECTIFY_SPACE_MAX.

Referenced by xsh_localize_ifu(), and xsh_merge_ord_with_tag().

◆ xsh_pfits_get_rectify_space_min()

double xsh_pfits_get_rectify_space_min ( cpl_propertylist *  plist)

find out the rectify space min

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3353 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_RECTIFY_SPACE_MIN.

Referenced by xsh_localize_ifu(), and xsh_merge_ord_with_tag().

◆ xsh_pfits_get_ron()

double xsh_pfits_get_ron ( const cpl_propertylist *  plist)

find out the RON value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 459 of file xsh_pfits.c.

References XSH_PFITS_GET, and XSH_RON.

Referenced by main(), xsh_pre_init(), and xsh_subtract_sky_single().

◆ xsh_pfits_get_seeing_end()

double xsh_pfits_get_seeing_end ( const cpl_propertylist *  plist)

find out the TEL AMBI END value (Seeing)

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 561 of file xsh_pfits.c.

References XSH_PFITS_GET, and XSH_SEEING_END.

Referenced by xsh_calibrate_flux(), and xsh_convert_seeing().

◆ xsh_pfits_get_seeing_start()

double xsh_pfits_get_seeing_start ( const cpl_propertylist *  plist)

find out the TEL AMBI START value (Seeing)

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 544 of file xsh_pfits.c.

References XSH_PFITS_GET, and XSH_SEEING_START.

Referenced by xsh_calibrate_flux(), and xsh_convert_seeing().

◆ xsh_pfits_get_shiftifu_lambdaref()

double xsh_pfits_get_shiftifu_lambdaref ( cpl_propertylist *  plist)

◆ xsh_pfits_get_shiftifu_slitref()

double xsh_pfits_get_shiftifu_slitref ( cpl_propertylist *  plist)

◆ xsh_pfits_get_slit_value()

char * xsh_pfits_get_slit_value ( const cpl_propertylist *  plist,
xsh_instrument instrument 
)

find out the INS OPTIx NAME value (the width of the slit)

Parameters
plistproperty list to read from
instrumentuinstrument arm setting
Returns
the requested value

Definition at line 619 of file xsh_pfits.c.

References instrument, XSH_ARM_AGC, XSH_ARM_NIR, XSH_ARM_UNDEFINED, XSH_ARM_UVB, XSH_ARM_VIS, xsh_instrument_get_arm(), xsh_msg, XSH_PFITS_GET, XSH_SLIT_NIR, XSH_SLIT_UVB, and XSH_SLIT_VIS.

Referenced by xsh_frame_check_is_right_afcatt(), xsh_frame_check_model_cfg_is_proper_for_sci(), and xsh_instrument_nir_is_JH().

◆ xsh_pfits_get_slit_width()

double xsh_pfits_get_slit_width ( const cpl_propertylist *  plist,
xsh_instrument instrument 
)

find out the INS OPTIx NAME value (the width of the slit)

Parameters
plistproperty list to read from
instrumentuinstrument arm setting
Returns
the requested value

Definition at line 580 of file xsh_pfits.c.

References instrument, XSH_ARM_AGC, XSH_ARM_NIR, XSH_ARM_UNDEFINED, XSH_ARM_UVB, XSH_ARM_VIS, xsh_instrument_get_arm(), xsh_msg, XSH_PFITS_GET, XSH_SLIT_NIR, XSH_SLIT_UVB, and XSH_SLIT_VIS.

Referenced by xsh_calibrate_flux(), xsh_compute_absorp(), xsh_localize_ifu_slitlet(), and xsh_localize_obj_auto().

◆ xsh_pfits_get_slitmap_median_cen()

double xsh_pfits_get_slitmap_median_cen ( const cpl_propertylist *  plist)

Definition at line 3930 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_SLITMAP_MEDIAN_CEN.

◆ xsh_pfits_get_slitmap_median_edglo()

double xsh_pfits_get_slitmap_median_edglo ( const cpl_propertylist *  plist)

Definition at line 3914 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_SLITMAP_MEDIAN_EDGLO.

Referenced by xsh_get_slit_edges().

◆ xsh_pfits_get_slitmap_median_edgup()

double xsh_pfits_get_slitmap_median_edgup ( const cpl_propertylist *  plist)

Definition at line 3898 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_SLITMAP_MEDIAN_EDGUP.

Referenced by xsh_get_slit_edges().

◆ xsh_pfits_get_slitmap_median_sliclo()

double xsh_pfits_get_slitmap_median_sliclo ( const cpl_propertylist *  plist)

Definition at line 3962 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_SLITMAP_MEDIAN_SLICLO.

Referenced by xsh_get_slit_edges().

◆ xsh_pfits_get_slitmap_median_slicup()

double xsh_pfits_get_slitmap_median_slicup ( const cpl_propertylist *  plist)

Definition at line 3946 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_SLITMAP_MEDIAN_SLICUP.

Referenced by xsh_get_slit_edges().

◆ xsh_pfits_get_tel_targ_alpha()

double xsh_pfits_get_tel_targ_alpha ( const cpl_propertylist *  plist)

Get the TEL TARG ALPHA.

Parameters
[in]plistproperty list to read from
Returns
right ascension of telescoce FOV centre

Definition at line 3439 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_TEL_TARG_ALPHA.

Referenced by xsh_build_ifu_map(), and xsh_cube_set_wcs().

◆ xsh_pfits_get_tel_targ_delta()

double xsh_pfits_get_tel_targ_delta ( const cpl_propertylist *  plist)

Get the TEL TARG DELTA.

Parameters
[in]plistproperty list to read from
Returns
declination of telescope centre

Definition at line 3459 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_TEL_TARG_DELTA.

Referenced by xsh_build_ifu_map(), and xsh_cube_set_wcs().

◆ xsh_pfits_get_telescop()

const char * xsh_pfits_get_telescop ( const cpl_propertylist *  plist)

find out the TELESCOP value (telescope ID)

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 657 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_TELESCOP.

Referenced by xsh_utils_get_airm().

◆ xsh_pfits_get_temp2()

double xsh_pfits_get_temp2 ( const cpl_propertylist *  plist)

find out the temp2 (UVB prism)

Parameters
plistproperty list to read from
Returns
temp5

Definition at line 1866 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_TEMP2_VAL.

Referenced by xsh_model_temperature_update_frame(), and xsh_model_temperature_update_structure().

◆ xsh_pfits_get_temp5()

double xsh_pfits_get_temp5 ( const cpl_propertylist *  plist)

find out the temp5 (VIS prism)

Parameters
plistproperty list to read from
Returns
temp5

Definition at line 1845 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_TEMP5_VAL.

Referenced by xsh_model_temperature_update_frame(), and xsh_model_temperature_update_structure().

◆ xsh_pfits_get_temp82()

double xsh_pfits_get_temp82 ( const cpl_propertylist *  plist)

find out the temp82 (NIR prisms)

Parameters
plistproperty list to read from
Returns
temp5

Definition at line 1887 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_TEMP82_VAL.

Referenced by xsh_model_temperature_update_frame(), and xsh_model_temperature_update_structure().

◆ xsh_pfits_get_tpl_end()

double xsh_pfits_get_tpl_end ( const cpl_propertylist *  plist)

Find out the template end.

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

Definition at line 100 of file xsh_pfits.c.

References XSH_TPL_END.

◆ xsh_pfits_get_tpl_expno()

int xsh_pfits_get_tpl_expno ( const cpl_propertylist *  plist)

Find out the template start.

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

Definition at line 72 of file xsh_pfits.c.

References XSH_TPL_EXPNO.

Referenced by xsh_pfits_combine_headers(), and xsh_pfits_combine_two_frames_headers().

◆ xsh_pfits_get_tpl_start()

double xsh_pfits_get_tpl_start ( const cpl_propertylist *  plist)

Find out the template start.

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

Definition at line 86 of file xsh_pfits.c.

References XSH_TPL_START.

◆ xsh_pfits_get_utc()

double xsh_pfits_get_utc ( const cpl_propertylist *  plist)

Find out the observation time.

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

Definition at line 142 of file xsh_pfits.c.

References XSH_UTC.

Referenced by xsh_baryvel().

◆ xsh_pfits_get_wavesol_lambda_max()

double xsh_pfits_get_wavesol_lambda_max ( cpl_propertylist *  plist)

find out the wavesol max lambda

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 2938 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_LAMBDA_MAX.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_lambda_min()

double xsh_pfits_get_wavesol_lambda_min ( cpl_propertylist *  plist)

find out the min lambda

Parameters
plistproperty list to read from
Returns
The requested value

Definition at line 2919 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_LAMBDA_MIN.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_order_max()

double xsh_pfits_get_wavesol_order_max ( cpl_propertylist *  plist)

find out the wavesol max order

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 2976 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_ORDER_MAX.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_order_min()

double xsh_pfits_get_wavesol_order_min ( cpl_propertylist *  plist)

find out the min order

Parameters
plistproperty list to read from
Returns
the request value

Definition at line 2957 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_ORDER_MIN.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_slit_max()

double xsh_pfits_get_wavesol_slit_max ( cpl_propertylist *  plist)

find out the wavesol max slit

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 3014 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_SLIT_MAX.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_slit_min()

double xsh_pfits_get_wavesol_slit_min ( cpl_propertylist *  plist)

find out the min slit

Parameters
plistproperty list to read from
Returns
the request value

Definition at line 2995 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_SLIT_MIN.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_x_max()

double xsh_pfits_get_wavesol_x_max ( cpl_propertylist *  plist)

find out the wavesol max x position

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 3090 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_X_MAX.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_x_min()

double xsh_pfits_get_wavesol_x_min ( cpl_propertylist *  plist)

find out the min x position

Parameters
plistproperty list to read from
Returns
the request value

Definition at line 3071 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_X_MIN.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_y_max()

double xsh_pfits_get_wavesol_y_max ( cpl_propertylist *  plist)

find out the wavesol max y position

Parameters
plistproperty list to read from
Returns
double the requested value

Definition at line 3128 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_Y_MAX.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesol_y_min()

double xsh_pfits_get_wavesol_y_min ( cpl_propertylist *  plist)

find out the min y position

Parameters
plistproperty list to read from
Returns
double the request value

Definition at line 3109 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOL_Y_MIN.

Referenced by xsh_wavesol_load().

◆ xsh_pfits_get_wavesoltype()

const char * xsh_pfits_get_wavesoltype ( const cpl_propertylist *  plist)

Find out the WAVESOL TYPE.

Parameters
plistThe property list to read from
Returns
The pointer to statically allocated character string

Definition at line 3151 of file xsh_pfits.c.

References check_msg, xsh_get_property_value(), and XSH_WAVESOLTYPE.

Referenced by xsh_resid_tab_load().

◆ xsh_pfits_get_win1_dit1()

double xsh_pfits_get_win1_dit1 ( const cpl_propertylist *  plist)

find out the DET WIN1 DIT1 value

Parameters
plistproperty list to read from
Returns
the requested value

Definition at line 1385 of file xsh_pfits.c.

References check_msg, XSH_DET_WIN1_DIT1, and xsh_get_property_value().

Referenced by xsh_frame_sci_get_gain_airmass_exptime_naxis1_biny(), and xsh_util_efficiency2d().

◆ xsh_pfits_is_flat()

int xsh_pfits_is_flat ( cpl_propertylist *  plist)

Definition at line 4579 of file xsh_pfits.c.

References xsh_pfits_get_dpr_type().

Referenced by xsh_pre_create().

◆ xsh_pfits_is_obs()

int xsh_pfits_is_obs ( cpl_propertylist *  plist)

Definition at line 4562 of file xsh_pfits.c.

References xsh_pfits_get_dpr_catg(), and xsh_pfits_get_dpr_type().

◆ xsh_pfits_set_arm()

void xsh_pfits_set_arm ( cpl_propertylist *  plist,
xsh_instrument instr 
)

Definition at line 988 of file xsh_pfits.c.

References check, check_msg, xsh_instrument_arm_tostring(), and XSH_SEQ_ARM.

Referenced by xsh_pre_init().

◆ xsh_pfits_set_b_dec_cumoffset()

void xsh_pfits_set_b_dec_cumoffset ( cpl_propertylist *  plist,
double  value 
)

Definition at line 3712 of file xsh_pfits.c.

References check_msg, and XSH_NOD_CUMULATIVE_B_OFFSET_DEC.

Referenced by save_pre_frame().

◆ xsh_pfits_set_b_dec_reloffset()

void xsh_pfits_set_b_dec_reloffset ( cpl_propertylist *  plist,
double  value 
)

Definition at line 3687 of file xsh_pfits.c.

References check_msg, and XSH_NOD_RELATIVE_B_OFFSET_DEC.

Referenced by save_pre_frame().

◆ xsh_pfits_set_b_ra_cumoffset()

void xsh_pfits_set_b_ra_cumoffset ( cpl_propertylist *  plist,
double  value 
)

Definition at line 3700 of file xsh_pfits.c.

References check_msg, and XSH_NOD_CUMULATIVE_B_OFFSET_RA.

Referenced by save_pre_frame().

◆ xsh_pfits_set_b_ra_reloffset()

void xsh_pfits_set_b_ra_reloffset ( cpl_propertylist *  plist,
double  value 
)

Definition at line 3675 of file xsh_pfits.c.

References check_msg, and XSH_NOD_RELATIVE_B_OFFSET_RA.

Referenced by save_pre_frame().

◆ xsh_pfits_set_bias_down_median()

void xsh_pfits_set_bias_down_median ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS DOWN MEDIAN value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1268 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_DOWN_MEDIAN.

◆ xsh_pfits_set_bias_down_stdev()

void xsh_pfits_set_bias_down_stdev ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS DOWN STDEV value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1336 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_DOWN_STDEV.

◆ xsh_pfits_set_bias_left_median()

void xsh_pfits_set_bias_left_median ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS LEFT MEDIAN value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1195 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_LEFT_MEDIAN.

◆ xsh_pfits_set_bias_left_stdev()

void xsh_pfits_set_bias_left_stdev ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS LEFT STDEV value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1285 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_LEFT_STDEV.

◆ xsh_pfits_set_bias_right_median()

void xsh_pfits_set_bias_right_median ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS RIGHT MEDIAN value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1212 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_RIGHT_MEDIAN.

◆ xsh_pfits_set_bias_right_stdev()

void xsh_pfits_set_bias_right_stdev ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS RIGHT STDEV value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1302 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_RIGHT_STDEV.

◆ xsh_pfits_set_bias_up_median()

void xsh_pfits_set_bias_up_median ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS UP MEDIAN value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1229 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_UP_MEDIAN.

◆ xsh_pfits_set_bias_up_stdev()

void xsh_pfits_set_bias_up_stdev ( cpl_propertylist *  plist,
double  value 
)

Write the BIAS UP STDEV value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1319 of file xsh_pfits.c.

References check_msg, and XSH_BIAS_UP_STDEV.

◆ xsh_pfits_set_bunit()

void xsh_pfits_set_bunit ( cpl_propertylist *  plist,
const char *  value 
)

Write the BUNIT value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2606 of file xsh_pfits.c.

References check_msg, and XSH_BUNIT.

Referenced by xsh_merge_ord_with_tag(), xsh_pre_save(), xsh_preoverscan_corr(), xsh_rec_list1D_save_as_tab(), xsh_rec_list_save(), xsh_rec_list_save2(), xsh_spectrum_save(), xsh_util_multiply_by_response(), and xsh_util_multiply_by_response_ord().

◆ xsh_pfits_set_cd1()

void xsh_pfits_set_cd1 ( cpl_propertylist *  plist,
double  value 
)

Write the CD1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2308 of file xsh_pfits.c.

References check_msg, and XSH_CD1.

Referenced by xsh_set_cd_matrix1d().

◆ xsh_pfits_set_cd11()

void xsh_pfits_set_cd11 ( cpl_propertylist *  plist,
double  value 
)

Write the CD1_1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2324 of file xsh_pfits.c.

References check_msg, and XSH_CD11.

Referenced by xsh_pfits_set_cd_matrix(), xsh_set_cd_matrix2d(), and xsh_set_wcs().

◆ xsh_pfits_set_cd12()

void xsh_pfits_set_cd12 ( cpl_propertylist *  plist,
double  value 
)

Write the CD1_2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2339 of file xsh_pfits.c.

References check_msg, and XSH_CD12.

Referenced by xsh_pfits_set_cd_matrix(), xsh_set_cd_matrix2d(), and xsh_set_wcs().

◆ xsh_pfits_set_cd13()

void xsh_pfits_set_cd13 ( cpl_propertylist *  plist,
double  value 
)

Write the CD1_3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2384 of file xsh_pfits.c.

References check_msg, and XSH_CD13.

Referenced by xsh_set_cd_matrix3d().

◆ xsh_pfits_set_cd21()

void xsh_pfits_set_cd21 ( cpl_propertylist *  plist,
double  value 
)

Write the CD2_1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2354 of file xsh_pfits.c.

References check_msg, and XSH_CD21.

Referenced by xsh_pfits_set_cd_matrix(), xsh_set_cd_matrix2d(), and xsh_set_wcs().

◆ xsh_pfits_set_cd22()

void xsh_pfits_set_cd22 ( cpl_propertylist *  plist,
double  value 
)

Write the CD2_2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2369 of file xsh_pfits.c.

References check_msg, and XSH_CD22.

Referenced by xsh_pfits_set_cd_matrix(), xsh_set_cd_matrix2d(), and xsh_set_wcs().

◆ xsh_pfits_set_cd23()

void xsh_pfits_set_cd23 ( cpl_propertylist *  plist,
double  value 
)

Write the CD2_3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2399 of file xsh_pfits.c.

References check_msg, and XSH_CD23.

Referenced by xsh_set_cd_matrix3d().

◆ xsh_pfits_set_cd31()

void xsh_pfits_set_cd31 ( cpl_propertylist *  plist,
double  value 
)

Write the CD3_2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2446 of file xsh_pfits.c.

References check_msg, and XSH_CD31.

Referenced by xsh_set_cd_matrix3d().

◆ xsh_pfits_set_cd32()

void xsh_pfits_set_cd32 ( cpl_propertylist *  plist,
double  value 
)

Write the CD3_2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2430 of file xsh_pfits.c.

References check_msg, and XSH_CD32.

Referenced by xsh_set_cd_matrix3d().

◆ xsh_pfits_set_cd33()

void xsh_pfits_set_cd33 ( cpl_propertylist *  plist,
double  value 
)

Write the CD3_3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2415 of file xsh_pfits.c.

References check_msg, and XSH_CD33.

Referenced by xsh_set_cd_matrix3d().

◆ xsh_pfits_set_cd_matrix()

cpl_error_code xsh_pfits_set_cd_matrix ( cpl_propertylist *  header,
const double  cdelt1,
const double  cdelt2 
)

◆ xsh_pfits_set_cdelt1()

void xsh_pfits_set_cdelt1 ( cpl_propertylist *  plist,
double  value 
)

Write the CDELT1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2496 of file xsh_pfits.c.

References check_msg, and XSH_CDELT1.

Referenced by xsh_util_ifu_build_cube().

◆ xsh_pfits_set_cdelt2()

void xsh_pfits_set_cdelt2 ( cpl_propertylist *  plist,
double  value 
)

Write the CDELT2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2575 of file xsh_pfits.c.

References check_msg, and XSH_CDELT2.

◆ xsh_pfits_set_cdelt3()

void xsh_pfits_set_cdelt3 ( cpl_propertylist *  plist,
double  value 
)

Write the CDELT3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2591 of file xsh_pfits.c.

References check_msg, and XSH_CDELT3.

◆ xsh_pfits_set_crpix1()

void xsh_pfits_set_crpix1 ( cpl_propertylist *  plist,
double  value 
)

Write the CRPIX1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2463 of file xsh_pfits.c.

References check_msg, and XSH_CRPIX1.

◆ xsh_pfits_set_crpix2()

void xsh_pfits_set_crpix2 ( cpl_propertylist *  plist,
double  value 
)

Write the CRPIX2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2513 of file xsh_pfits.c.

References check_msg, and XSH_CRPIX2.

◆ xsh_pfits_set_crpix3()

void xsh_pfits_set_crpix3 ( cpl_propertylist *  plist,
double  value 
)

Write the CRPIX3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2528 of file xsh_pfits.c.

References check_msg, and XSH_CRPIX3.

◆ xsh_pfits_set_crval1()

void xsh_pfits_set_crval1 ( cpl_propertylist *  plist,
double  value 
)

Write the CRVAL1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2480 of file xsh_pfits.c.

References check_msg, and XSH_CRVAL1.

Referenced by xsh_util_ifu_build_cube().

◆ xsh_pfits_set_crval2()

void xsh_pfits_set_crval2 ( cpl_propertylist *  plist,
double  value 
)

Write the CRVAL2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2544 of file xsh_pfits.c.

References check_msg, and XSH_CRVAL2.

Referenced by xsh_format().

◆ xsh_pfits_set_crval3()

void xsh_pfits_set_crval3 ( cpl_propertylist *  plist,
double  value 
)

Write the CRVAL3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2559 of file xsh_pfits.c.

References check_msg, and XSH_CRVAL3.

◆ xsh_pfits_set_ctype1()

void xsh_pfits_set_ctype1 ( cpl_propertylist *  plist,
const char *  value 
)

Write the CTYPE1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2667 of file xsh_pfits.c.

References check_msg, and XSH_CTYPE1.

Referenced by xsh_spectrum_save().

◆ xsh_pfits_set_ctype2()

void xsh_pfits_set_ctype2 ( cpl_propertylist *  plist,
const char *  value 
)

Write the CTYPE2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2682 of file xsh_pfits.c.

References check_msg, and XSH_CTYPE2.

◆ xsh_pfits_set_ctype3()

void xsh_pfits_set_ctype3 ( cpl_propertylist *  plist,
const char *  value 
)

Write the CTYPE3 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2698 of file xsh_pfits.c.

References check_msg, and XSH_CTYPE3.

◆ xsh_pfits_set_cunit1()

void xsh_pfits_set_cunit1 ( cpl_propertylist *  plist,
const char *  value 
)

Write the CUNIT1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2622 of file xsh_pfits.c.

References check_msg, and XSH_CUNIT1.

Referenced by xsh_cube(), and xsh_spectrum_save().

◆ xsh_pfits_set_cunit2()

void xsh_pfits_set_cunit2 ( cpl_propertylist *  plist,
const char *  value 
)

Write the CUNIT2 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2637 of file xsh_pfits.c.

References check_msg, and XSH_CUNIT2.

Referenced by xsh_cube().

◆ xsh_pfits_set_cunit3()

void xsh_pfits_set_cunit3 ( cpl_propertylist *  plist,
const char *  value 
)

Write the CUNIT1 value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2652 of file xsh_pfits.c.

References check_msg, and XSH_CUNIT3.

Referenced by xsh_cube().

◆ xsh_pfits_set_datancom()

void xsh_pfits_set_datancom ( cpl_propertylist *  plist,
int  value 
)

Definition at line 1249 of file xsh_pfits.c.

References check_msg, and XSH_DATANCOM.

Referenced by xsh_create_master_bias2().

◆ xsh_pfits_set_dit()

void xsh_pfits_set_dit ( cpl_propertylist *  plist,
double  dit 
)

Write the DIT value.

Parameters
plistProperty list to write to
ditThe value to write

Definition at line 1352 of file xsh_pfits.c.

References check_msg, and XSH_DET_DIT.

Referenced by create_frame().

◆ xsh_pfits_set_dpr_catg()

void xsh_pfits_set_dpr_catg ( cpl_propertylist *  plist,
const char *  value 
)

Write the DPR CATG value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1042 of file xsh_pfits.c.

References check_msg, and XSH_DPR_CATG.

◆ xsh_pfits_set_dpr_tech()

void xsh_pfits_set_dpr_tech ( cpl_propertylist *  plist,
const char *  value 
)

Write the DPR TECH value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1059 of file xsh_pfits.c.

References check_msg, and XSH_DPR_TECH.

Referenced by xsh_pre_create().

◆ xsh_pfits_set_dpr_type()

void xsh_pfits_set_dpr_type ( cpl_propertylist *  plist,
const char *  value 
)

Write the DPR TYPE value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1025 of file xsh_pfits.c.

References check_msg, and XSH_DPR_TYPE.

◆ xsh_pfits_set_exptime()

void xsh_pfits_set_exptime ( cpl_propertylist *  plist,
double  value 
)

Write the EXPTIME value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2292 of file xsh_pfits.c.

References check_msg, and XSH_EXPTIME.

Referenced by xsh_create_master_dark(), and xsh_create_master_dark2().

◆ xsh_pfits_set_extname()

void xsh_pfits_set_extname ( cpl_propertylist *  plist,
const char *  value 
)

◆ xsh_pfits_set_extract_slit_max()

void xsh_pfits_set_extract_slit_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the min slit for extraction.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2834 of file xsh_pfits.c.

References check_msg, and XSH_EXTRACT_SLIT_MAX.

Referenced by xsh_combine_nod(), and xsh_rec_list_save2().

◆ xsh_pfits_set_extract_slit_min()

void xsh_pfits_set_extract_slit_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the min slit for extraction.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2815 of file xsh_pfits.c.

References check_msg, and XSH_EXTRACT_SLIT_MIN.

Referenced by xsh_combine_nod(), and xsh_rec_list_save2().

◆ xsh_pfits_set_frac_range_pix()

void xsh_pfits_set_frac_range_pix ( cpl_propertylist *  plist,
double  value 
)

Write the fraction of range pixels value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1176 of file xsh_pfits.c.

References check_msg, XSH_QC_FPIXRANGE, and XSH_QC_FPIXRANGE_C.

Referenced by xsh_pre_create().

◆ xsh_pfits_set_frac_sat()

void xsh_pfits_set_frac_sat ( cpl_propertylist *  plist,
double  value 
)

Write the fraction of saturated pixels value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1097 of file xsh_pfits.c.

References check_msg, XSH_QC_FPIXSAT, and XSH_QC_FPIXSAT_C.

Referenced by xsh_pre_create().

◆ xsh_pfits_set_n_range_pix()

void xsh_pfits_set_n_range_pix ( cpl_propertylist *  plist,
int  value 
)

Write the number of range pixels value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1156 of file xsh_pfits.c.

References check_msg, XSH_QC_NPIXRANGE, and XSH_QC_NPIXRANGE_C.

Referenced by xsh_pre_create().

◆ xsh_pfits_set_ndit()

void xsh_pfits_set_ndit ( cpl_propertylist *  plist,
int  ndit 
)

Write the NDIT value.

Parameters
plistProperty list to write to
ditThe value to write

Definition at line 1369 of file xsh_pfits.c.

References check_msg, and XSH_DET_NDIT.

Referenced by create_frame().

◆ xsh_pfits_set_nsat()

void xsh_pfits_set_nsat ( cpl_propertylist *  plist,
int  value 
)

Write the number of saturated pixels value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1076 of file xsh_pfits.c.

References check_msg, XSH_QC_NPIXSAT, and XSH_QC_NPIXSAT_C.

Referenced by xsh_pre_create().

◆ xsh_pfits_set_pcatg()

void xsh_pfits_set_pcatg ( cpl_propertylist *  plist,
const char *  value 
)

Write the PCATG value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1008 of file xsh_pfits.c.

References check_msg, and XSH_PCATG.

Referenced by xsh_add_product_image(), xsh_add_product_imagelist(), xsh_add_product_orders_spectrum(), xsh_badpixelmap_crea_master_from_bpmap(), xsh_build_ifu_cube(), xsh_cfg_recover_extend_xy_pos_frm(), xsh_cfg_recover_gen_xyg_frame(), xsh_check_load_master_bpmap(), xsh_combine_nod(), xsh_compute_qc_on_master_bias(), xsh_create_master_flat(), xsh_create_master_flat_with_mask(), xsh_cube(), xsh_detect_arclines(), xsh_detect_arclines_dan(), xsh_dispersol_list_save(), xsh_dispersol_list_to_slitmap(), xsh_dispersol_list_to_wavemap(), xsh_extract_clean_with_tag(), xsh_extract_with_tag(), xsh_flat_merge_qth_d2(), xsh_flat_merge_qth_d2_smooth(), xsh_flexcor(), xsh_format(), xsh_get_master_dark_nir_via_noise(), xsh_ifu_trace_object_calibrate(), xsh_linetilt_list_save(), xsh_model_maps_create(), xsh_model_order_edges_tab_create(), xsh_model_pipe_anneal(), xsh_model_spectralformat_create(), xsh_normalize_spectrum_image_slice(), xsh_opt_extract_orders(), xsh_order_list_save(), xsh_phys_spectrum_save(), xsh_pre_save(), xsh_rec_list_update_header(), xsh_resid_order_save(), xsh_resid_tab_save(), xsh_shift_tab_save(), xsh_spectrum_interpolate(), xsh_spectrum_interpolate_linear(), xsh_spectrum_save(), xsh_spectrum_save_order(), xsh_subtract_background(), xsh_subtract_bias(), xsh_util_bpmap_coadd(), xsh_util_multiply_by_response(), xsh_util_multiply_by_response_ord(), xsh_util_physmod_model_THE_create(), and xsh_wavesol_save().

◆ xsh_pfits_set_rectify_bin_lambda()

void xsh_pfits_set_rectify_bin_lambda ( cpl_propertylist *  plist,
double  value 
)

WRITE the lambda binning.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 3188 of file xsh_pfits.c.

References check_msg, and XSH_RECTIFY_BIN_LAMBDA.

Referenced by xsh_combine_nod(), xsh_opt_extract_orders(), and xsh_rec_list_update_header().

◆ xsh_pfits_set_rectify_bin_space()

void xsh_pfits_set_rectify_bin_space ( cpl_propertylist *  plist,
double  value 
)

WRITE the space (slit) binning.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 3204 of file xsh_pfits.c.

References check_msg, and XSH_RECTIFY_BIN_SPACE.

Referenced by xsh_combine_nod(), xsh_opt_extract_orders(), and xsh_rec_list_update_header().

◆ xsh_pfits_set_rectify_lambda_max()

void xsh_pfits_set_rectify_lambda_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the lambda max value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 3236 of file xsh_pfits.c.

References check_msg, and XSH_RECTIFY_LAMBDA_MAX.

Referenced by xsh_combine_nod(), xsh_opt_extract_orders(), and xsh_rec_list_update_header().

◆ xsh_pfits_set_rectify_lambda_min()

void xsh_pfits_set_rectify_lambda_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the lambda min value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 3220 of file xsh_pfits.c.

References check_msg, and XSH_RECTIFY_LAMBDA_MIN.

Referenced by xsh_combine_nod(), xsh_opt_extract_orders(), and xsh_rec_list_update_header().

◆ xsh_pfits_set_rectify_space_max()

void xsh_pfits_set_rectify_space_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the space (slit) max value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 3268 of file xsh_pfits.c.

References check_msg, and XSH_RECTIFY_SPACE_MAX.

Referenced by xsh_combine_nod(), xsh_opt_extract_orders(), xsh_rec_list_update_header(), and xsh_shift().

◆ xsh_pfits_set_rectify_space_min()

void xsh_pfits_set_rectify_space_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the space (slit) min value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 3252 of file xsh_pfits.c.

References check_msg, and XSH_RECTIFY_SPACE_MIN.

Referenced by xsh_combine_nod(), xsh_opt_extract_orders(), xsh_rec_list_update_header(), and xsh_shift().

◆ xsh_pfits_set_shiftifu_lambdaref()

void xsh_pfits_set_shiftifu_lambdaref ( cpl_propertylist *  plist,
double  value 
)

◆ xsh_pfits_set_shiftifu_slitcenref()

void xsh_pfits_set_shiftifu_slitcenref ( cpl_propertylist *  plist,
double  value 
)

Definition at line 4074 of file xsh_pfits.c.

References check_msg, and XSH_SHIFTIFU_SLITCENREF.

Referenced by xsh_cube().

◆ xsh_pfits_set_shiftifu_slitdownref()

void xsh_pfits_set_shiftifu_slitdownref ( cpl_propertylist *  plist,
double  value 
)

Definition at line 4059 of file xsh_pfits.c.

References check_msg, and XSH_SHIFTIFU_SLITDOWNREF.

Referenced by xsh_cube().

◆ xsh_pfits_set_shiftifu_slitref()

void xsh_pfits_set_shiftifu_slitref ( cpl_propertylist *  plist,
double  value 
)

◆ xsh_pfits_set_shiftifu_slitupref()

void xsh_pfits_set_shiftifu_slitupref ( cpl_propertylist *  plist,
double  value 
)

Definition at line 4089 of file xsh_pfits.c.

References check_msg, and XSH_SHIFTIFU_SLITUPREF.

Referenced by xsh_cube().

◆ xsh_pfits_set_slitmap_median_cen()

void xsh_pfits_set_slitmap_median_cen ( cpl_propertylist *  plist,
double  value 
)

Definition at line 3881 of file xsh_pfits.c.

References check_msg, and XSH_SLITMAP_MEDIAN_CEN.

Referenced by xsh_dispersol_list_to_slitmap(), and xsh_model_compute_slitmap_kw().

◆ xsh_pfits_set_slitmap_median_edglo()

void xsh_pfits_set_slitmap_median_edglo ( cpl_propertylist *  plist,
double  value 
)

◆ xsh_pfits_set_slitmap_median_edgup()

void xsh_pfits_set_slitmap_median_edgup ( cpl_propertylist *  plist,
double  value 
)

◆ xsh_pfits_set_slitmap_median_sliclo()

void xsh_pfits_set_slitmap_median_sliclo ( cpl_propertylist *  plist,
double  value 
)

◆ xsh_pfits_set_slitmap_median_slicup()

void xsh_pfits_set_slitmap_median_slicup ( cpl_propertylist *  plist,
double  value 
)

◆ xsh_pfits_set_slitmap_order_cen()

void xsh_pfits_set_slitmap_order_cen ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

Definition at line 3794 of file xsh_pfits.c.

References check_msg, and XSH_SLITMAP_ORDER_CEN.

Referenced by xsh_dispersol_list_to_slitmap(), and xsh_model_compute_slitmap_kw().

◆ xsh_pfits_set_slitmap_order_edglo()

void xsh_pfits_set_slitmap_order_edglo ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

Definition at line 3742 of file xsh_pfits.c.

References check_msg, and XSH_SLITMAP_ORDER_EDGLO.

Referenced by xsh_dispersol_list_to_slitmap(), and xsh_model_compute_slitmap_kw().

◆ xsh_pfits_set_slitmap_order_edgup()

void xsh_pfits_set_slitmap_order_edgup ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

Definition at line 3724 of file xsh_pfits.c.

References check_msg, and XSH_SLITMAP_ORDER_EDGUP.

Referenced by xsh_dispersol_list_to_slitmap(), and xsh_model_compute_slitmap_kw().

◆ xsh_pfits_set_slitmap_order_sliclo()

void xsh_pfits_set_slitmap_order_sliclo ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

◆ xsh_pfits_set_slitmap_order_slicup()

void xsh_pfits_set_slitmap_order_slicup ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

◆ xsh_pfits_set_total_frac_sat()

void xsh_pfits_set_total_frac_sat ( cpl_propertylist *  plist,
double  value 
)

Write the fraction of saturated pixels value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1138 of file xsh_pfits.c.

References check_msg, XSH_QC_FPIXSAT_TOT, and XSH_QC_FPIXSAT_TOT_C.

Referenced by xsh_count_satpix().

◆ xsh_pfits_set_total_nsat()

void xsh_pfits_set_total_nsat ( cpl_propertylist *  plist,
int  value 
)

Write the total number of saturated pixels value.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 1117 of file xsh_pfits.c.

References check_msg, XSH_QC_NPIXSAT_TOT, and XSH_QC_NPIXSAT_TOT_C.

Referenced by xsh_count_satpix().

◆ xsh_pfits_set_wavemap_order_lambda_max()

void xsh_pfits_set_wavemap_order_lambda_max ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

Definition at line 3997 of file xsh_pfits.c.

References check_msg, and XSH_WAVEMAP_ORDER_LAMBDA_MAX.

Referenced by xsh_dispersol_list_to_wavemap().

◆ xsh_pfits_set_wavemap_order_lambda_min()

void xsh_pfits_set_wavemap_order_lambda_min ( cpl_propertylist *  plist,
int  absorder,
double  value 
)

Definition at line 3979 of file xsh_pfits.c.

References check_msg, and XSH_WAVEMAP_ORDER_LAMBDA_MIN.

Referenced by xsh_dispersol_list_to_wavemap().

◆ xsh_pfits_set_wavesol_lambda_max()

void xsh_pfits_set_wavesol_lambda_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the max lambda.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2730 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_LAMBDA_MAX.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_lambda_min()

void xsh_pfits_set_wavesol_lambda_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the min lambda.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2713 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_LAMBDA_MIN.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_order_max()

void xsh_pfits_set_wavesol_order_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the max order.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2764 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_ORDER_MAX.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_order_min()

void xsh_pfits_set_wavesol_order_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the min order.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2747 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_ORDER_MIN.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_slit_max()

void xsh_pfits_set_wavesol_slit_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the max slit.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2798 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_SLIT_MAX.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_slit_min()

void xsh_pfits_set_wavesol_slit_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the min slit.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2781 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_SLIT_MIN.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_x_max()

void xsh_pfits_set_wavesol_x_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the max x position.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2867 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_X_MAX.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_x_min()

void xsh_pfits_set_wavesol_x_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the min x.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2850 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_X_MIN.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_y_max()

void xsh_pfits_set_wavesol_y_max ( cpl_propertylist *  plist,
double  value 
)

WRITE the max y position.

Parameters
plistProperty list to write to
valueThe requested value

Definition at line 2902 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_Y_MAX.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesol_y_min()

void xsh_pfits_set_wavesol_y_min ( cpl_propertylist *  plist,
double  value 
)

WRITE the min y.

Parameters
plistProperty list to write to
valueThe value to write

Definition at line 2885 of file xsh_pfits.c.

References check_msg, and XSH_WAVESOL_Y_MIN.

Referenced by xsh_wavesol_save().

◆ xsh_pfits_set_wavesoltype()

void xsh_pfits_set_wavesoltype ( cpl_propertylist *  plist,
const char *  value 
)

Write the WAVESOL TYPE value.

Parameters
plistThe property list to write to
valueThe value to write

Definition at line 3172 of file xsh_pfits.c.

References check_msg, XSH_REGDEBUG, and XSH_WAVESOLTYPE.

Referenced by xsh_cfg_recover_extend_xy_pos_frm(), and xsh_resid_tab_save().

◆ xsh_pfits_set_wcs()

cpl_error_code xsh_pfits_set_wcs ( cpl_propertylist *  header,
const double  crpix1,
const double  crval1,
const double  cdelt1,
const double  crpix2,
const double  crval2,
const double  cdelt2 
)

◆ xsh_pfits_set_wcs1()

cpl_error_code xsh_pfits_set_wcs1 ( cpl_propertylist *  header,
const double  crpix1,
const double  crval1,
const double  cdelt1 
)

◆ xsh_pfits_set_wcs2()

cpl_error_code xsh_pfits_set_wcs2 ( cpl_propertylist *  header,
const double  crpix2,
const double  crval2,
const double  cdelt2 
)

◆ xsh_pfits_set_wcs3()

cpl_error_code xsh_pfits_set_wcs3 ( cpl_propertylist *  header,
const double  crpix3,
const double  crval3,
const double  cdelt3 
)

Definition at line 4336 of file xsh_pfits.c.

References XSH_CDELT3, XSH_CRPIX3, XSH_CRVAL3, and XSH_CTYPE3.

Referenced by xsh_cube(), and xsh_format().

◆ xsh_plist_div_by_fct()

cpl_error_code xsh_plist_div_by_fct ( cpl_propertylist **  plist,
const int  fctx,
const int  fcty 
)

◆ xsh_plist_set_extra_common_keys()

static cpl_error_code xsh_plist_set_extra_common_keys ( cpl_propertylist *  plist)
static

set hdu keys

Parameters
plistinput propertylist
hduclas1hdu classification1 value
hduclas2hdu classification2 value
hduclas3hdu classification3 value
Returns
updated propertylist

Definition at line 4222 of file xsh_pfits.c.

Referenced by xsh_plist_set_extra_keys().

◆ xsh_plist_set_extra_keys()

cpl_error_code xsh_plist_set_extra_keys ( cpl_propertylist *  plist,
const char *  hduclas1,
const char *  hduclas2,
const char *  hduclas3,
const char *  scidata,
const char *  errdata,
const char *  qualdata,
const int  type 
)

set hdu keys

Parameters
plistinput propertylist
hduclas1hdu classification1 value
hduclas2hdu classification2 value
hduclas3hdu classification3 value
scidataname of data extension
errdataname of errs extension
qualdataname of qual extension
typetype of extension: 0 data, 1 errs, 2 qual
Returns
updated propertylist

Definition at line 4250 of file xsh_pfits.c.

References XSH_ASSURE_NOT_ILLEGAL_MSG, and xsh_plist_set_extra_common_keys().

Referenced by xsh_add_product_image(), xsh_add_product_orders_spectrum(), xsh_add_product_pre(), xsh_build_ifu_cube(), xsh_rec_list1D_save_as_tab(), xsh_rec_list_save2(), xsh_spectrum_save(), xsh_util_multiply_by_response(), and xsh_util_multiply_by_response_ord().