/home/amodigli/releases/xsh/1.2.10/pso/xsh.26608/xshp/xsh/xsh_pfits.c File Reference

#include <math.h>
#include <xsh_dump.h>
#include <xsh_utils.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_qc_handling.h>
#include <xsh_data_instrument.h>
#include <xsh_pfits.h>
#include <string.h>
#include <cpl.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

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_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)
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_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.
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
const char * xsh_pfits_get_raw1name (const cpl_propertylist *plist)
 find out the ESO.RAW1.NAME
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
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_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)
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.

Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1