MUSE Pipeline Reference Manual  2.1.1
Functions
Protected access to FITS headers

Functions

const char * muse_pfits_get_arcfile (const cpl_propertylist *aHeaders)
 find out the arcfile More...
 
const char * muse_pfits_get_origfile (const cpl_propertylist *aHeaders)
 find out the origfile More...
 
const char * muse_pfits_get_pipefile (const cpl_propertylist *aHeaders)
 find out the pipefile More...
 
const char * muse_pfits_get_dpr_type (const cpl_propertylist *aHeaders)
 find out the DPR type More...
 
const char * muse_pfits_get_dpr_catg (const cpl_propertylist *aHeaders)
 find out the DPR category More...
 
const char * muse_pfits_get_pro_type (const cpl_propertylist *aHeaders)
 find out the PRO type More...
 
const char * muse_pfits_get_pro_catg (const cpl_propertylist *aHeaders)
 find out the PRO category More...
 
cpl_boolean muse_pfits_has_ifu (const cpl_propertylist *aHeaders, unsigned char aIFU)
 Find out the whether this header related to a certain IFU. More...
 
const char * muse_pfits_get_extname (const cpl_propertylist *aHeaders)
 find out the extension name More...
 
const char * muse_pfits_get_bunit (const cpl_propertylist *aHeaders)
 find out the unit string More...
 
cpl_size muse_pfits_get_naxis (const cpl_propertylist *aHeaders, unsigned int aAxis)
 find out the size of a given axis More...
 
double muse_pfits_get_ra (const cpl_propertylist *aHeaders)
 find out the right ascension More...
 
double muse_pfits_get_dec (const cpl_propertylist *aHeaders)
 find out the declination More...
 
double muse_pfits_get_equinox (const cpl_propertylist *aHeaders)
 find out the equinox More...
 
double muse_pfits_get_lst (const cpl_propertylist *aHeaders)
 find out the local siderial time More...
 
double muse_pfits_get_mjdobs (const cpl_propertylist *aHeaders)
 find out the Julian Date of the observation More...
 
const char * muse_pfits_get_dateobs (const cpl_propertylist *aHeaders)
 find out the date of observations More...
 
double muse_pfits_get_exptime (const cpl_propertylist *aHeaders)
 find out the exposure time More...
 
double muse_pfits_get_crpix (const cpl_propertylist *aHeaders, unsigned int aAxis)
 find out the WCS reference point More...
 
double muse_pfits_get_crval (const cpl_propertylist *aHeaders, unsigned int aAxis)
 find out the WCS coordinate at the reference point More...
 
double muse_pfits_get_cd (const cpl_propertylist *aHeaders, unsigned int aAxisI, unsigned int aAxisJ)
 find out the WCS coordinate at the reference point More...
 
const char * muse_pfits_get_ctype (const cpl_propertylist *aHeaders, unsigned int aAxis)
 find out the WCS axis type string More...
 
const char * muse_pfits_get_cunit (const cpl_propertylist *aHeaders, unsigned int aAxis)
 find out the WCS axis unit string More...
 
int muse_pfits_get_read_id (const cpl_propertylist *aHeaders)
 find out the readout mode id More...
 
const char * muse_pfits_get_read_name (const cpl_propertylist *aHeaders)
 find out the readout mode name More...
 
int muse_pfits_get_binx (const cpl_propertylist *aHeaders)
 find out the binning factor in x direction More...
 
int muse_pfits_get_biny (const cpl_propertylist *aHeaders)
 find out the binning factor in y direction More...
 
const char * muse_pfits_get_chip_name (const cpl_propertylist *aHeaders)
 find out the chip name More...
 
const char * muse_pfits_get_chip_id (const cpl_propertylist *aHeaders)
 find out the chip id More...
 
const char * muse_pfits_get_chip_date (const cpl_propertylist *aHeaders)
 find out the chip installation date More...
 
cpl_boolean muse_pfits_get_chip_live (const cpl_propertylist *aHeaders)
 find out if the CCD was active (live) More...
 
double muse_pfits_get_ron (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find the detector read-out noise More...
 
double muse_pfits_get_gain (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find the detector gain (in units of count/adu) More...
 
int muse_pfits_get_out_output_x (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the horizontal location of the output port of one quadrant More...
 
int muse_pfits_get_out_output_y (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the vertical location of the output port of one quadrant More...
 
int muse_pfits_get_out_nx (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the horizontal size of the data section of one quadrant More...
 
int muse_pfits_get_out_ny (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the vertical size of the data section of one quadrant More...
 
int muse_pfits_get_out_prescan_x (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the horizontal size of the prescan region of one quadrant More...
 
int muse_pfits_get_out_prescan_y (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the vertical size of the prescan region of one quadrant More...
 
int muse_pfits_get_out_overscan_x (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the horizontal size of the overscan region of one quadrant More...
 
int muse_pfits_get_out_overscan_y (const cpl_propertylist *aHeaders, unsigned char aQuadrant)
 find out the vertical size of the overscan region of one quadrant More...
 
double muse_pfits_get_geolat (const cpl_propertylist *aHeaders)
 find out the telescope's latitude More...
 
double muse_pfits_get_geolon (const cpl_propertylist *aHeaders)
 find out the telescope's longitude More...
 
double muse_pfits_get_geoelev (const cpl_propertylist *aHeaders)
 find out the telescope's elevation More...
 
double muse_pfits_get_focu_scale (const cpl_propertylist *aHeaders)
 find out the scale in the VLT focal plane More...
 
double muse_pfits_get_airmass_start (const cpl_propertylist *aHeaders)
 find out the airmass at start of exposure More...
 
double muse_pfits_get_airmass_end (const cpl_propertylist *aHeaders)
 find out the airmass at end of exposure More...
 
double muse_pfits_get_temp (const cpl_propertylist *aHeaders)
 find out the ambient temperature (in degrees Celsius) More...
 
double muse_pfits_get_rhum (const cpl_propertylist *aHeaders)
 find out the relavtive humidity (in %) More...
 
double muse_pfits_get_pres_start (const cpl_propertylist *aHeaders)
 find out the ambient pressure at start of exposure (in mbar) More...
 
double muse_pfits_get_pres_end (const cpl_propertylist *aHeaders)
 find out the ambient pressure at end of exposure (in mbar) More...
 
double muse_pfits_get_fwhm_start (const cpl_propertylist *aHeaders)
 find out the ambient seeing at start of exposure (in arcsec) More...
 
double muse_pfits_get_fwhm_end (const cpl_propertylist *aHeaders)
 find out the ambient seeing at end of exposure (in arcsec) More...
 
double muse_pfits_get_altang (const cpl_propertylist *aHeaders)
 find out the altitude angle at start of the exposure (in degrees) More...
 
double muse_pfits_get_parang_start (const cpl_propertylist *aHeaders)
 find out the parallactic angle at start of exposure (in degrees) More...
 
double muse_pfits_get_parang_end (const cpl_propertylist *aHeaders)
 find out the parallactic angle at end of exposure (in degrees) More...
 
double muse_pfits_get_agx_avg (const cpl_propertylist *aHeaders)
 find out the x-FWHM average value from the auto-guider (in arcsec) More...
 
double muse_pfits_get_agx_rms (const cpl_propertylist *aHeaders)
 find out the x-FWHM root mean square from the auto-guider (in arcsec) More...
 
double muse_pfits_get_agy_avg (const cpl_propertylist *aHeaders)
 find out the y-FWHM average value from the auto-guider (in arcsec) More...
 
double muse_pfits_get_agy_rms (const cpl_propertylist *aHeaders)
 find out the y-FWHM root mean square from the auto-guider (in arcsec) More...
 
double muse_pfits_get_ia_fwhm (const cpl_propertylist *aHeaders)
 find out the image analysis FWHM corrected by airmass (in arcsec) More...
 
double muse_pfits_get_ia_fwhmlin (const cpl_propertylist *aHeaders)
 find out the image analysis FWHM from a linear fit (in arcsec) More...
 
const char * muse_pfits_get_drot_mode (const cpl_propertylist *aHeaders)
 find out the MUSE derotator mode More...
 
double muse_pfits_get_drot_posang (const cpl_propertylist *aHeaders)
 find out the MUSE derotator position angle (in degrees) More...
 
double muse_pfits_get_drot_start (const cpl_propertylist *aHeaders)
 find out the MUSE derotator rotation at exposure start (in degrees) More...
 
double muse_pfits_get_drot_end (const cpl_propertylist *aHeaders)
 find out the MUSE derotator rotation at exposure end (in degrees) More...
 
muse_ins_mode muse_pfits_get_mode (const cpl_propertylist *aHeaders)
 find out the observation mode More...
 
const char * muse_pfits_get_insmode (const cpl_propertylist *aHeaders)
 find out the observation mode More...
 
double muse_pfits_get_pam_intensity (const cpl_propertylist *aHeaders, int aDiode)
 query the intensity measured by one photo diode (pico amplifier) More...
 
double muse_pfits_get_pam_stdev (const cpl_propertylist *aHeaders, int aDiode)
 query the intensity std. dev. of one photo diode (pico amplifier) More...
 
const char * muse_pfits_get_pam2_filter (const cpl_propertylist *aHeaders)
 query the filter set up in front of photo diode (pico amplifier) 2 More...
 
int muse_pfits_get_lampnum (const cpl_propertylist *aHeaders)
 query the number of lamps installed More...
 
const char * muse_pfits_get_lamp_name (const cpl_propertylist *aHeaders, int aLamp)
 query the name of one lamp More...
 
int muse_pfits_get_lamp_status (const cpl_propertylist *aHeaders, int aLamp)
 query the status of one lamp More...
 
const char * muse_pfits_get_shut_name (const cpl_propertylist *aHeaders, int aShutter)
 query the name of one shutter More...
 
int muse_pfits_get_shut_status (const cpl_propertylist *aHeaders, int aShutter)
 query the status of one shutter More...
 
int muse_pfits_get_posenc (const cpl_propertylist *aHeaders, unsigned short aEncoder)
 query the absolute encoder position of one encoder More...
 
double muse_pfits_get_pospos (const cpl_propertylist *aHeaders, unsigned short aEncoder)
 query the position in user units of one encoder More...
 
long muse_pfits_get_obsid (const cpl_propertylist *aHeaders)
 find out the observation block id More...
 
const char * muse_pfits_get_progid (const cpl_propertylist *aHeaders)
 find out the ESO program identification More...
 
const char * muse_pfits_get_targname (const cpl_propertylist *aHeaders)
 find out the ESO observation target name More...
 
const char * muse_pfits_get_pipe_id (const cpl_propertylist *aHeaders, unsigned int idx)
 find out the value of the flux calibration flag More...
 
const char * muse_pfits_get_raw_filename (const cpl_propertylist *aHeaders, unsigned int idx)
 find out the i-th raw file name. More...
 
const char * muse_pfits_get_ancestor (const cpl_propertylist *aHeaders)
 find out the ancestor of a file. More...
 

Detailed Description

Function Documentation

double muse_pfits_get_agx_avg ( const cpl_propertylist *  aHeaders)

find out the x-FWHM average value from the auto-guider (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO OCS SGS AG FWHMX AVG

Definition at line 1170 of file muse_pfits.c.

double muse_pfits_get_agx_rms ( const cpl_propertylist *  aHeaders)

find out the x-FWHM root mean square from the auto-guider (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO OCS SGS AG FWHMX RMS

Definition at line 1188 of file muse_pfits.c.

double muse_pfits_get_agy_avg ( const cpl_propertylist *  aHeaders)

find out the y-FWHM average value from the auto-guider (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO OCS SGS AG FWHMY AVG

Definition at line 1206 of file muse_pfits.c.

double muse_pfits_get_agy_rms ( const cpl_propertylist *  aHeaders)

find out the y-FWHM root mean square from the auto-guider (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO OCS SGS AG FWHMY RMS

Definition at line 1224 of file muse_pfits.c.

double muse_pfits_get_airmass_end ( const cpl_propertylist *  aHeaders)

find out the airmass at end of exposure

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AIRM END

Definition at line 988 of file muse_pfits.c.

Referenced by muse_astro_airmass().

double muse_pfits_get_airmass_start ( const cpl_propertylist *  aHeaders)

find out the airmass at start of exposure

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AIRM START

Definition at line 970 of file muse_pfits.c.

Referenced by muse_astro_airmass().

double muse_pfits_get_altang ( const cpl_propertylist *  aHeaders)

find out the altitude angle at start of the exposure (in degrees)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL ALT

Definition at line 1116 of file muse_pfits.c.

const char* muse_pfits_get_ancestor ( const cpl_propertylist *  aHeaders)

find out the ancestor of a file.

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header for ESO.PRO.ANCESTOR

Definition at line 1739 of file muse_pfits.c.

const char* muse_pfits_get_arcfile ( const cpl_propertylist *  aHeaders)

find out the arcfile

Parameters
aHeadersproperty list/headers to read from
Returns
pointer to statically allocated string or NULL on error

Queries FITS header ARCFILE

Definition at line 54 of file muse_pfits.c.

int muse_pfits_get_binx ( const cpl_propertylist *  aHeaders)

find out the binning factor in x direction

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 1 on error

Queries FITS header ESO DET BINX

Definition at line 548 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), muse_frameset_check_raw(), muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_overscan_stats(), muse_quadrants_trim_image(), and muse_quadrants_verify().

int muse_pfits_get_biny ( const cpl_propertylist *  aHeaders)

find out the binning factor in y direction

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 1 on error

Queries FITS header ESO DET BINY

Definition at line 566 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), muse_frameset_check_raw(), muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_overscan_stats(), muse_quadrants_trim_image(), and muse_quadrants_verify().

const char* muse_pfits_get_bunit ( const cpl_propertylist *  aHeaders)

find out the unit string

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header BUNIT

Definition at line 223 of file muse_pfits.c.

Referenced by muse_datacube_save(), muse_datacube_save_recimages(), muse_flux_integrate_cube(), muse_flux_response_compute(), muse_fov_load(), muse_image_adu_to_count(), muse_image_load_internal(), muse_image_save(), muse_pixtable_create(), muse_pixtable_save(), muse_wave_calib(), and muse_wave_calib_lampwise().

double muse_pfits_get_cd ( const cpl_propertylist *  aHeaders,
unsigned int  aAxisI,
unsigned int  aAxisJ 
)

find out the WCS coordinate at the reference point

Parameters
aHeadersproperty list/headers to read from
aAxisIthe first axis (the "i" of CDi_j)
aAxisJthe second axis (the "j" of CDi_j)
Returns
the requested value or 0.0 on error

Queries FITS header CDi_j

Definition at line 446 of file muse_pfits.c.

Referenced by muse_basicproc_apply_twilight(), muse_dar_check(), muse_datacube_collapse(), muse_datacube_concat(), muse_flux_integrate_cube(), muse_lsf_cube_load(), muse_pixgrid_create(), muse_pixtable_and_selected_mask(), muse_postproc_qc_fwhm(), muse_resampling_collapse_pixgrid(), muse_resampling_euro3d(), muse_resampling_params_delete(), muse_sky_spectrum_from_cube(), muse_wcs_apply_cd(), muse_wcs_get_angles(), muse_wcs_get_scales(), muse_wcs_new(), muse_wcs_project_tan(), and muse_wcs_solve().

const char* muse_pfits_get_chip_date ( const cpl_propertylist *  aHeaders)

find out the chip installation date

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO DET CHIP DATE

Definition at line 620 of file muse_pfits.c.

const char* muse_pfits_get_chip_id ( const cpl_propertylist *  aHeaders)

find out the chip id

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO DET CHIP ID

Definition at line 602 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), and muse_frameset_check_raw().

cpl_boolean muse_pfits_get_chip_live ( const cpl_propertylist *  aHeaders)

find out if the CCD was active (live)

Parameters
aHeadersproperty list/headers to read from
Returns
CPL_TRUE or CPL_FALSE; CPL_FALSE is also returned, if the header keyword does not exist

Queries FITS header ESO DET CHIP LIVE

Definition at line 639 of file muse_pfits.c.

Referenced by muse_image_load_from_raw().

const char* muse_pfits_get_chip_name ( const cpl_propertylist *  aHeaders)

find out the chip name

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO DET CHIP NAME

Definition at line 584 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), and muse_frameset_check_raw().

double muse_pfits_get_crpix ( const cpl_propertylist *  aHeaders,
unsigned int  aAxis 
)

find out the WCS reference point

Parameters
aHeadersproperty list/headers to read from
aAxisthe axis (the "i" of CRPIXi)
Returns
the requested value or 0.0 on error

Queries FITS header CRPIXi

Definition at line 401 of file muse_pfits.c.

Referenced by muse_basicproc_apply_twilight(), muse_dar_check(), muse_datacube_collapse(), muse_datacube_concat(), muse_flux_integrate_cube(), muse_lsf_cube_load(), muse_pixgrid_create(), muse_pixtable_and_selected_mask(), muse_postproc_qc_fwhm(), muse_resampling_cube(), muse_resampling_params_delete(), muse_sky_spectrum_from_cube(), muse_wcs_new(), and muse_wcs_project_tan().

double muse_pfits_get_crval ( const cpl_propertylist *  aHeaders,
unsigned int  aAxis 
)
const char* muse_pfits_get_ctype ( const cpl_propertylist *  aHeaders,
unsigned int  aAxis 
)

find out the WCS axis type string

Parameters
aHeadersproperty list/headers to read from
aAxisthe axis (the "i" of CTYPEi)
Returns
the requested value or " " on error

Queries FITS header CTYPEi

Definition at line 469 of file muse_pfits.c.

Referenced by muse_datacube_collapse(), muse_datacube_concat(), muse_flux_integrate_cube(), muse_pixgrid_create(), muse_postproc_qc_fwhm(), muse_resampling_euro3d(), muse_resampling_params_delete(), muse_resampling_params_set_wcs(), muse_wcs_celestial_from_pixel(), muse_wcs_pixel_from_celestial(), muse_wcs_position_celestial(), muse_wcs_project_tan(), and muse_wcs_projplane_from_celestial().

const char* muse_pfits_get_cunit ( const cpl_propertylist *  aHeaders,
unsigned int  aAxis 
)

find out the WCS axis unit string

Parameters
aHeadersproperty list/headers to read from
aAxisthe axis (the "i" of CUNITi)
Returns
the requested value or " " on error

Queries FITS header CUNITi

Definition at line 491 of file muse_pfits.c.

Referenced by muse_flux_integrate_cube(), and muse_resampling_euro3d().

const char* muse_pfits_get_dateobs ( const cpl_propertylist *  aHeaders)

find out the date of observations

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header DATE-OBS

Definition at line 364 of file muse_pfits.c.

Referenced by muse_frameset_sort_raw_other(), muse_processing_new_frame(), muse_processing_sort_exposures(), muse_resampling_params_delete(), muse_trace(), and muse_xcombine_tables().

double muse_pfits_get_dec ( const cpl_propertylist *  aHeaders)

find out the declination

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header DEC

Definition at line 285 of file muse_pfits.c.

Referenced by muse_astro_airmass(), muse_astro_rvcorr_compute(), muse_flux_integrate_cube(), muse_postproc_load_nearest(), muse_postproc_process_exposure(), muse_wcs_locate_sources(), and muse_xcombine_tables().

const char* muse_pfits_get_dpr_catg ( const cpl_propertylist *  aHeaders)

find out the DPR category

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO DPR CATG

Definition at line 123 of file muse_pfits.c.

const char* muse_pfits_get_dpr_type ( const cpl_propertylist *  aHeaders)

find out the DPR type

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO DPR TYPE

Definition at line 105 of file muse_pfits.c.

double muse_pfits_get_drot_end ( const cpl_propertylist *  aHeaders)

find out the MUSE derotator rotation at exposure end (in degrees)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO INS DROT END

Definition at line 1332 of file muse_pfits.c.

const char* muse_pfits_get_drot_mode ( const cpl_propertylist *  aHeaders)

find out the MUSE derotator mode

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO INS DROT MODE

Definition at line 1278 of file muse_pfits.c.

Referenced by muse_astro_posangle().

double muse_pfits_get_drot_posang ( const cpl_propertylist *  aHeaders)

find out the MUSE derotator position angle (in degrees)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO INS DROT POSANG

Definition at line 1296 of file muse_pfits.c.

Referenced by muse_astro_posangle().

double muse_pfits_get_drot_start ( const cpl_propertylist *  aHeaders)

find out the MUSE derotator rotation at exposure start (in degrees)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO INS DROT START

Definition at line 1314 of file muse_pfits.c.

double muse_pfits_get_equinox ( const cpl_propertylist *  aHeaders)

find out the equinox

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header EQUINOX

Note
This keyword should be in floating point, but to be backward compatible, also fall back to reading it as int without error.

Definition at line 306 of file muse_pfits.c.

Referenced by muse_astro_rvcorr_compute().

double muse_pfits_get_exptime ( const cpl_propertylist *  aHeaders)

find out the exposure time

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header EXPTIME

Definition at line 382 of file muse_pfits.c.

Referenced by muse_astro_airmass(), muse_astro_rvcorr_compute(), muse_basicproc_params_delete(), muse_flux_calibrate(), muse_flux_integrate_cube(), muse_imagelist_dump_statistics(), and muse_imagelist_scale_exptime().

const char* muse_pfits_get_extname ( const cpl_propertylist *  aHeaders)

find out the extension name

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header EXTNAME

Definition at line 205 of file muse_pfits.c.

Referenced by muse_datacube_load(), muse_fov_load(), muse_image_load_from_raw(), muse_pfits_has_ifu(), muse_pixtable_save(), and muse_table_load().

double muse_pfits_get_focu_scale ( const cpl_propertylist *  aHeaders)

find out the scale in the VLT focal plane

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 1.705 if the keyword is missing

Queries FITS header ESO TEL FOCU SCALE, should be in units of [arcsec / mm].

A super-precise value should be 1.70549 but to keep compatibility between the value in the header (if it's there) and the "error" case, lets return it with less digits.

Definition at line 951 of file muse_pfits.c.

Referenced by muse_geo_measure_spots().

double muse_pfits_get_fwhm_end ( const cpl_propertylist *  aHeaders)

find out the ambient seeing at end of exposure (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AMBI FWHM END

Definition at line 1097 of file muse_pfits.c.

Referenced by muse_flux_integrate_cube(), and muse_wcs_centroid_stars().

double muse_pfits_get_fwhm_start ( const cpl_propertylist *  aHeaders)

find out the ambient seeing at start of exposure (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AMBI FWHM START

Definition at line 1078 of file muse_pfits.c.

Referenced by muse_flux_integrate_cube(), and muse_wcs_centroid_stars().

double muse_pfits_get_gain ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find the detector gain (in units of count/adu)

Parameters
aHeadersproperty list/headers to read from
aQuadrantthe CCD quadrant to operate on (1 to 4)
Returns
the requested value or 0.0 on error

Queries FITS header ESO DET OUTi GAIN

This function assumes that GAIN comes in units of [count/adu] (or electrons per ADU).

Definition at line 686 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), muse_image_adu_to_count(), muse_image_variance_create(), muse_imagelist_compute_ron(), and muse_quadrants_overscan_correct().

double muse_pfits_get_geoelev ( const cpl_propertylist *  aHeaders)

find out the telescope's elevation

Parameters
aHeadersproperty list/headers to read from
Returns
the requested header value or 2648. by default

Queries FITS header ESO TEL GEOELEV

The default value is the UT4 entry taken from exposures taken during Comm2A (the value is the same as the "esovlt" location in the IRAF database).

Definition at line 928 of file muse_pfits.c.

Referenced by muse_astro_rvcorr_compute().

double muse_pfits_get_geolat ( const cpl_propertylist *  aHeaders)

find out the telescope's latitude

Parameters
aHeadersproperty list/headers to read from
Returns
the requested header value or -24.625278 by default

Queries FITS header ESO TEL GEOLAT

The default value is the UT4 entry from http://www.eso.org/sci/facilities/paranal/site/paranal.html (the value is the same as the "esovlt" location in the IRAF database, but there it's rounded to four digits).

Definition at line 882 of file muse_pfits.c.

Referenced by muse_astro_airmass(), and muse_astro_rvcorr_compute().

double muse_pfits_get_geolon ( const cpl_propertylist *  aHeaders)

find out the telescope's longitude

Parameters
aHeadersproperty list/headers to read from
Returns
the requested header value or 70.402222 by default

Queries FITS header ESO TEL GEOLON

The default value is the UT4 entry from http://www.eso.org/sci/facilities/paranal/site/paranal.html (the value is the same as the "esovlt" location in the IRAF database, but there it's rounded to four digits).

Definition at line 906 of file muse_pfits.c.

Referenced by muse_astro_rvcorr_compute().

double muse_pfits_get_ia_fwhm ( const cpl_propertylist *  aHeaders)

find out the image analysis FWHM corrected by airmass (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL IA FWHM

Definition at line 1242 of file muse_pfits.c.

double muse_pfits_get_ia_fwhmlin ( const cpl_propertylist *  aHeaders)

find out the image analysis FWHM from a linear fit (in arcsec)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL IA FWHMLIN

Definition at line 1260 of file muse_pfits.c.

const char* muse_pfits_get_insmode ( const cpl_propertylist *  aHeaders)

find out the observation mode

Parameters
aHeadersproperty list/headers to read from
Returns
The observing mode as string or NULL on error

Queries header ESO INS MODE The difference to muse_pfits_get_mode() is that this function returns the string content of the header, not the corresponding mode enum.

Definition at line 1383 of file muse_pfits.c.

Referenced by muse_basicproc_mask_notch_filter(), muse_basicproc_params_delete(), muse_pfits_get_mode(), and muse_wave_params_new().

const char* muse_pfits_get_lamp_name ( const cpl_propertylist *  aHeaders,
int  aLamp 
)

query the name of one lamp

Parameters
aHeadersproperty list/headers to read from
aLampnumber of the lamp to query
Returns
the requested name or NULL on error

Queries FITS header ESO INS LAMPi NAME

Definition at line 1506 of file muse_pfits.c.

Referenced by muse_basicproc_mask_notch_filter(), and muse_utils_header_get_lamp_names().

int muse_pfits_get_lamp_status ( const cpl_propertylist *  aHeaders,
int  aLamp 
)

query the status of one lamp

Parameters
aHeadersproperty list/headers to read from
aLampnumber of the lamp to query
Returns
1 for lamp status on (T) or 0 for off (F) or error

Queries FITS header ESO INS LAMPi ST

Definition at line 1527 of file muse_pfits.c.

Referenced by muse_basicproc_mask_notch_filter(), muse_utils_header_get_lamp_names(), and muse_utils_header_get_lamp_numbers().

int muse_pfits_get_lampnum ( const cpl_propertylist *  aHeaders)

query the number of lamps installed

Parameters
aHeadersproperty list/headers to read from
Returns
the number of lamps or 6 on error

Queries FITS header ESO INS LAMPNUM The number returned on success can be used to enumerate both lamps and lamp shutters (keywords INS LAMPi and INS SHUTi).

Note
For backwards compatibility this function returns a reasonable default estimate and clears any errors if the FITS header is not present.

Definition at line 1483 of file muse_pfits.c.

Referenced by muse_utils_header_get_lamp_names(), muse_utils_header_get_lamp_numbers(), and muse_wave_params_delete().

double muse_pfits_get_lst ( const cpl_propertylist *  aHeaders)

find out the local siderial time

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header LST

Definition at line 328 of file muse_pfits.c.

Referenced by muse_astro_airmass().

double muse_pfits_get_mjdobs ( const cpl_propertylist *  aHeaders)

find out the Julian Date of the observation

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header MJD-OBS

Definition at line 346 of file muse_pfits.c.

Referenced by muse_astro_rvcorr_compute(), and muse_resampling_params_delete().

muse_ins_mode muse_pfits_get_mode ( const cpl_propertylist *  aHeaders)

find out the observation mode

Parameters
aHeadersproperty list/headers to read from
Returns
The observing mode, on error this is MUSE_MODE_WFM_NONAO_N as the default MUSE setup.

Queries header ESO INS MODE Uses muse_pfits_get_insmode() to query the string of the header.

Definition at line 1352 of file muse_pfits.c.

References muse_pfits_get_insmode().

Referenced by muse_basicproc_mask_notch_filter(), muse_basicproc_params_delete(), muse_dar_check(), muse_dar_correct(), muse_flux_get_response_table(), muse_flux_integrate_cube(), muse_flux_integrate_std(), muse_lsf_create_arcpixtable(), muse_postproc_process_exposure(), muse_postproc_qc_fwhm(), muse_resampling_params_delete(), muse_wave_params_delete(), muse_wave_params_new(), muse_wcs_centroid_stars(), and muse_wcs_optimize_solution().

cpl_size muse_pfits_get_naxis ( const cpl_propertylist *  aHeaders,
unsigned int  aAxis 
)

find out the size of a given axis

Parameters
aHeadersproperty list/headers to read from
aAxisthe axis to read from, give 0 for NAXIS
Returns
the requested value or 0 on error

Queries FITS header NAXIS or NAXISi

Definition at line 242 of file muse_pfits.c.

Referenced by muse_fov_load(), and muse_pixtable_save().

long muse_pfits_get_obsid ( const cpl_propertylist *  aHeaders)

find out the observation block id

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or -1 on error

Queries FITS header for ESO.OBS.ID

Definition at line 1641 of file muse_pfits.c.

const char* muse_pfits_get_origfile ( const cpl_propertylist *  aHeaders)

find out the origfile

Parameters
aHeadersproperty list/headers to read from
Returns
pointer to statically allocated string or NULL on error

Queries FITS header ORIGFILE

Definition at line 71 of file muse_pfits.c.

int muse_pfits_get_out_nx ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the horizontal size of the data section of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi NX

Definition at line 748 of file muse_pfits.c.

Referenced by muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_overscan_stats(), muse_quadrants_trim_image(), and muse_quadrants_verify().

int muse_pfits_get_out_ny ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the vertical size of the data section of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi NY

Definition at line 769 of file muse_pfits.c.

Referenced by muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_overscan_stats(), muse_quadrants_trim_image(), and muse_quadrants_verify().

int muse_pfits_get_out_output_x ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the horizontal location of the output port of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi X

Definition at line 704 of file muse_pfits.c.

Referenced by muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_trim_image(), and muse_quadrants_verify().

int muse_pfits_get_out_output_y ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the vertical location of the output port of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi Y

Definition at line 726 of file muse_pfits.c.

Referenced by muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_trim_image(), and muse_quadrants_verify().

int muse_pfits_get_out_overscan_x ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the horizontal size of the overscan region of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi OVSCX

Definition at line 834 of file muse_pfits.c.

Referenced by muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_overscan_stats(), and muse_quadrants_verify().

int muse_pfits_get_out_overscan_y ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the vertical size of the overscan region of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi OVSCY

Definition at line 856 of file muse_pfits.c.

Referenced by muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_overscan_stats(), and muse_quadrants_verify().

int muse_pfits_get_out_prescan_x ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the horizontal size of the prescan region of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi PRSCX

Definition at line 790 of file muse_pfits.c.

Referenced by muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_trim_image(), and muse_quadrants_verify().

int muse_pfits_get_out_prescan_y ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find out the vertical size of the prescan region of one quadrant

Parameters
aHeadersproperty list/headers to read from
aQuadrantquadrant to look for
Returns
the requested value or -1 on error

Queries FITS header ESO DET OUTi PRSCY

Definition at line 812 of file muse_pfits.c.

Referenced by muse_quadrants_get_window(), muse_quadrants_overscan_get_window(), muse_quadrants_overscan_polyfit_vertical(), muse_quadrants_trim_image(), and muse_quadrants_verify().

const char* muse_pfits_get_pam2_filter ( const cpl_propertylist *  aHeaders)

query the filter set up in front of photo diode (pico amplifier) 2

Parameters
aHeadersproperty list/headers to read from
Returns
the filter name or NULL

Queries FITS header ESO INS AMPL2 FILTER

Definition at line 1459 of file muse_pfits.c.

double muse_pfits_get_pam_intensity ( const cpl_propertylist *  aHeaders,
int  aDiode 
)

query the intensity measured by one photo diode (pico amplifier)

Parameters
aHeadersproperty list/headers to read from
aDiodenumber of the photo diode to query
Returns
the requested value or 0.0 on error

Queries FITS header ESO INS AMPLi CURR

The FITS keyword is in units of mA, but the function returns the intensity in Ampere, if the unit in the header can be determined.

This function ensures the unit by searching for "[mA]" in the FITS comment. If not found, an error is set, otherwise it converts the returned value from mA to A.

Definition at line 1409 of file muse_pfits.c.

double muse_pfits_get_pam_stdev ( const cpl_propertylist *  aHeaders,
int  aDiode 
)

query the intensity std. dev. of one photo diode (pico amplifier)

Parameters
aHeadersproperty list/headers to read from
aDiodenumber of the photo diode to query
Returns
the requested value or 0.0 on error

Queries FITS header ESO INS AMPLi STDEV

Definition at line 1439 of file muse_pfits.c.

double muse_pfits_get_parang_end ( const cpl_propertylist *  aHeaders)

find out the parallactic angle at end of exposure (in degrees)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL PARANG END

Definition at line 1152 of file muse_pfits.c.

Referenced by muse_astro_parangle().

double muse_pfits_get_parang_start ( const cpl_propertylist *  aHeaders)

find out the parallactic angle at start of exposure (in degrees)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL PARANG START

Definition at line 1134 of file muse_pfits.c.

Referenced by muse_astro_parangle().

const char* muse_pfits_get_pipe_id ( const cpl_propertylist *  aHeaders,
unsigned int  idx 
)

find out the value of the flux calibration flag

Parameters
aHeadersproperty list/headers to read from
idxrecipe index
Returns
the requested value or NULL on error

Queries FITS header for ESO.PRO.REC<idx>.PIPE.ID

Definition at line 1696 of file muse_pfits.c.

const char* muse_pfits_get_pipefile ( const cpl_propertylist *  aHeaders)

find out the pipefile

Parameters
aHeadersproperty list/headers to read from
Returns
pointer to statically allocated string or NULL on error

Queries FITS header PIPEFILE

Definition at line 88 of file muse_pfits.c.

Referenced by muse_frameset_find().

int muse_pfits_get_posenc ( const cpl_propertylist *  aHeaders,
unsigned short  aEncoder 
)

query the absolute encoder position of one encoder

Parameters
aHeadersproperty list/headers to read from
aEncodernumber of the encoder to query
Returns
the absolute encoder position or 0 on error

For possible values of aEncoder see muse_pfits_get_pospos().

Queries FITS header ESO INS POSi ENC

Definition at line 1592 of file muse_pfits.c.

Referenced by muse_geo_measure_spots().

double muse_pfits_get_pospos ( const cpl_propertylist *  aHeaders,
unsigned short  aEncoder 
)

query the position in user units of one encoder

Parameters
aHeadersproperty list/headers to read from
aEncodernumber of the encoder to query
Returns
the position in user units or 0.0 on error

Queries FITS header ESO INS POSi POS. It returns the following properties, depending on the value of aEncoder:

  • 1: Focusing stage position [mm]
  • 2: Focal Mask Alignment X position [mm]
  • 3: Focal Mask Alignment Y Position [mm]
  • 4: Focal Mask Alignment Z Position [mm]

There are no other POSi headers in MUSE headers, so for other values of aEncoder, this function will set an error and return 0.0.

Definition at line 1621 of file muse_pfits.c.

Referenced by muse_geo_measure_spots().

double muse_pfits_get_pres_end ( const cpl_propertylist *  aHeaders)

find out the ambient pressure at end of exposure (in mbar)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AMBI PRES END

Definition at line 1060 of file muse_pfits.c.

Referenced by muse_dar_correct(), and muse_phys_air_to_vacuum().

double muse_pfits_get_pres_start ( const cpl_propertylist *  aHeaders)

find out the ambient pressure at start of exposure (in mbar)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AMBI PRES START

Definition at line 1042 of file muse_pfits.c.

Referenced by muse_dar_correct(), muse_phys_air_to_vacuum(), and muse_resampling_euro3d().

const char* muse_pfits_get_pro_catg ( const cpl_propertylist *  aHeaders)

find out the PRO category

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO PRO CATG

Definition at line 159 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), and muse_flux_calibrate().

const char* muse_pfits_get_pro_type ( const cpl_propertylist *  aHeaders)

find out the PRO type

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO PRO TYPE

Definition at line 141 of file muse_pfits.c.

const char* muse_pfits_get_progid ( const cpl_propertylist *  aHeaders)

find out the ESO program identification

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header for ESO.OBS.PROG.ID

Definition at line 1659 of file muse_pfits.c.

double muse_pfits_get_ra ( const cpl_propertylist *  aHeaders)

find out the right ascension

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header RA

Definition at line 267 of file muse_pfits.c.

Referenced by muse_astro_airmass(), muse_astro_rvcorr_compute(), muse_flux_integrate_cube(), muse_postproc_load_nearest(), muse_postproc_process_exposure(), muse_wcs_locate_sources(), and muse_xcombine_tables().

const char* muse_pfits_get_raw_filename ( const cpl_propertylist *  aHeaders,
unsigned int  idx 
)

find out the i-th raw file name.

Parameters
aHeadersproperty list/headers to read from
idxraw file index
Returns
the requested value or NULL on error

Queries FITS header for ESO.PRO.REC1.RAW<idx>.NAME

Definition at line 1718 of file muse_pfits.c.

int muse_pfits_get_read_id ( const cpl_propertylist *  aHeaders)

find out the readout mode id

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0 on error

Queries FITS header ESO DET READ CURID

Definition at line 512 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), and muse_frameset_check_raw().

const char* muse_pfits_get_read_name ( const cpl_propertylist *  aHeaders)

find out the readout mode name

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header ESO DET READ CURNAME

Definition at line 530 of file muse_pfits.c.

Referenced by muse_basicproc_params_delete(), and muse_frameset_check_raw().

double muse_pfits_get_rhum ( const cpl_propertylist *  aHeaders)

find out the relavtive humidity (in %)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AMBI RHUM

Definition at line 1024 of file muse_pfits.c.

Referenced by muse_dar_correct(), muse_phys_air_to_vacuum(), and muse_resampling_euro3d().

double muse_pfits_get_ron ( const cpl_propertylist *  aHeaders,
unsigned char  aQuadrant 
)

find the detector read-out noise

Parameters
aHeadersproperty list/headers to read from
aQuadrantthe CCD quadrant to operate on (1 to 4)
Returns
the requested value or 1.0 on error

Queries FITS header ESO DET OUTi RON

Definition at line 660 of file muse_pfits.c.

Referenced by muse_imagelist_compute_ron().

const char* muse_pfits_get_shut_name ( const cpl_propertylist *  aHeaders,
int  aShutter 
)

query the name of one shutter

Parameters
aHeadersproperty list/headers to read from
aShutternumber of the shutter to query
Returns
the requested name or NULL on error

Queries FITS header ESO INS SHUTi NAME

Definition at line 1548 of file muse_pfits.c.

Referenced by muse_basicproc_mask_notch_filter().

int muse_pfits_get_shut_status ( const cpl_propertylist *  aHeaders,
int  aShutter 
)

query the status of one shutter

Parameters
aHeadersproperty list/headers to read from
aShutternumber of the shutter to query
Returns
1 for shutter status open (T) or 0 for closed (F) or error

Queries FITS header ESO INS SHUTi ST

Definition at line 1569 of file muse_pfits.c.

Referenced by muse_basicproc_mask_notch_filter(), muse_utils_header_get_lamp_names(), and muse_utils_header_get_lamp_numbers().

const char* muse_pfits_get_targname ( const cpl_propertylist *  aHeaders)

find out the ESO observation target name

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or NULL on error

Queries FITS header for ESO.OBS.TARG.NAME

Definition at line 1677 of file muse_pfits.c.

Referenced by muse_flux_compute_qc().

double muse_pfits_get_temp ( const cpl_propertylist *  aHeaders)

find out the ambient temperature (in degrees Celsius)

Parameters
aHeadersproperty list/headers to read from
Returns
the requested value or 0.0 on error

Queries FITS header ESO TEL AMBI TEMP

Definition at line 1006 of file muse_pfits.c.

Referenced by muse_dar_correct(), muse_phys_air_to_vacuum(), and muse_resampling_euro3d().

cpl_boolean muse_pfits_has_ifu ( const cpl_propertylist *  aHeaders,
unsigned char  aIFU 
)

Find out the whether this header related to a certain IFU.

Parameters
aHeadersproperty list/headers to read from
aIFUthe IFU number to query
Returns
True if the image has this number, false otherwise.

Queries FITS header EXTNAME and parses the CHAN%02d string for the IFU (channel) number.

Using this function may be faster than comparison with muse_utils_get_ifu().

Definition at line 181 of file muse_pfits.c.

References muse_pfits_get_extname().

Referenced by muse_utils_get_extension_for_ifu(), and muse_utils_get_ifu().