X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions
Combine rectified NOD Frames

Macros

#define combine_nod_old   0
 

Functions

void xsh_compute_slit_index (float slit_min, float slit_step, xsh_rec_list **from, int *slit_index_tab, int size)
 
static cpl_imagelist * xsh_compute_scale_factors_by_object (cpl_imagelist *scaled, cpl_image *scale, const int nlambda, const int nslit, const int no, const double smin, const double smax)
 
static cpl_imagelist * xsh_compute_scale_factors_by_slice (cpl_imagelist *scaled, cpl_image *scale, const int nlambda, const int nslit, const int no)
 
static cpl_imagelist * xsh_compute_scale_factors_pix_pix (cpl_imagelist *scaled, cpl_image *scale, const int nlambda, const int nslit, const int no)
 
static cpl_table * xsh_qual2tab_frames (int nframes, const int code, int *slit_index, xsh_rec_list *dest, xsh_rec_list **from, const int no)
 
static cpl_imagelist * xsh_find_image_scale_factors (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, int scale_method)
 
static cpl_error_code xsh_rec_list_qc (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, const int nf)
 
void xsh_rec_list_add (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp)
 
cpl_error_code xsh_correct_scale_w (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, cpl_imagelist *scale_factors, const int scale_method, const cpl_table *bp)
 
cpl_error_code xsh_correct_scale (xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp, cpl_imagelist *scale_factors, const int scale_method)
 
cpl_frame * xsh_combine_nod (cpl_frameset *nod_frames, xsh_combine_nod_param *nod_par, const char *tag, xsh_instrument *instrument, cpl_frame **res_frame_ext, const int scale_nod)
 

Detailed Description

Function ...

Macro Definition Documentation

◆ combine_nod_old

#define combine_nod_old   0

Definition at line 62 of file xsh_combine_nod.c.

Function Documentation

◆ xsh_combine_nod()

cpl_frame * xsh_combine_nod ( cpl_frameset *  nod_frames,
xsh_combine_nod_param nod_par,
const char *  tag,
xsh_instrument instrument,
cpl_frame **  res_frame_ext,
const int  scale_nod 
)

Adds (combine) all the shifted rectified frames (nodding). Combination is made for each order.

Parameters
nod_framesFrameset of the shifted rectified frames
nod_parParameters of combination
tagpro catg of combined frame
instrumentInstrument description
res_frame_extcombined frame in ESO format
Returns
The combined frame, inf/upp suggested values for extraction

Definition at line 2010 of file xsh_combine_nod.c.

References check, COMBINE_METHOD_PRINT, xsh_instrument::decode_bp, xsh_rec_list::header, instrument, lambda_step, xsh_combine_nod_param::method, xsh_rec_list::size, xsh_rec_list::slit_max, xsh_rec_list::slit_min, slit_step, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_compute_slit_index(), xsh_correct_scale(), xsh_correct_scale_w(), xsh_find_image_scale_factors(), XSH_FREE, xsh_free_frame(), xsh_free_imagelist(), xsh_msg, xsh_pfits_get_qc_ncrh(), xsh_pfits_get_rectify_bin_lambda(), xsh_pfits_get_rectify_bin_space(), xsh_pfits_get_rectify_lambda_max(), xsh_pfits_get_rectify_lambda_min(), xsh_pfits_set_extract_slit_max(), xsh_pfits_set_extract_slit_min(), xsh_pfits_set_pcatg(), xsh_pfits_set_qc_ncrh_mean(), xsh_pfits_set_qc_ncrh_tot(), xsh_pfits_set_rectify_bin_lambda(), xsh_pfits_set_rectify_bin_space(), xsh_pfits_set_rectify_lambda_max(), xsh_pfits_set_rectify_lambda_min(), xsh_pfits_set_rectify_space_max(), xsh_pfits_set_rectify_space_min(), xsh_print_rec_status(), XSH_QC_CRH_NUMBER, xsh_qual2tab_frames(), xsh_rec_list_add(), xsh_rec_list_create_with_size(), xsh_rec_list_free(), xsh_rec_list_get_header(), xsh_rec_list_get_lambda(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_nslit(), xsh_rec_list_get_order(), xsh_rec_list_get_slit(), xsh_rec_list_load(), xsh_rec_list_qc(), xsh_rec_list_save(), xsh_rec_list_save2(), xsh_rec_list_set_data_size(), and xsh_stringcat_any().

Referenced by main(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_scired_slit_nod(), and xsh_scired_slit_offset().

◆ xsh_compute_scale_factors_by_object()

static cpl_imagelist * xsh_compute_scale_factors_by_object ( cpl_imagelist *  scaled,
cpl_image *  scale,
const int  nlambda,
const int  nslit,
const int  no,
const double  smin,
const double  smax 
)
static

Definition at line 463 of file xsh_combine_nod.c.

Referenced by xsh_find_image_scale_factors().

◆ xsh_compute_scale_factors_by_slice()

static cpl_imagelist * xsh_compute_scale_factors_by_slice ( cpl_imagelist *  scaled,
cpl_image *  scale,
const int  nlambda,
const int  nslit,
const int  no 
)
static

Definition at line 517 of file xsh_combine_nod.c.

Referenced by xsh_find_image_scale_factors().

◆ xsh_compute_scale_factors_pix_pix()

static cpl_imagelist * xsh_compute_scale_factors_pix_pix ( cpl_imagelist *  scaled,
cpl_image *  scale,
const int  nlambda,
const int  nslit,
const int  no 
)
static

Definition at line 567 of file xsh_combine_nod.c.

References check, and xsh_print_rec_status().

Referenced by xsh_find_image_scale_factors().

◆ xsh_compute_slit_index()

void xsh_compute_slit_index ( float  slit_min,
float  slit_step,
xsh_rec_list **  from,
int *  slit_index_tab,
int  size 
)

◆ xsh_correct_scale()

cpl_error_code xsh_correct_scale ( xsh_rec_list dest,
xsh_rec_list **  from,
int *  slit_index,
int  nb_frames,
int  no,
int  method,
const int  decode_bp,
cpl_imagelist *  scale_factors,
const int  scale_method 
)

◆ xsh_correct_scale_w()

cpl_error_code xsh_correct_scale_w ( xsh_rec_list dest,
xsh_rec_list **  from,
int *  slit_index,
int  nb_frames,
int  no,
int  method,
const int  decode_bp,
cpl_imagelist *  scale_factors,
const int  scale_method,
const cpl_table *  bp 
)

◆ xsh_find_image_scale_factors()

static cpl_imagelist * xsh_find_image_scale_factors ( xsh_rec_list dest,
xsh_rec_list **  from,
int *  slit_index,
int  nb_frames,
int  no,
int  method,
const int  decode_bp,
int  scale_method 
)
static

◆ xsh_qual2tab_frames()

static cpl_table * xsh_qual2tab_frames ( int  nframes,
const int  code,
int *  slit_index,
xsh_rec_list dest,
xsh_rec_list **  from,
const int  no 
)
static

◆ xsh_rec_list_add()

void xsh_rec_list_add ( xsh_rec_list dest,
xsh_rec_list **  from,
int *  slit_index,
int  nb_frames,
int  no,
int  method,
const int  decode_bp 
)

◆ xsh_rec_list_qc()

static cpl_error_code xsh_rec_list_qc ( xsh_rec_list dest,
xsh_rec_list **  from,
int *  slit_index,
int  nb_frames,
int  no,
int  method,
const int  decode_bp,
const int  nf 
)
static