X-shooter Pipeline Reference Manual 3.8.15
xsh_utils_scired_slit.c File Reference
#include <xsh_utils_scired_slit.h>
#include <xsh_dfs.h>
#include <xsh_utils.h>
#include <xsh_utils_table.h>
#include <xsh_utils_efficiency.h>
#include <xsh_data_spectrum.h>
#include <xsh_model_utils.h>
#include <xsh_error.h>
#include <xsh_drl_check.h>
#include <xsh_pfits.h>
#include <xsh_hdrl_functions.h>

Go to the source code of this file.

Functions

cpl_error_code xsh_stare_params_bin_scale (cpl_frameset *raws, xsh_background_param *backg, xsh_opt_extract_param *opt_extract_par, int *sub_sky_nbkpts1, int *sub_sky_nbkpts2)
 Corrects parameters for binning.
 
cpl_frameset * xsh_nod_group_by_reloff (cpl_frameset *ord_set, xsh_instrument *instrument, xsh_stack_param *stack_par)
 
cpl_frameset * xsh_nod_group_by_reloff2 (cpl_frameset *ord_set, xsh_instrument *instrument, xsh_stack_param *stack_par)
 
static cpl_frame * xsh_frame_divide_flat (int do_flat, cpl_frame *src, cpl_frame *mflat, const char *tag, xsh_instrument *instr)
 
static cpl_frame * xsh_nod_median_correct_list_per_wavelength (cpl_frame *frame_i, xsh_instrument *inst)
 
static cpl_error_code xsh_nod_rectify_and_shift_with_key (const char *nod_name, const char *qual_name, const char *rec_prefix, cpl_frame *frame2D, cpl_frame *order_tab_edges, cpl_frame *wave_tab, cpl_frame *model_config_frame, cpl_frame *spectral_format, cpl_frame *disp_tab_frame, xsh_instrument *instrument, const int corr_sky, xsh_rectify_param *rectify_par, double **ref_ra, double **ref_dec, cpl_frame **shift2_frame, cpl_frame **shift1_frame)
 
cpl_frameset * xsh_scired_slit_nod_fast (cpl_frameset *nod_set, cpl_frame *spectral_format, cpl_frame *master_flat, cpl_frame *order_tab_edges, cpl_frame *wave_tab, cpl_frame *model_config_frame, cpl_frame *disp_tab_frame, cpl_frame *wavemap, xsh_instrument *instrument, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, const int do_flatfield, const int corr_sky, const int compute_eff, const char *rec_prefix, cpl_frameset **comb_eff_set)
 
cpl_frameset * xsh_scired_slit_nod_accurate (cpl_frameset *nod_set, cpl_frame *spectral_format, cpl_frame *master_flat, cpl_frame *order_tab_edges, cpl_frame *wave_tab, cpl_frame *model_config_frame, cpl_frame *disp_tab_frame, cpl_frame *wavemap, cpl_frame *skymask_frame, xsh_instrument *instrument, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, xsh_localize_obj_param *loc_obj_par, const char *throw_name, const int do_flatfield, const char *rec_prefix)
 
cpl_error_code xsh_scired_get_proper_maps (cpl_frameset *raws, cpl_frameset *calib, cpl_frame *order_tab_edges, cpl_frame *master_flat, cpl_frame *model_config_frame, cpl_frame *disp_tab, xsh_instrument *instrument, const int do_computemap, const char *rec_prefix, cpl_frame **wavemap, cpl_frame **slitmap)
 
cpl_error_code xsh_get_normal_calibs (cpl_frameset *calib, xsh_instrument *instrument, const char *recipe_id, int pscan, cpl_frame **spectral_format, cpl_frame **master_bias, cpl_frame **bpmap, cpl_frame **order_tab_edges, cpl_frame **master_flat)
 
cpl_error_code xsh_get_dispersion_calibs (cpl_frameset *calib, xsh_instrument *instrument, const int do_computemap, cpl_frame **model_config_frame, cpl_frame **wave_tab, cpl_frame **wavemap)
 
static cpl_error_code xsh_get_response_calibs (cpl_frameset *calib, xsh_instrument *instrument, const int use_sky_mask, cpl_frame **disp_tab_frame, cpl_frame **response_ord_frame, cpl_frame **frm_atmext, cpl_frame **skymask_frame)
 
cpl_error_code xsh_get_calibs_to_flux_calibrate (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **response_ord_frame, cpl_frame **frm_atmext)
 
cpl_error_code xsh_scired_slit_nod_get_calibs (cpl_frameset *raws, cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **bpmap, cpl_frame **master_bias, cpl_frame **master_flat, cpl_frame **order_tab_edges, cpl_frame **wave_tab, cpl_frame **model_config_frame, cpl_frame **wavemap, cpl_frame **slitmap, cpl_frame **disp_tab_frame, cpl_frame **spectral_format, cpl_frame **skymask_frame, cpl_frame **response_ord_frame, cpl_frame **frm_atmext, int do_computemap, int use_skymask, int pscan, const char *rec_prefix, const char *recipe_id)
 
cpl_error_code xsh_respon_slit_nod_get_calibs (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **bpmap, cpl_frame **master_bias, cpl_frame **master_flat, cpl_frame **order_tab_edges, cpl_frame **wave_tab, cpl_frame **model_config_frame, cpl_frame **wavemap, cpl_frame **slitmap, cpl_frame **disp_tab_frame, cpl_frame **spectral_format, cpl_frame **skymask_frame, cpl_frame **response_ord_frame, cpl_frame **frm_atmext, int do_computemap, int use_skymask, int pscan, const char *rec_prefix, const char *recipe_id)
 
static cpl_error_code xsh_scired_nod_params_monitor (xsh_rectify_param *rectify_par, xsh_localize_obj_param *loc_obj_par)
 monitor param values
 
cpl_error_code xsh_scired_nod_get_parameters (cpl_parameterlist *parameters, xsh_instrument *instrument, xsh_remove_crh_single_param **crh_single_par, xsh_rectify_param **rectify_par, xsh_extract_param **extract_par, xsh_combine_nod_param **combine_nod_par, xsh_slit_limit_param **slit_limit_par, xsh_localize_obj_param **loc_obj_par, int *rectify_fast, int *pscan, int *generate_sdp_format, const char *rec_id)
 
cpl_error_code xsh_flux_calibrate1D (cpl_frame *rect1D, cpl_frame *atmext, cpl_frame *response, int mpar, xsh_instrument *inst, const char *rec_prefix, cpl_frame **fcal_rect_1D, cpl_frame **fcal_1D)
 
cpl_error_code xsh_flux_calibrate2D (cpl_frame *rect2D, cpl_frame *atmext, cpl_frame *response, int mpar, xsh_instrument *inst, const char *rec_prefix, cpl_frame **fcal_rect_2D, cpl_frame **fcal_2D)
 
cpl_error_code xsh_flux_calibrate (cpl_frame *rect2D, cpl_frame *rect1D, cpl_frame *atmext, cpl_frame *response, int mpar, xsh_instrument *inst, const char *rec_prefix, cpl_frame **fcal_rect_2D, cpl_frame **fcal_rect_1D, cpl_frame **fcal_2D, cpl_frame **fcal_1D)
 
cpl_error_code xsh_ifu_stare_get_calibs (cpl_frameset *calib, xsh_instrument *inst, cpl_frame **spectral_format, cpl_frame **mbias, cpl_frame **mdark, cpl_frame **mflat, cpl_frame **otab_edges, cpl_frame **model_cfg, cpl_frame **bpmap, cpl_frame **wmap, cpl_frame **smap, cpl_frame **ifu_cfg_tab, cpl_frame **ifu_cfg_cor, cpl_frame **wavesol, const char *rec_id, int *recipe_use_model, int pscan)
 
cpl_error_code xsh_get_slit_stare_calibs (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **sky_list, cpl_frame **model_cfg, cpl_frame **qc_sky, cpl_frame **sframe_sky_sub_tab, cpl_frame **sky_orders_chunks)
 
cpl_error_code xsh_slit_stare_get_calibs (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **spectralformat, cpl_frame **mbias, cpl_frame **mdark, cpl_frame **mflat, cpl_frame **otab_edges, cpl_frame **model_cfg, cpl_frame **wave_tab, cpl_frame **sky_list, cpl_frame **sky_orders_chunks, cpl_frame **qc_sky, cpl_frame **bpmap, cpl_frame **sframe_sky_sub_tab, cpl_frame **wmap, cpl_frame **smap, const char *rec_id, int *recipe_use_model, int pscan)
 
cpl_error_code xsh_slit_stare_get_calibs2 (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **spectralformat, cpl_frame **mbias, cpl_frame **mdark, cpl_frame **mflat, cpl_frame **otab_edges, cpl_frame **model_cfg, cpl_frame **wave_tab, cpl_frame **sky_list, cpl_frame **sky_orders_chunks, cpl_frame **qc_sky, cpl_frame **bpmap, cpl_frame **sframe_sky_sub_tab, cpl_frame **wmap, cpl_frame **smap, const char *rec_id, int *recipe_use_model, int pscan)
 
cpl_error_code xsh_slit_offset_get_calibs (cpl_frameset *calib, xsh_instrument *instrument, cpl_frame **bpmap, cpl_frame **mbias, cpl_frame **mdark, cpl_frame **otab_edges, cpl_frame **model_cfg, cpl_frame **wave_tab, cpl_frame **mflat, cpl_frame **wmap, cpl_frame **smap, cpl_frame **spectral_format, const char *rec_id)
 
cpl_error_code xsh_slit_stare_get_params (cpl_parameterlist *parameters, const char *rec_id, int *pre_overscan_corr, xsh_background_param **backg_par, xsh_localize_obj_param **loc_obj_par, xsh_rectify_param **rectify_par, xsh_remove_crh_single_param **crh_single_par, int *sub_sky_nbkpts1, int *do_flatfield, int *sub_sky_nbkpts2, xsh_subtract_sky_single_param **sky_par, int *do_optextract, xsh_opt_extract_param **opt_extract_par, int *generate_sdp_format)
 
cpl_error_code xsh_slit_offset_get_params (cpl_parameterlist *parameters, const char *rec_id, xsh_localize_obj_param **loc_obj_par, xsh_rectify_param **rectify_par, xsh_remove_crh_single_param **crh_single_par, xsh_extract_param **extract_par, xsh_combine_nod_param **combine_nod_param, int *do_flatfield, int *gen_sky, int *generate_sdp_format)
 
cpl_error_code xsh_slit_stare_correct_crh_and_sky (xsh_localize_obj_param *loc_obj_par, xsh_remove_crh_single_param *crh_single_par, xsh_rectify_param *rectify_par, int do_sub_sky, const char *rec_prefix, cpl_frame *rmbkg, cpl_frame *order_tab_edges, cpl_frame *slitmap, cpl_frame *wavemap, cpl_frame *sky_map, cpl_frame *model_config, cpl_frame *single_frame_sky_sub_tab, xsh_instrument *instrument, int sub_sky_nbkpts1, xsh_subtract_sky_single_param *sky_par, cpl_frame *ref_sky_list, cpl_frame *sky_orders_chunks, cpl_frame **sky, cpl_frame **sky_eso, cpl_frame **sky_ima, cpl_frame *wave_tab, cpl_frame *disp_tab, cpl_frame *spectral_format, int nb_raw_frames, cpl_frame **loc_table, cpl_frame **clean, cpl_frame **clean_obj, const int clean_tmp)
 correct CRH and sky lines (1st iteration)
 
cpl_error_code xsh_slit_stare_get_maps (cpl_frameset *calib, int do_compute_map, int recipe_use_model, const char *rec_prefix, xsh_instrument *instrument, cpl_frame *model_config_frame, cpl_frame *crhm_frame, cpl_frame *disp_tab_frame, cpl_frame *order_tab_edges, cpl_frame **wavemap_frame, cpl_frame **slitmap_frame)
 
cpl_error_code xsh_scired_util_spectra_flux_calibrate (cpl_frame *res2D, cpl_frame *res1D, cpl_frame *response, cpl_frame *atmext, xsh_instrument *inst, const char *prefix, cpl_frame **fluxcal_2D, cpl_frame **fluxcal_1D)
 
cpl_frame * xsh_compute_efficiency (cpl_frame *mer1D, cpl_frame *std_cat, cpl_frame *atm_ext, cpl_frame *high_abs_win, xsh_instrument *instr)
 
static cpl_error_code xsh_get_central_xy (cpl_frame *order_tab_edges, xsh_instrument *instrument, int *xcen, int *ycen)
 
static cpl_error_code xsh_frame_image_get_step (cpl_frame *frm_ima, const int xcen, const int ycen, const int direction, double *dif)
 
static cpl_error_code xsh_plist_set_spat_accuracy (cpl_propertylist *header, const double srms, const double serr, const double sys_err)
 
static cpl_error_code xsh_plist_set_wave_accuracy (cpl_propertylist *header, const double wrms, const double werr, const double sys_err)
 
double xsh_get_systematic_wave_accuracy (xsh_instrument *instrument)
 
double xsh_get_systematic_spatial_accuracy (xsh_instrument *instrument)
 
cpl_error_code xsh_compute_resampling_accuracy (cpl_frame *wavemap, cpl_frame *slitmap, cpl_frame *order_tab_edges, cpl_frame *model_config, cpl_frame *science, xsh_instrument *instrument)
 
cpl_error_code xsh_compute_wavelength_resampling_accuracy (cpl_frame *wavemap, cpl_frame *order_tab_edges, cpl_frame *model_config, cpl_frame *science, xsh_instrument *instrument)
 
cpl_frameset * xsh_frameset_crh_single (cpl_frameset *raws, xsh_remove_crh_single_param *crh_single_par, cpl_frame *sky_map_frm, xsh_instrument *instrument, const char *prefix, const char *spec)
 Generates a new frameset with each frame CRH-single rejected from input frameset.
 
cpl_frameset * xsh_frameset_mflat_divide (cpl_frameset *input, cpl_frame *mflat, xsh_instrument *instrument)
 Generates a new frameset with each frame mflat divided input frameset.
 

Function Documentation

◆ xsh_compute_efficiency()

cpl_frame * xsh_compute_efficiency ( cpl_frame *  mer1D,
cpl_frame *  std_cat,
cpl_frame *  atm_ext,
cpl_frame *  high_abs_win,
xsh_instrument instr 
)

◆ xsh_compute_resampling_accuracy()

cpl_error_code xsh_compute_resampling_accuracy ( cpl_frame *  wavemap,
cpl_frame *  slitmap,
cpl_frame *  order_tab_edges,
cpl_frame *  model_config,
cpl_frame *  science,
xsh_instrument instrument 
)

◆ xsh_compute_wavelength_resampling_accuracy()

cpl_error_code xsh_compute_wavelength_resampling_accuracy ( cpl_frame *  wavemap,
cpl_frame *  order_tab_edges,
cpl_frame *  model_config,
cpl_frame *  science,
xsh_instrument instrument 
)

◆ xsh_flux_calibrate()

cpl_error_code xsh_flux_calibrate ( cpl_frame *  rect2D,
cpl_frame *  rect1D,
cpl_frame *  atmext,
cpl_frame *  response,
int  mpar,
xsh_instrument inst,
const char *  rec_prefix,
cpl_frame **  fcal_rect_2D,
cpl_frame **  fcal_rect_1D,
cpl_frame **  fcal_2D,
cpl_frame **  fcal_1D 
)

◆ xsh_flux_calibrate1D()

cpl_error_code xsh_flux_calibrate1D ( cpl_frame *  rect1D,
cpl_frame *  atmext,
cpl_frame *  response,
int  mpar,
xsh_instrument inst,
const char *  rec_prefix,
cpl_frame **  fcal_rect_1D,
cpl_frame **  fcal_1D 
)

◆ xsh_flux_calibrate2D()

cpl_error_code xsh_flux_calibrate2D ( cpl_frame *  rect2D,
cpl_frame *  atmext,
cpl_frame *  response,
int  mpar,
xsh_instrument inst,
const char *  rec_prefix,
cpl_frame **  fcal_rect_2D,
cpl_frame **  fcal_2D 
)

◆ xsh_frame_divide_flat()

static cpl_frame * xsh_frame_divide_flat ( int  do_flat,
cpl_frame *  src,
cpl_frame *  mflat,
const char *  tag,
xsh_instrument instr 
)
static

◆ xsh_frame_image_get_step()

static cpl_error_code xsh_frame_image_get_step ( cpl_frame *  frm_ima,
const int  xcen,
const int  ycen,
const int  direction,
double *  dif 
)
static

◆ xsh_frameset_crh_single()

cpl_frameset * xsh_frameset_crh_single ( cpl_frameset *  raws,
xsh_remove_crh_single_param crh_single_par,
cpl_frame *  sky_map_frm,
xsh_instrument instrument,
const char *  prefix,
const char *  spec 
)

Generates a new frameset with each frame CRH-single rejected from input frameset.

Parameters
[in]rawsThe input Frameset
[in]crh_single_parParameters for remove crh single
[in]instrumentPointer to instrument description
Returns
The input frameset after removal of Cosmics

Definition at line 2833 of file xsh_utils_scired_slit.c.

References check, instrument, xsh_remove_crh_single_param::nb_iter, xsh_add_temporary_file(), xsh_free_image(), xsh_free_mask(), xsh_instrument_arm_tostring(), xsh_msg, xsh_msg_warning, and xsh_remove_crh_single().

Referenced by xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_scired_ifu_offset(), xsh_scired_slit_nod(), xsh_scired_slit_offset(), and xsh_scired_slit_stare().

◆ xsh_frameset_mflat_divide()

cpl_frameset * xsh_frameset_mflat_divide ( cpl_frameset *  input,
cpl_frame *  mflat,
xsh_instrument instrument 
)

Generates a new frameset with each frame mflat divided input frameset.

Parameters
[in]rawsThe input Frameset
[in]mflatmaster flat
[in]instrumentPointer to instrument description
Returns
A new frameset resulting from the division of each input frame from the input frameset by master flat

Definition at line 2902 of file xsh_utils_scired_slit.c.

References instrument, xsh_add_temporary_file(), xsh_divide_flat(), xsh_instrument_arm_tostring(), and xsh_msg.

Referenced by xsh_respon_slit_offset(), xsh_scired_ifu_offset(), and xsh_scired_slit_offset().

◆ xsh_get_calibs_to_flux_calibrate()

cpl_error_code xsh_get_calibs_to_flux_calibrate ( cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  response_ord_frame,
cpl_frame **  frm_atmext 
)

◆ xsh_get_central_xy()

static cpl_error_code xsh_get_central_xy ( cpl_frame *  order_tab_edges,
xsh_instrument instrument,
int *  xcen,
int *  ycen 
)
static

◆ xsh_get_dispersion_calibs()

cpl_error_code xsh_get_dispersion_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
const int  do_computemap,
cpl_frame **  model_config_frame,
cpl_frame **  wave_tab,
cpl_frame **  wavemap 
)

◆ xsh_get_normal_calibs()

cpl_error_code xsh_get_normal_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
const char *  recipe_id,
int  pscan,
cpl_frame **  spectral_format,
cpl_frame **  master_bias,
cpl_frame **  bpmap,
cpl_frame **  order_tab_edges,
cpl_frame **  master_flat 
)

◆ xsh_get_response_calibs()

static cpl_error_code xsh_get_response_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
const int  use_sky_mask,
cpl_frame **  disp_tab_frame,
cpl_frame **  response_ord_frame,
cpl_frame **  frm_atmext,
cpl_frame **  skymask_frame 
)
static

◆ xsh_get_slit_stare_calibs()

cpl_error_code xsh_get_slit_stare_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  sky_list,
cpl_frame **  model_cfg,
cpl_frame **  qc_sky,
cpl_frame **  sframe_sky_sub_tab,
cpl_frame **  sky_orders_chunks 
)

◆ xsh_get_systematic_spatial_accuracy()

double xsh_get_systematic_spatial_accuracy ( xsh_instrument instrument)

◆ xsh_get_systematic_wave_accuracy()

double xsh_get_systematic_wave_accuracy ( xsh_instrument instrument)

◆ xsh_ifu_stare_get_calibs()

cpl_error_code xsh_ifu_stare_get_calibs ( cpl_frameset *  calib,
xsh_instrument inst,
cpl_frame **  spectral_format,
cpl_frame **  mbias,
cpl_frame **  mdark,
cpl_frame **  mflat,
cpl_frame **  otab_edges,
cpl_frame **  model_cfg,
cpl_frame **  bpmap,
cpl_frame **  wmap,
cpl_frame **  smap,
cpl_frame **  ifu_cfg_tab,
cpl_frame **  ifu_cfg_cor,
cpl_frame **  wavesol,
const char *  rec_id,
int *  recipe_use_model,
int  pscan 
)

◆ xsh_nod_group_by_reloff()

cpl_frameset * xsh_nod_group_by_reloff ( cpl_frameset *  ord_set,
xsh_instrument instrument,
xsh_stack_param stack_par 
)

◆ xsh_nod_group_by_reloff2()

cpl_frameset * xsh_nod_group_by_reloff2 ( cpl_frameset *  ord_set,
xsh_instrument instrument,
xsh_stack_param stack_par 
)

◆ xsh_nod_median_correct_list_per_wavelength()

static cpl_frame * xsh_nod_median_correct_list_per_wavelength ( cpl_frame *  frame_i,
xsh_instrument inst 
)
static

◆ xsh_nod_rectify_and_shift_with_key()

static cpl_error_code xsh_nod_rectify_and_shift_with_key ( const char *  nod_name,
const char *  qual_name,
const char *  rec_prefix,
cpl_frame *  frame2D,
cpl_frame *  order_tab_edges,
cpl_frame *  wave_tab,
cpl_frame *  model_config_frame,
cpl_frame *  spectral_format,
cpl_frame *  disp_tab_frame,
xsh_instrument instrument,
const int  corr_sky,
xsh_rectify_param rectify_par,
double **  ref_ra,
double **  ref_dec,
cpl_frame **  shift2_frame,
cpl_frame **  shift1_frame 
)
static

◆ xsh_plist_set_spat_accuracy()

static cpl_error_code xsh_plist_set_spat_accuracy ( cpl_propertylist *  header,
const double  srms,
const double  serr,
const double  sys_err 
)
static

◆ xsh_plist_set_wave_accuracy()

static cpl_error_code xsh_plist_set_wave_accuracy ( cpl_propertylist *  header,
const double  wrms,
const double  werr,
const double  sys_err 
)
static

◆ xsh_respon_slit_nod_get_calibs()

cpl_error_code xsh_respon_slit_nod_get_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  bpmap,
cpl_frame **  master_bias,
cpl_frame **  master_flat,
cpl_frame **  order_tab_edges,
cpl_frame **  wave_tab,
cpl_frame **  model_config_frame,
cpl_frame **  wavemap,
cpl_frame **  slitmap,
cpl_frame **  disp_tab_frame,
cpl_frame **  spectral_format,
cpl_frame **  skymask_frame,
cpl_frame **  response_ord_frame,
cpl_frame **  frm_atmext,
int  do_computemap,
int  use_skymask,
int  pscan,
const char *  rec_prefix,
const char *  recipe_id 
)

◆ xsh_scired_get_proper_maps()

cpl_error_code xsh_scired_get_proper_maps ( cpl_frameset *  raws,
cpl_frameset *  calib,
cpl_frame *  order_tab_edges,
cpl_frame *  master_flat,
cpl_frame *  model_config_frame,
cpl_frame *  disp_tab,
xsh_instrument instrument,
const int  do_computemap,
const char *  rec_prefix,
cpl_frame **  wavemap,
cpl_frame **  slitmap 
)

◆ xsh_scired_nod_get_parameters()

cpl_error_code xsh_scired_nod_get_parameters ( cpl_parameterlist *  parameters,
xsh_instrument instrument,
xsh_remove_crh_single_param **  crh_single_par,
xsh_rectify_param **  rectify_par,
xsh_extract_param **  extract_par,
xsh_combine_nod_param **  combine_nod_par,
xsh_slit_limit_param **  slit_limit_par,
xsh_localize_obj_param **  loc_obj_par,
int *  rectify_fast,
int *  pscan,
int *  generate_sdp_format,
const char *  rec_id 
)

◆ xsh_scired_nod_params_monitor()

static cpl_error_code xsh_scired_nod_params_monitor ( xsh_rectify_param rectify_par,
xsh_localize_obj_param loc_obj_par 
)
static

monitor param values

Parameters
rectify_parrectify param structure
loc_obj_parlocalization object param

Definition at line 1458 of file xsh_utils_scired_slit.c.

References xsh_localize_obj_param::loc_chunk_nb, xsh_localize_obj_param::nod_step, xsh_rectify_param::rectif_bin_lambda, xsh_rectify_param::rectif_bin_space, xsh_rectify_param::rectif_radius, and xsh_msg_dbg_low.

Referenced by xsh_scired_nod_get_parameters().

◆ xsh_scired_slit_nod_accurate()

cpl_frameset * xsh_scired_slit_nod_accurate ( cpl_frameset *  nod_set,
cpl_frame *  spectral_format,
cpl_frame *  master_flat,
cpl_frame *  order_tab_edges,
cpl_frame *  wave_tab,
cpl_frame *  model_config_frame,
cpl_frame *  disp_tab_frame,
cpl_frame *  wavemap,
cpl_frame *  skymask_frame,
xsh_instrument instrument,
xsh_remove_crh_single_param crh_single_par,
xsh_rectify_param rectify_par,
xsh_localize_obj_param loc_obj_par,
const char *  throw_name,
const int  do_flatfield,
const char *  rec_prefix 
)

◆ xsh_scired_slit_nod_fast()

cpl_frameset * xsh_scired_slit_nod_fast ( cpl_frameset *  nod_set,
cpl_frame *  spectral_format,
cpl_frame *  master_flat,
cpl_frame *  order_tab_edges,
cpl_frame *  wave_tab,
cpl_frame *  model_config_frame,
cpl_frame *  disp_tab_frame,
cpl_frame *  wavemap,
xsh_instrument instrument,
xsh_remove_crh_single_param crh_single_par,
xsh_rectify_param rectify_par,
const int  do_flatfield,
const int  corr_sky,
const int  compute_eff,
const char *  rec_prefix,
cpl_frameset **  comb_eff_set 
)

◆ xsh_scired_slit_nod_get_calibs()

cpl_error_code xsh_scired_slit_nod_get_calibs ( cpl_frameset *  raws,
cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  bpmap,
cpl_frame **  master_bias,
cpl_frame **  master_flat,
cpl_frame **  order_tab_edges,
cpl_frame **  wave_tab,
cpl_frame **  model_config_frame,
cpl_frame **  wavemap,
cpl_frame **  slitmap,
cpl_frame **  disp_tab_frame,
cpl_frame **  spectral_format,
cpl_frame **  skymask_frame,
cpl_frame **  response_ord_frame,
cpl_frame **  frm_atmext,
int  do_computemap,
int  use_skymask,
int  pscan,
const char *  rec_prefix,
const char *  recipe_id 
)

◆ xsh_scired_util_spectra_flux_calibrate()

cpl_error_code xsh_scired_util_spectra_flux_calibrate ( cpl_frame *  res2D,
cpl_frame *  res1D,
cpl_frame *  response,
cpl_frame *  atmext,
xsh_instrument inst,
const char *  prefix,
cpl_frame **  fluxcal_2D,
cpl_frame **  fluxcal_1D 
)

◆ xsh_slit_offset_get_calibs()

cpl_error_code xsh_slit_offset_get_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  bpmap,
cpl_frame **  mbias,
cpl_frame **  mdark,
cpl_frame **  otab_edges,
cpl_frame **  model_cfg,
cpl_frame **  wave_tab,
cpl_frame **  mflat,
cpl_frame **  wmap,
cpl_frame **  smap,
cpl_frame **  spectral_format,
const char *  rec_id 
)

◆ xsh_slit_offset_get_params()

cpl_error_code xsh_slit_offset_get_params ( cpl_parameterlist *  parameters,
const char *  rec_id,
xsh_localize_obj_param **  loc_obj_par,
xsh_rectify_param **  rectify_par,
xsh_remove_crh_single_param **  crh_single_par,
xsh_extract_param **  extract_par,
xsh_combine_nod_param **  combine_nod_param,
int *  do_flatfield,
int *  gen_sky,
int *  generate_sdp_format 
)

◆ xsh_slit_stare_correct_crh_and_sky()

cpl_error_code xsh_slit_stare_correct_crh_and_sky ( xsh_localize_obj_param loc_obj_par,
xsh_remove_crh_single_param crh_single_par,
xsh_rectify_param rectify_par,
int  do_sub_sky,
const char *  rec_prefix,
cpl_frame *  rmbkg,
cpl_frame *  order_tab_edges,
cpl_frame *  slitmap,
cpl_frame *  wavemap,
cpl_frame *  sky_map,
cpl_frame *  model_config,
cpl_frame *  single_frame_sky_sub_tab,
xsh_instrument instrument,
int  sub_sky_nbkpts1,
xsh_subtract_sky_single_param sky_par,
cpl_frame *  ref_sky_list,
cpl_frame *  sky_orders_chunks,
cpl_frame **  sky,
cpl_frame **  sky_eso,
cpl_frame **  sky_ima,
cpl_frame *  wave_tab,
cpl_frame *  disp_tab,
cpl_frame *  spectral_format,
int  nb_raw_frames,
cpl_frame **  loc_table,
cpl_frame **  clean,
cpl_frame **  clean_obj,
const int  clean_tmp 
)

correct CRH and sky lines (1st iteration)

Parameters
[in]loc_obj_parparameters to localise the object
[in]crh_single_parparameters to do CRH rejection TO BE REMOVED
[in]rectify_parparameters to do order rectification
[in]do_sub_skyis sky subtraction to be done? 1/0: yes/no
[in]rec_prefixrecipe id
[in]rmbkginput frame (inter-order background subtracted)
[in]order_tab_edgesorder edges table
[in]slitmapslitmap frame
[in]wavemapwavemap frame
[in]model_configmodel configuration frame
[in]single_frame_sky_sub_tabreference frame with sky line positions
[in]instrumentstructure with information on the instrument (arm)
[in]sub_sky_nbkpts1number of sky subtraction points (1st iteration)
[in]sky_parsky subtraction parameters
[out]skyoutput sky frame (DRL format)
[out]sky_esooutput sky frame (ESO format)
[out]sky_imaoutput sky image used for QC (NEEDED??)
[in]wave_tabwavelength table (used during order rectification)
[in]disp_tabwavelength table (used during rectif to compute Jacobian)
[in]spectral_formatinput spectral format table (used during rectification)
[in]nb_raw_framesnumber of input raw frames (used to make a check)
[in]loc_tablecomputed object localisation table
[out]cleansky subtracted frame (after 1st iteration)
[out]clean_objinput object frame (cleaned by CRH. Now same as rmbkg. NOT NEEDED)
[out]clean_tmpSwitch to erase temporary products

< Output of xsh_subtract_sky_single

< Output of xsh_rectify

Definition at line 2099 of file xsh_utils_scired_slit.c.

References check, instrument, LOC_MANUAL_METHOD, xsh_localize_obj_param::method, xsh_add_sky_model(), xsh_add_temporary_file(), xsh_check_subtract_sky_single(), xsh_frame_image_save(), xsh_free_frame(), xsh_instrument_arm_tostring(), xsh_localize_obj(), xsh_msg, XSH_ORDER2D, and xsh_rectify().

Referenced by xsh_absorp(), xsh_respon_slit_stare(), and xsh_scired_slit_stare().

◆ xsh_slit_stare_get_calibs()

cpl_error_code xsh_slit_stare_get_calibs ( cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  spectralformat,
cpl_frame **  mbias,
cpl_frame **  mdark,
cpl_frame **  mflat,
cpl_frame **  otab_edges,
cpl_frame **  model_cfg,
cpl_frame **  wave_tab,
cpl_frame **  sky_list,
cpl_frame **  sky_orders_chunks,
cpl_frame **  qc_sky,
cpl_frame **  bpmap,
cpl_frame **  sframe_sky_sub_tab,
cpl_frame **  wmap,
cpl_frame **  smap,
const char *  rec_id,
int *  recipe_use_model,
int  pscan 
)

◆ xsh_slit_stare_get_calibs2()

cpl_error_code xsh_slit_stare_get_calibs2 ( cpl_frameset *  calib,
xsh_instrument instrument,
cpl_frame **  spectralformat,
cpl_frame **  mbias,
cpl_frame **  mdark,
cpl_frame **  mflat,
cpl_frame **  otab_edges,
cpl_frame **  model_cfg,
cpl_frame **  wave_tab,
cpl_frame **  sky_list,
cpl_frame **  sky_orders_chunks,
cpl_frame **  qc_sky,
cpl_frame **  bpmap,
cpl_frame **  sframe_sky_sub_tab,
cpl_frame **  wmap,
cpl_frame **  smap,
const char *  rec_id,
int *  recipe_use_model,
int  pscan 
)

◆ xsh_slit_stare_get_maps()

cpl_error_code xsh_slit_stare_get_maps ( cpl_frameset *  calib,
int  do_compute_map,
int  recipe_use_model,
const char *  rec_prefix,
xsh_instrument instrument,
cpl_frame *  model_config_frame,
cpl_frame *  crhm_frame,
cpl_frame *  disp_tab_frame,
cpl_frame *  order_tab_edges,
cpl_frame **  wavemap_frame,
cpl_frame **  slitmap_frame 
)

◆ xsh_slit_stare_get_params()

cpl_error_code xsh_slit_stare_get_params ( cpl_parameterlist *  parameters,
const char *  rec_id,
int *  pre_overscan_corr,
xsh_background_param **  backg_par,
xsh_localize_obj_param **  loc_obj_par,
xsh_rectify_param **  rectify_par,
xsh_remove_crh_single_param **  crh_single_par,
int *  sub_sky_nbkpts1,
int *  do_flatfield,
int *  sub_sky_nbkpts2,
xsh_subtract_sky_single_param **  sky_par,
int *  do_optextract,
xsh_opt_extract_param **  opt_extract_par,
int *  generate_sdp_format 
)

◆ xsh_stare_params_bin_scale()

cpl_error_code xsh_stare_params_bin_scale ( cpl_frameset *  raws,
xsh_background_param backg,
xsh_opt_extract_param opt_extract_par,
int *  sub_sky_nbkpts1,
int *  sub_sky_nbkpts2 
)

Corrects parameters for binning.

Parameters
rawsthe frames list
backgparameters controlling inter-order background correction
opt_extract_parparameters controlling optimal extraction
sub_sky_nbkpts1sky background sampling points 1st iteration
sub_sky_nbkpts2sky background sampling points 2nd iteration

In case of failure the cpl_error_code is set.

Definition at line 119 of file xsh_utils_scired_slit.c.

References binx, biny, xsh_opt_extract_param::box_hsize, check, xsh_background_param::radius_x, xsh_background_param::radius_y, xsh_free_propertylist(), xsh_pfits_get_binx(), and xsh_pfits_get_biny().

Referenced by xsh_respon_slit_stare(), and xsh_scired_slit_stare().