/home/amodigli/releases/xsh/2.1.1/xsh.30433/xshp/xsh/xsh_parameters.c File Reference

#include <xsh_parameters.h>
#include <xsh_model_arm_constants.h>
#include <xsh_badpixelmap.h>
#include <xsh_msg.h>
#include <xsh_error.h>
#include <xsh_drl.h>
#include <strings.h>

Go to the source code of this file.

Data Structures

struct  XSH_KERNEL_TYPE

Functions

void xsh_parameters_new_int (cpl_parameterlist *list, const char *recipe_id, const char *name, int value, const char *comment)
void xsh_parameters_new_boolean (cpl_parameterlist *list, const char *recipe_id, const char *name, int value, const char *comment)
static void xsh_parameters_new_string (cpl_parameterlist *list, const char *recipe_id, const char *name, const char *value, const char *comment)
void xsh_parameters_new_double (cpl_parameterlist *list, const char *recipe_id, const char *name, double value, const char *comment)
static void xsh_parameters_new_bool (cpl_parameterlist *list, const char *recipe_id, const char *name, bool value, const char *comment)
static void xsh_parameters_new_float (cpl_parameterlist *list, const char *recipe_id, const char *name, float value, const char *comment)
static void xsh_parameters_new_range_int (cpl_parameterlist *list, const char *recipe_id, const char *name, int def, int min, int max, const char *comment)
static void xsh_parameters_new_range_double (cpl_parameterlist *list, const char *recipe_id, const char *name, double def, double min, double max, const char *comment)
char * xsh_parameters_get_string (const cpl_parameterlist *list, const char *recipe_id, const char *name)
int xsh_parameters_get_boolean (const cpl_parameterlist *list, const char *recipe_id, const char *name)
int xsh_parameters_get_int (cpl_parameterlist *list, const char *recipe_id, const char *name)
double xsh_parameters_get_double (cpl_parameterlist *list, const char *recipe_id, const char *name)



static const XSH_KERNEL_TYPE xsh_ker_type []
cpl_parameter * xsh_parameters_find (cpl_parameterlist *list, const char *recipe_id, const char *name)
 find a parameter
void xsh_parameters_pre_overscan (const char *recipe_id, cpl_parameterlist *plist)
void xsh_parameters_generic (const char *recipe_id, cpl_parameterlist *plist)
cpl_error_code xsh_parameters_decode_bp (const char *recipe_id, cpl_parameterlist *plist, const int ival)
cpl_error_code xsh_parameters_decode_bp_set (const char *rec_id, cpl_parameterlist *parameters, const int ival)
int xsh_parameters_get_temporary (const char *recipe_id, const cpl_parameterlist *list)
int xsh_parameters_debug_level_get (const char *recipe_id, const cpl_parameterlist *list)
char * xsh_parameters_test_mode_get (const char *recipe_id, const cpl_parameterlist *list)
int xsh_parameters_time_stamp_get (const char *recipe_id, const cpl_parameterlist *list)
void xsh_parameters_clipping_crh_create (const char *recipe_id, cpl_parameterlist *list, xsh_clipping_param p)
 create the crh clipping parameters in a parameters list
void xsh_parameters_hot_cold_pix_create (const char *recipe_id, cpl_parameterlist *list, xsh_hot_cold_pix_param p)
 create the crh clipping parameters in a parameters list
void xsh_parameters_struct_create (const char *recipe_id, cpl_parameterlist *list, xsh_struct_param p)
 create the structX/Y region definition parameters in a parameters list
void xsh_parameters_ref1_create (const char *recipe_id, cpl_parameterlist *list, xsh_ref_param p)
 create the reference region definition parameters in a parameters list
void xsh_parameters_ref2_create (const char *recipe_id, cpl_parameterlist *list, xsh_ref_param p)
 create the reference region definition parameters in a parameters list
void xsh_parameters_ron_dark_create (const char *recipe_id, cpl_parameterlist *list, xsh_ron_dark_param p)
 create the RON determination parameters in a parameters list
void xsh_parameters_stack_create (const char *recipe_id, cpl_parameterlist *list, xsh_stack_param sp)
 create the RON determination parameters in a parameters list
void xsh_parameters_ron_create (const char *recipe_id, cpl_parameterlist *list, xsh_ron_param p)
 create the RON determination parameters in a parameters list
void xsh_parameters_fpn_create (const char *recipe_id, cpl_parameterlist *list, xsh_fpn_param p)
 create the FPN parameters in a parameters list
xsh_clipping_paramxsh_parameters_clipping_crh_get (const char *recipe_id, cpl_parameterlist *list)
 get the crh clipping parameters in a parameters list
void xsh_parameters_clipping_noise_create (const char *recipe_id, cpl_parameterlist *list, xsh_clipping_param noise_param)
 create the crh noise clipping parameters in a parameters list
xsh_clipping_paramxsh_parameters_clipping_noise_get (const char *recipe_id, cpl_parameterlist *list)
 get the noise clipping parameters in a parameters list
void xsh_parameters_detect_order_create (const char *recipe_id, cpl_parameterlist *list)
 Create the detect order parameters in a parameters list.
xsh_detect_order_paramxsh_parameters_detect_order_get (const char *recipe_id, cpl_parameterlist *list, cpl_parameterlist *drs)
 Get the detect orders parameters in a parameters list.
void xsh_parameters_d2_detect_order_create (const char *recipe_id, cpl_parameterlist *list)
 Create the d2 detect order parameters in a parameters list.
xsh_d2_detect_order_paramxsh_parameters_d2_detect_order_get (const char *recipe_id, cpl_parameterlist *list)
 Get the d2 detect orders parameters in a parameters list.
void xsh_parameters_background_create (const char *recipe_id, cpl_parameterlist *list)
 create the subtract background parameters in a parameters list
xsh_background_paramxsh_parameters_background_get (const char *recipe_id, cpl_parameterlist *list)
 get the background parameters in a parameters list
void xsh_parameters_detect_arclines_create (const char *recipe_id, cpl_parameterlist *list, xsh_detect_arclines_param p)
 create the detect arclines parameters in a parameters list
xsh_stack_paramxsh_stack_frames_get (const char *recipe_id, cpl_parameterlist *list)
 get the detect arclines parameters in a parameters list
xsh_detect_arclines_paramxsh_parameters_detect_arclines_get (const char *recipe_id, cpl_parameterlist *list)
 get the detect arclines parameters in a parameters list
void xsh_parameters_clipping_detect_arclines_create (const char *recipe_id, cpl_parameterlist *list, xsh_clipping_param p)
 Create the arclines clipping parameters in a parameters list.
xsh_clipping_paramxsh_parameters_clipping_detect_arclines_get (const char *recipe_id, cpl_parameterlist *list)
 Get the arclines clipping parameters in a parameters list.
void xsh_parameters_clipping_dcn_create (const char *recipe_id, cpl_parameterlist *list)
 create the DetectContiNuum clipping parameters in a parameters list
xsh_clipping_paramxsh_parameters_clipping_dcn_get (const char *recipe_id, cpl_parameterlist *list)
 Get the detectcontinuum clipping parameters in a parameters list.
void xsh_parameters_detect_continuum_create (const char *recipe_id, cpl_parameterlist *list, xsh_detect_continuum_param par)
 create the detect continuum parameter "window" in a parameters list
xsh_detect_continuum_paramxsh_parameters_detect_continuum_get (const char *recipe_id, cpl_parameterlist *list)
 Get the detect continuum parameters in a parameters list.
void xsh_parameters_clipping_tilt_create (const char *recipe_id, cpl_parameterlist *list)
 create the xsh_wavecal (function follow_arclines) clipping parameters in a parameters list
xsh_clipping_paramxsh_parameters_clipping_tilt_get (const char *recipe_id, cpl_parameterlist *list)
 get the xsh_wavecal (follow_arclines) clipping parameters in a parameters list
void xsh_parameters_clipping_specres_create (const char *recipe_id, cpl_parameterlist *list)
 create the xsh_wavecal (function follow_arclines) clipping parameters in a parameters list
xsh_clipping_paramxsh_parameters_clipping_specres_get (const char *recipe_id, cpl_parameterlist *list)
 get the xsh_wavecal (follow_arclines) clipping parameters in a parameters list
void xsh_parameters_wavecal_range_create (const char *recipe_id, cpl_parameterlist *list)
int xsh_parameters_wavecal_range_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_wavecal_margin_create (const char *recipe_id, cpl_parameterlist *list)
int xsh_parameters_wavecal_margin_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_wavecal_s_n_create (const char *recipe_id, cpl_parameterlist *list)
double xsh_parameters_wavecal_s_n_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_use_model_create (const char *recipe_id, cpl_parameterlist *plist)
int xsh_parameters_use_model_get (const char *recipe_id, const cpl_parameterlist *plist)
void xsh_parameters_remove_crh_single_create (const char *recipe_id, cpl_parameterlist *plist, xsh_remove_crh_single_param p)
xsh_remove_crh_single_paramxsh_parameters_remove_crh_single_get (const char *recipe_id, cpl_parameterlist *list)
static void set_rectify_kernel_type (xsh_rectify_param *recpar)
void xsh_parameters_rectify_create (const char *recipe_id, cpl_parameterlist *plist, xsh_rectify_param p)
int xsh_parameters_rectify_fast_get (const char *recipe_id, cpl_parameterlist *list)
xsh_rectify_paramxsh_parameters_rectify_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_compute_response_create (const char *recipe_id, cpl_parameterlist *plist, xsh_compute_response_param p)
xsh_compute_response_paramxsh_parameters_compute_response_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_localize_obj_create (const char *recipe_id, cpl_parameterlist *plist, xsh_localize_obj_param p)
xsh_localize_obj_paramxsh_parameters_localize_obj_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_localize_ifu_create (const char *recipe_id, cpl_parameterlist *plist, xsh_localize_ifu_param p)
xsh_localize_ifu_paramxsh_parameters_localize_ifu_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_extract_create (const char *recipe_id, cpl_parameterlist *plist, xsh_extract_param p, enum extract_method method)
void xsh_parameters_interpolate_bp_create (const char *recipe_id, cpl_parameterlist *plist, xsh_interpolate_bp_param p)
xsh_extract_paramxsh_parameters_extract_get (const char *recipe_id, cpl_parameterlist *list)
xsh_interpolate_bp_paramxsh_parameters_interpolate_bp_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_subtract_sky_single_create (const char *recipe_id, cpl_parameterlist *plist, xsh_subtract_sky_single_param p)
xsh_subtract_sky_single_paramxsh_parameters_subtract_sky_single_get (const char *recipe_id, cpl_parameterlist *list)
int xsh_parameters_subtract_sky_single_get_true (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_dosky_domap_get (const char *recipe_id, cpl_parameterlist *list, cpl_frame *wavemap_frame, cpl_frame *slitmap_frame, int *dosky, int *domap)
int xsh_parameters_subtract_sky_single_get_first (const char *recipe_id, cpl_parameterlist *list)
int xsh_parameters_subtract_sky_single_get_second (const char *recipe_id, cpl_parameterlist *list)
int xsh_parameters_subtract_sky_single_get_niter (const char *recipe_id, cpl_parameterlist *list)
double xsh_parameters_subtract_sky_single_get_kappa (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_merge_ord_create (const char *recipe_id, cpl_parameterlist *plist, int p)
xsh_merge_paramxsh_parameters_merge_ord_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_optimal_extract_create (const char *recipe_id, cpl_parameterlist *plist, int p)
double xsh_parameters_optimal_extract_get_kappa (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_dispersol_create (const char *recipe_id, cpl_parameterlist *list, xsh_dispersol_param p)
 Create the dispersol compute parameters in a parameters list.
xsh_dispersol_paramxsh_parameters_dispersol_get (const char *recipe_id, cpl_parameterlist *list)
 Get the dispersion solution compute parameters in a parameters list.
void xsh_parameters_combine_nod_create (const char *recipe_id, cpl_parameterlist *list, xsh_combine_nod_param p)
 create the crh clipping parameters in a parameters list
xsh_combine_nod_paramxsh_parameters_combine_nod_get (const char *recipe_id, cpl_parameterlist *list)
 get the combine nod parameters in a parameters list
void xsh_parameters_opt_extract_create (const char *recipe_id, cpl_parameterlist *list, xsh_opt_extract_param p)
 Create the optimal extraction parameters in a parameters list.
xsh_opt_extract_paramxsh_parameters_opt_extract_get (const char *recipe_id, cpl_parameterlist *list)
 Get the optimal extraction parameters in a parameters list.
void xsh_parameters_slit_limit_create (const char *recipe_id, cpl_parameterlist *list, xsh_slit_limit_param p)
xsh_slit_limit_paramxsh_parameters_slit_limit_get (const char *recipe_id, cpl_parameterlist *list)
void xsh_parameters_geom_ifu_mode_create (const char *recipe_id, cpl_parameterlist *list)
int xsh_parameters_geom_ifu_mode_get (const char *recipe_id, cpl_parameterlist *list)
cpl_parameterlist * xsh_parameters_create_from_drs_table (const cpl_table *tab)
static cpl_error_code xsh_params_overscan_nir_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_parameter_check_int (cpl_parameterlist *parameters, const char *rec_id, const char *pname, const int min, const int max, const int skip_val, const char *spec)
static cpl_error_code xsh_parameter_check_double (cpl_parameterlist *parameters, const char *rec_id, const char *pname, const double min, const double max, const double skip_val, const char *spec)
static cpl_error_code xsh_params_crhclip_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_noise_clip_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_crhsingle_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_optextract_check (cpl_parameterlist *parameters, const char *rec_id, const int sizey)
static cpl_error_code xsh_params_follow_arclines_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_extract_mask_size_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_tilt_clip_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_spec_res_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_background_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey, const int norder)
static cpl_error_code xsh_params_rectify_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_localize_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_sky_bspline_check (cpl_parameterlist *parameters, const char *rec_id, const int biny)
static cpl_error_code xsh_params_model_anneal_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_overscan_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_detect_arclines_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_detect_continuum_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_detectorder_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey, const int norders)
static cpl_error_code xsh_params_dispersol_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_compute_fpn_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey)
static cpl_error_code xsh_params_stacking_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_stack_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_compute_ron_region1_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey)
static cpl_error_code xsh_params_compute_ron_region2_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey)
static cpl_error_code xsh_params_compute_ron_mbias_set3_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey)
static cpl_error_code xsh_params_compute_ron_mdark_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey)
static cpl_error_code xsh_params_compute_ron_check (cpl_parameterlist *parameters, const char *rec_id, const int sizex, const int sizey)
static cpl_error_code xsh_params_localizeifu_check (cpl_parameterlist *parameters, const char *rec_id)
static cpl_error_code xsh_params_correctifu_check (cpl_parameterlist *parameters, const char *rec_id)
cpl_error_code xsh_recipe_params_check (cpl_parameterlist *parameters, xsh_instrument *instrument, const char *rec_id)
cpl_error_code xsh_recipe_params_drs_check (cpl_parameterlist *parameters, xsh_instrument *instrument, const char *rec_id)

Function Documentation

static void set_rectify_kernel_type ( xsh_rectify_param recpar  )  [static]
static cpl_error_code xsh_parameter_check_double ( cpl_parameterlist *  parameters,
const char *  rec_id,
const char *  pname,
const double  min,
const double  max,
const double  skip_val,
const char *  spec 
) [static]
static cpl_error_code xsh_parameter_check_int ( cpl_parameterlist *  parameters,
const char *  rec_id,
const char *  pname,
const int  min,
const int  max,
const int  skip_val,
const char *  spec 
) [static]
void xsh_parameters_background_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

create the subtract background parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update

Definition at line 1159 of file xsh_parameters.c.

References assure, check, XSH_ASSURE_NOT_NULL, xsh_parameters_new_range_double(), and xsh_parameters_new_range_int().

Referenced by xsh_absorp_create(), xsh_geom_ifu_create(), xsh_mflat_create(), xsh_respon_slit_stare_create(), xsh_scired_ifu_offset_create(), xsh_scired_ifu_stare_create(), and xsh_scired_slit_stare_create().

xsh_background_param* xsh_parameters_background_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the background parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of background parameters

Definition at line 1213 of file xsh_parameters.c.

References check, xsh_background_param::debug, xsh_background_param::edges_margin, xsh_background_param::poly_deg_x, xsh_background_param::poly_deg_y, xsh_background_param::poly_kappa, XSH_ASSURE_NOT_NULL, XSH_FREE, XSH_MALLOC, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_geom_ifu(), xsh_mflat(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), and xsh_slit_stare_get_params().

void xsh_parameters_clipping_crh_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_clipping_param  p 
)

create the crh clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p CRH clipping parameters structure

Definition at line 506 of file xsh_parameters.c.

References assure, check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by main(), xsh_absorp_create(), xsh_geom_ifu_create(), xsh_mdark_create(), xsh_scired_ifu_offset_create(), and xsh_scired_ifu_stare_create().

xsh_clipping_param* xsh_parameters_clipping_crh_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the crh clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of clipping parameters

Definition at line 824 of file xsh_parameters.c.

References assure, check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_geom_ifu(), and xsh_mdark().

void xsh_parameters_clipping_dcn_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

create the DetectContiNuum clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update

Definition at line 1527 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, xsh_parameters_new_double(), xsh_parameters_new_int(), and xsh_parameters_new_range_double().

Referenced by xsh_orderpos_create().

xsh_clipping_param* xsh_parameters_clipping_dcn_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Get the detectcontinuum clipping parameters in a parameters list.

Parameters:
[in] recipe_id The current recipe in use
[in] list The parameters list to search
Returns:
A NEWLY allocated structure of clipping parameters

Definition at line 1571 of file xsh_parameters.c.

References check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::res_max, xsh_clipping_param::sigma, XSH_ASSURE_NOT_NULL, XSH_MALLOC, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_orderpos().

void xsh_parameters_clipping_detect_arclines_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_clipping_param  p 
)

Create the arclines clipping parameters in a parameters list.

Parameters:
[in] recipe_id The current recipe in use
[in] list The parameters list to update
[in] p Clipping parameters structure

Definition at line 1453 of file xsh_parameters.c.

References check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, XSH_ASSURE_NOT_NULL, xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by xsh_2dmap_create(), xsh_flexcomp_create(), and xsh_predict_create().

xsh_clipping_param* xsh_parameters_clipping_detect_arclines_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Get the arclines clipping parameters in a parameters list.

Parameters:
[in] recipe_id The current recipe in use
[in] list The parameters list to search
Returns:
A NEWLY allocated structure of clipping parameters

Definition at line 1492 of file xsh_parameters.c.

References check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, XSH_ASSURE_NOT_NULL, XSH_FREE, XSH_MALLOC, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_2dmap(), xsh_flexcomp(), and xsh_predict().

void xsh_parameters_clipping_noise_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_clipping_param  noise_param 
)

create the crh noise clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
noise_param structure describing noise params

Definition at line 867 of file xsh_parameters.c.

References assure, check, xsh_clipping_param::diff, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by xsh_mdark_create().

xsh_clipping_param* xsh_parameters_clipping_noise_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the noise clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of clipping parameters

Definition at line 904 of file xsh_parameters.c.

References assure, check, xsh_clipping_param::diff, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_mdark().

void xsh_parameters_clipping_specres_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

create the xsh_wavecal (function follow_arclines) clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update

Definition at line 1818 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by xsh_wavecal_create().

xsh_clipping_param* xsh_parameters_clipping_specres_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the xsh_wavecal (follow_arclines) clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of clipping parameters

Definition at line 1850 of file xsh_parameters.c.

References assure, check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_wavecal_get_parameters().

void xsh_parameters_clipping_tilt_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

create the xsh_wavecal (function follow_arclines) clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update

Definition at line 1747 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by xsh_wavecal_create().

xsh_clipping_param* xsh_parameters_clipping_tilt_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the xsh_wavecal (follow_arclines) clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of clipping parameters

Definition at line 1779 of file xsh_parameters.c.

References assure, check, xsh_clipping_param::frac, xsh_clipping_param::niter, xsh_clipping_param::sigma, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_wavecal_get_parameters().

void xsh_parameters_combine_nod_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_combine_nod_param  p 
)

create the crh clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p combine nod parameters structure

Definition at line 3084 of file xsh_parameters.c.

References assure, check, COMBINE_METHOD_PRINT, xsh_combine_nod_param::method, xsh_combine_nod_param::throwname, and xsh_parameters_new_string().

Referenced by xsh_respon_slit_nod_create(), xsh_respon_slit_offset_create(), xsh_scired_slit_nod_create(), and xsh_scired_slit_offset_create().

xsh_combine_nod_param* xsh_parameters_combine_nod_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the combine nod parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of combine nod parameters

Definition at line 3130 of file xsh_parameters.c.

References assure, check, COMBINE_MEAN_METHOD, COMBINE_MEDIAN_METHOD, COMBINE_METHOD_PRINT, xsh_combine_nod_param::method, xsh_combine_nod_param::throwname, xsh_error_msg, and xsh_parameters_get_string().

Referenced by xsh_scired_nod_get_parameters(), and xsh_slit_offset_get_params().

void xsh_parameters_compute_response_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_compute_response_param  p 
)
xsh_compute_response_param* xsh_parameters_compute_response_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
cpl_parameterlist* xsh_parameters_create_from_drs_table ( const cpl_table *  tab  ) 
void xsh_parameters_d2_detect_order_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Create the d2 detect order parameters in a parameters list.

Parameters:
[in] recipe_id The current recipe in use
list The parameters list to update

Definition at line 1096 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_new_range_double().

Referenced by xsh_mflat_create().

xsh_d2_detect_order_param* xsh_parameters_d2_detect_order_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Get the d2 detect orders parameters in a parameters list.

Parameters:
recipe_id The current recipe in use
list The parameters list to search
Returns:
A NEWLY allocated structure of d2 detect orders parameters

Definition at line 1128 of file xsh_parameters.c.

References check, xsh_d2_detect_order_param::min_sn, XSH_ASSURE_NOT_NULL, XSH_FREE, XSH_MALLOC, and xsh_parameters_get_double().

Referenced by xsh_mflat().

int xsh_parameters_debug_level_get ( const char *  recipe_id,
const cpl_parameterlist *  list 
)
cpl_error_code xsh_parameters_decode_bp ( const char *  recipe_id,
cpl_parameterlist *  plist,
const int  ival 
)
cpl_error_code xsh_parameters_decode_bp_set ( const char *  rec_id,
cpl_parameterlist *  parameters,
const int  ival 
)

Definition at line 428 of file xsh_parameters.c.

References xsh_parameters_find().

void xsh_parameters_detect_arclines_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_detect_arclines_param  p 
)
xsh_detect_arclines_param* xsh_parameters_detect_arclines_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_detect_continuum_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_detect_continuum_param  par 
)

create the detect continuum parameter "window" in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
par the structure containing relevant params to be created

Definition at line 1608 of file xsh_parameters.c.

References check, xsh_detect_continuum_param::fit_threshold, xsh_detect_continuum_param::fit_window, xsh_detect_continuum_param::poly_degree, xsh_detect_continuum_param::poly_step, xsh_detect_continuum_param::running_window, xsh_detect_continuum_param::search_window, XSH_ASSURE_NOT_NULL, xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by xsh_orderpos_create().

xsh_detect_continuum_param* xsh_parameters_detect_continuum_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Get the detect continuum parameters in a parameters list.

Parameters:
recipe_id The current recipe in use
list The parameters list to search
Returns:
A NEWLY allocated structure of detect continuum parameters

Definition at line 1695 of file xsh_parameters.c.

References check, xsh_detect_continuum_param::fit_threshold, xsh_detect_continuum_param::fit_window, xsh_detect_continuum_param::poly_degree, xsh_detect_continuum_param::poly_step, xsh_detect_continuum_param::running_window, xsh_detect_continuum_param::search_window, XSH_ASSURE_NOT_NULL, XSH_FREE, XSH_MALLOC, xsh_parameters_get_double(), and xsh_parameters_get_int().

Referenced by xsh_orderpos().

void xsh_parameters_detect_order_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Create the detect order parameters in a parameters list.

Parameters:
[in] recipe_id The current recipe in use
list The parameters list to update

Definition at line 947 of file xsh_parameters.c.

References assure, check, XSH_ASSURE_NOT_NULL, xsh_parameters_new_boolean(), xsh_parameters_new_double(), and xsh_parameters_new_int().

Referenced by xsh_mflat_create().

xsh_detect_order_param* xsh_parameters_detect_order_get ( const char *  recipe_id,
cpl_parameterlist *  list,
cpl_parameterlist *  drs 
)
void xsh_parameters_dispersol_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_dispersol_param  p 
)

Create the dispersol compute parameters in a parameters list.

Parameters:
recipe_id The current recipe in use
list The parameters list to update
p The dispersol parameters structure

Definition at line 3018 of file xsh_parameters.c.

References check, xsh_dispersol_param::deg_x, xsh_dispersol_param::deg_y, XSH_ASSURE_NOT_NULL, and xsh_parameters_new_int().

Referenced by xsh_2dmap_create(), and xsh_flexcomp_create().

xsh_dispersol_param* xsh_parameters_dispersol_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Get the dispersion solution compute parameters in a parameters list.

Parameters:
recipe_id The current recipe in use
list The parameters list to search
Returns:
a NEWLY allocated structure of wavemap parameters

Definition at line 3051 of file xsh_parameters.c.

References check, xsh_dispersol_param::deg_x, xsh_dispersol_param::deg_y, XSH_ASSURE_NOT_NULL, XSH_FREE, XSH_MALLOC, and xsh_parameters_get_int().

Referenced by xsh_2dmap(), and xsh_flexcomp().

void xsh_parameters_dosky_domap_get ( const char *  recipe_id,
cpl_parameterlist *  list,
cpl_frame *  wavemap_frame,
cpl_frame *  slitmap_frame,
int *  dosky,
int *  domap 
)
void xsh_parameters_extract_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_extract_param  p,
enum extract_method  method 
)
xsh_extract_param* xsh_parameters_extract_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
cpl_parameter* xsh_parameters_find ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name 
)
void xsh_parameters_fpn_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_fpn_param  p 
)

create the FPN parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p Fixed Pattern Noise parameters structure

Definition at line 784 of file xsh_parameters.c.

References xsh_fpn_param::fpn_hsize, xsh_fpn_param::fpn_llx, xsh_fpn_param::fpn_lly, xsh_fpn_param::fpn_nsamples, xsh_fpn_param::fpn_urx, xsh_fpn_param::fpn_ury, and xsh_parameters_new_int().

Referenced by main(), xsh_mbias_create(), and xsh_mdark_create().

void xsh_parameters_generic ( const char *  recipe_id,
cpl_parameterlist *  plist 
)
void xsh_parameters_geom_ifu_mode_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 3338 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_new_boolean().

int xsh_parameters_geom_ifu_mode_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 3353 of file xsh_parameters.c.

References XSH_ASSURE_NOT_NULL, and xsh_parameters_get_boolean().

int xsh_parameters_get_boolean ( const cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name 
)
double xsh_parameters_get_double ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name 
)
int xsh_parameters_get_int ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name 
)

Definition at line 281 of file xsh_parameters.c.

References assure, and check.

Referenced by xsh_2dmap(), xsh_absorp(), xsh_flexcomp(), xsh_geom_ifu(), xsh_mdark(), xsh_mdark_get_contam(), xsh_mdark_get_fpn(), xsh_mdark_get_median_stdev(), xsh_mdark_measure_fpn(), xsh_mdark_measure_ron(), xsh_mflat(), xsh_orderpos(), xsh_parameter_check_int(), xsh_parameters_background_get(), xsh_parameters_clipping_crh_get(), xsh_parameters_clipping_dcn_get(), xsh_parameters_clipping_detect_arclines_get(), xsh_parameters_clipping_noise_get(), xsh_parameters_clipping_specres_get(), xsh_parameters_clipping_tilt_get(), xsh_parameters_detect_arclines_get(), xsh_parameters_detect_continuum_get(), xsh_parameters_detect_order_get(), xsh_parameters_dispersol_get(), xsh_parameters_interpolate_bp_get(), xsh_parameters_localize_ifu_get(), xsh_parameters_localize_obj_get(), xsh_parameters_merge_ord_get(), xsh_parameters_opt_extract_get(), xsh_parameters_remove_crh_single_get(), xsh_parameters_subtract_sky_single_get(), xsh_parameters_subtract_sky_single_get_first(), xsh_parameters_subtract_sky_single_get_niter(), xsh_parameters_subtract_sky_single_get_second(), xsh_parameters_wavecal_margin_get(), xsh_parameters_wavecal_range_get(), xsh_params_compute_fpn_check(), xsh_params_compute_ron_mbias_set3_check(), xsh_params_compute_ron_mdark_check(), xsh_predict(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_scired_nod_get_parameters(), xsh_scired_slit_offset(), xsh_scired_slit_stare(), and xsh_slit_stare_get_params().

char* xsh_parameters_get_string ( const cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name 
)
int xsh_parameters_get_temporary ( const char *  recipe_id,
const cpl_parameterlist *  list 
)

Definition at line 439 of file xsh_parameters.c.

References xsh_msg, and xsh_parameters_get_string().

Referenced by xsh_begin(), and xsh_end().

void xsh_parameters_hot_cold_pix_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_hot_cold_pix_param  p 
)

create the crh clipping parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p hot-cold pix detection parameters structure

Definition at line 544 of file xsh_parameters.c.

References assure, check, xsh_hot_cold_pix_param::cold_pix_kappa, xsh_hot_cold_pix_param::cold_pix_niter, xsh_hot_cold_pix_param::hot_cold_pix_search, xsh_hot_cold_pix_param::hot_pix_kappa, xsh_hot_cold_pix_param::hot_pix_niter, xsh_parameters_new_boolean(), xsh_parameters_new_double(), and xsh_parameters_new_range_int().

Referenced by main().

void xsh_parameters_interpolate_bp_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_interpolate_bp_param  p 
)
xsh_interpolate_bp_param* xsh_parameters_interpolate_bp_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_localize_ifu_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_localize_ifu_param  p 
)
xsh_localize_ifu_param* xsh_parameters_localize_ifu_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_localize_obj_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_localize_obj_param  p 
)
xsh_localize_obj_param* xsh_parameters_localize_obj_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_merge_ord_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
int  p 
)

Definition at line 2930 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_new_int().

xsh_merge_param* xsh_parameters_merge_ord_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
static void xsh_parameters_new_bool ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
bool  value,
const char *  comment 
) [static]

Definition at line 143 of file xsh_parameters.c.

References assure, and check.

Referenced by xsh_parameters_create_from_drs_table().

void xsh_parameters_new_boolean ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
int  value,
const char *  comment 
)
void xsh_parameters_new_double ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
double  value,
const char *  comment 
)
static void xsh_parameters_new_float ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
float  value,
const char *  comment 
) [static]

Definition at line 166 of file xsh_parameters.c.

References assure, and check.

Referenced by xsh_parameters_create_from_drs_table().

void xsh_parameters_new_int ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
int  value,
const char *  comment 
)
static void xsh_parameters_new_range_double ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
double  def,
double  min,
double  max,
const char *  comment 
) [static]
static void xsh_parameters_new_range_int ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
int  def,
int  min,
int  max,
const char *  comment 
) [static]
static void xsh_parameters_new_string ( cpl_parameterlist *  list,
const char *  recipe_id,
const char *  name,
const char *  value,
const char *  comment 
) [static]
void xsh_parameters_opt_extract_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_opt_extract_param  p 
)
xsh_opt_extract_param* xsh_parameters_opt_extract_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_optimal_extract_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
int  p 
)

Definition at line 2973 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_new_double().

double xsh_parameters_optimal_extract_get_kappa ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 2989 of file xsh_parameters.c.

References assure, check, and xsh_parameters_get_double().

void xsh_parameters_pre_overscan ( const char *  recipe_id,
cpl_parameterlist *  plist 
)
void xsh_parameters_rectify_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_rectify_param  p 
)
int xsh_parameters_rectify_fast_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 2185 of file xsh_parameters.c.

References assure, check, and xsh_parameters_get_boolean().

Referenced by xsh_scired_nod_get_parameters().

xsh_rectify_param* xsh_parameters_rectify_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_ref1_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_ref_param  p 
)

create the reference region definition parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p reference region parameters structure

Definition at line 607 of file xsh_parameters.c.

References xsh_ref_param::ref_llx, xsh_ref_param::ref_lly, xsh_ref_param::ref_urx, xsh_ref_param::ref_ury, and xsh_parameters_new_int().

Referenced by xsh_mdark_create(), and xsh_parameters_ron_create().

void xsh_parameters_ref2_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_ref_param  p 
)

create the reference region definition parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p reference region parameters structure

Definition at line 635 of file xsh_parameters.c.

References xsh_ref_param::ref_llx, xsh_ref_param::ref_lly, xsh_ref_param::ref_urx, xsh_ref_param::ref_ury, and xsh_parameters_new_int().

Referenced by xsh_parameters_ron_create().

void xsh_parameters_remove_crh_single_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_remove_crh_single_param  p 
)
xsh_remove_crh_single_param* xsh_parameters_remove_crh_single_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_ron_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_ron_param  p 
)
void xsh_parameters_ron_dark_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_ron_dark_param  p 
)

create the RON determination parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p RON parameters structure

Definition at line 663 of file xsh_parameters.c.

References xsh_ron_dark_param::ron_hsize, xsh_ron_dark_param::ron_llx, xsh_ron_dark_param::ron_lly, xsh_ron_dark_param::ron_nsamp, xsh_ron_dark_param::ron_urx, xsh_ron_dark_param::ron_ury, and xsh_parameters_new_int().

Referenced by xsh_mdark_create().

void xsh_parameters_slit_limit_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_slit_limit_param  p 
)
xsh_slit_limit_param* xsh_parameters_slit_limit_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
void xsh_parameters_stack_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_stack_param  sp 
)

create the RON determination parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p RON parameters structure

Definition at line 701 of file xsh_parameters.c.

References xsh_stack_param::khigh, xsh_stack_param::klow, XSH_FREE, xsh_parameters_new_double(), and xsh_stringcat_any().

Referenced by xsh_absorp_create(), xsh_geom_ifu_create(), xsh_mbias_create(), xsh_mdark_create(), xsh_mflat_create(), xsh_respon_slit_nod_create(), xsh_scired_ifu_offset_create(), xsh_scired_ifu_stare_create(), xsh_scired_slit_nod_create(), and xsh_scired_slit_stare_create().

void xsh_parameters_struct_create ( const char *  recipe_id,
cpl_parameterlist *  list,
xsh_struct_param  p 
)

create the structX/Y region definition parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to update
p reference region parameters structure

Definition at line 585 of file xsh_parameters.c.

References xsh_struct_param::ref_x, xsh_struct_param::ref_y, and xsh_parameters_new_int().

Referenced by main(), and xsh_mbias_create().

void xsh_parameters_subtract_sky_single_create ( const char *  recipe_id,
cpl_parameterlist *  plist,
xsh_subtract_sky_single_param  p 
)
xsh_subtract_sky_single_param* xsh_parameters_subtract_sky_single_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)
int xsh_parameters_subtract_sky_single_get_first ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 2858 of file xsh_parameters.c.

References assure, check, and xsh_parameters_get_int().

Referenced by xsh_slit_stare_get_params().

double xsh_parameters_subtract_sky_single_get_kappa ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 2910 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_get_double().

int xsh_parameters_subtract_sky_single_get_niter ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 2892 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_get_int().

int xsh_parameters_subtract_sky_single_get_second ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 2875 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_get_int().

Referenced by xsh_slit_stare_get_params().

int xsh_parameters_subtract_sky_single_get_true ( const char *  recipe_id,
cpl_parameterlist *  list 
)
char* xsh_parameters_test_mode_get ( const char *  recipe_id,
const cpl_parameterlist *  list 
)

Definition at line 475 of file xsh_parameters.c.

References xsh_parameters_get_string().

int xsh_parameters_time_stamp_get ( const char *  recipe_id,
const cpl_parameterlist *  list 
)

Definition at line 485 of file xsh_parameters.c.

References xsh_parameters_get_boolean(), and xsh_time_stamp_set().

void xsh_parameters_use_model_create ( const char *  recipe_id,
cpl_parameterlist *  plist 
)

Definition at line 1979 of file xsh_parameters.c.

References check, XSH_ASSURE_NOT_NULL, and xsh_parameters_new_string().

int xsh_parameters_use_model_get ( const char *  recipe_id,
const cpl_parameterlist *  plist 
)

Definition at line 1993 of file xsh_parameters.c.

References XSH_ASSURE_NOT_NULL, and xsh_parameters_get_string().

void xsh_parameters_wavecal_margin_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 1913 of file xsh_parameters.c.

References assure, check, WAVECAL_MARGIN_DEFAULT, and xsh_parameters_new_range_int().

Referenced by xsh_wavecal_create().

int xsh_parameters_wavecal_margin_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 1931 of file xsh_parameters.c.

References assure, check, and xsh_parameters_get_int().

Referenced by xsh_wavecal_get_parameters().

void xsh_parameters_wavecal_range_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 1881 of file xsh_parameters.c.

References assure, check, WAVECAL_RANGE_DEFAULT, and xsh_parameters_new_range_int().

Referenced by xsh_wavecal_create().

int xsh_parameters_wavecal_range_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 1899 of file xsh_parameters.c.

References assure, check, and xsh_parameters_get_int().

Referenced by xsh_wavecal_get_parameters().

void xsh_parameters_wavecal_s_n_create ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 1945 of file xsh_parameters.c.

References assure, check, and xsh_parameters_new_double().

Referenced by xsh_wavecal_create().

double xsh_parameters_wavecal_s_n_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

Definition at line 1963 of file xsh_parameters.c.

References assure, check, and xsh_parameters_get_double().

Referenced by xsh_wavecal_get_parameters().

static cpl_error_code xsh_params_background_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey,
const int  norder 
) [static]

Definition at line 3715 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_compute_fpn_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey 
) [static]
static cpl_error_code xsh_params_compute_ron_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey 
) [static]
static cpl_error_code xsh_params_compute_ron_mbias_set3_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey 
) [static]
static cpl_error_code xsh_params_compute_ron_mdark_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey 
) [static]
static cpl_error_code xsh_params_compute_ron_region1_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey 
) [static]

Definition at line 4101 of file xsh_parameters.c.

References xsh_parameter_check_int().

Referenced by xsh_params_compute_ron_check().

static cpl_error_code xsh_params_compute_ron_region2_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey 
) [static]

Definition at line 4126 of file xsh_parameters.c.

References xsh_parameter_check_int().

Referenced by xsh_params_compute_ron_check().

static cpl_error_code xsh_params_correctifu_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 4319 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_crhclip_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]
static cpl_error_code xsh_params_crhsingle_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3558 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_detect_arclines_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3865 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_detect_continuum_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3922 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_detectorder_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizex,
const int  sizey,
const int  norders 
) [static]

Definition at line 3962 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_dispersol_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 4001 of file xsh_parameters.c.

References xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_extract_mask_size_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3659 of file xsh_parameters.c.

References xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_follow_arclines_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3640 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_localize_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3758 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_localizeifu_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]
static cpl_error_code xsh_params_model_anneal_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3831 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_noise_clip_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]
static cpl_error_code xsh_params_optextract_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  sizey 
) [static]

Definition at line 3605 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_overscan_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3850 of file xsh_parameters.c.

References xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_overscan_nir_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3430 of file xsh_parameters.c.

References xsh_parameters_find().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_rectify_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3739 of file xsh_parameters.c.

References xsh_parameter_check_double().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_sky_bspline_check ( cpl_parameterlist *  parameters,
const char *  rec_id,
const int  biny 
) [static]

Definition at line 3792 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_spec_res_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3695 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_stack_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 4083 of file xsh_parameters.c.

References xsh_parameter_check_double().

Referenced by xsh_recipe_params_check().

static cpl_error_code xsh_params_stacking_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 4065 of file xsh_parameters.c.

References xsh_parameter_check_int().

Referenced by xsh_recipe_params_drs_check().

static cpl_error_code xsh_params_tilt_clip_check ( cpl_parameterlist *  parameters,
const char *  rec_id 
) [static]

Definition at line 3675 of file xsh_parameters.c.

References xsh_parameter_check_double(), and xsh_parameter_check_int().

Referenced by xsh_recipe_params_check().

cpl_error_code xsh_recipe_params_check ( cpl_parameterlist *  parameters,
xsh_instrument instrument,
const char *  rec_id 
)
cpl_error_code xsh_recipe_params_drs_check ( cpl_parameterlist *  parameters,
xsh_instrument instrument,
const char *  rec_id 
)
xsh_stack_param* xsh_stack_frames_get ( const char *  recipe_id,
cpl_parameterlist *  list 
)

get the detect arclines parameters in a parameters list

Parameters:
recipe_id the current recipe in use
list the parameters list to search
Returns:
a NEWLY allocated structure of detect orders parameters

Definition at line 1350 of file xsh_parameters.c.

References check, xsh_stack_param::khigh, xsh_stack_param::klow, xsh_stack_param::stack_method, XSH_ASSURE_NOT_NULL, XSH_MALLOC, xsh_parameters_get_double(), and xsh_parameters_get_string().

Referenced by xsh_absorp(), xsh_geom_ifu(), xsh_mbias(), xsh_mdark(), xsh_mflat(), xsh_respon_slit_nod(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_scired_slit_nod(), and xsh_scired_slit_stare().


Variable Documentation

const XSH_KERNEL_TYPE xsh_ker_type[] [static]
Initial value:
 {
  {"tanh", CPL_KERNEL_TANH},
  {"sinc", CPL_KERNEL_SINC},
  {"sinc2", CPL_KERNEL_SINC2},
  {"lanczos", CPL_KERNEL_LANCZOS},
  {"hamming", CPL_KERNEL_HAMMING},
  {"hann", CPL_KERNEL_HANN},
  {NULL, 0}
}

Definition at line 2086 of file xsh_parameters.c.


Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1