QC Structure Functions

Functions

qc_descriptionxsh_get_qc_desc_by_kw (const char *kw)
qc_descriptionxsh_get_qc_desc_by_pro_catg (const char *pro_catg)
int xsh_qc_in_recipe (qc_description *pqc, xsh_instrument *instrument)
qc_descriptionxsh_get_qc_desc_by_recipe (const char *recipe, qc_description *prev)
qc_descriptionxsh_get_qc_desc_by_function (char *function, qc_description *prev)
int xsh_is_qc_for_arm (const char *arm, qc_description *pqc)
int xsh_is_qc_for_pro_catg (const char *pro_catg, qc_description *pqc)

Function Documentation

qc_description* xsh_get_qc_desc_by_function ( char *  function,
qc_description prev 
)

Definition at line 139 of file xsh_qc_handling.c.

References qc_description::kw_function, qc_description::kw_name, and qc_table.

qc_description* xsh_get_qc_desc_by_kw ( const char *  kw  ) 

Definition at line 69 of file xsh_qc_handling.c.

References qc_description::kw_name, and qc_table.

Referenced by xsh_pfits_set_qc(), and xsh_pfits_set_qc_multi().

qc_description* xsh_get_qc_desc_by_pro_catg ( const char *  pro_catg  ) 

Definition at line 80 of file xsh_qc_handling.c.

References qc_description::kw_name, qc_description::pro_catg, and qc_table.

qc_description* xsh_get_qc_desc_by_recipe ( const char *  recipe,
qc_description prev 
)
int xsh_is_qc_for_arm ( const char *  arm,
qc_description pqc 
)

Check if the ARM is in the list of arms of the QC descriptor. If yes or the list of arms is NULL, returns TRUE (1), returns 0 otherwise. Is used for somw WC parameters that are relevant only for some specific arm(s) such as BP-MAP NOISYPIX (calculated in xsh_mdark).

Parameters:
arm Name of the arm (NIR, UVB, VIS)
pqc Pointer to QC parameter description
Returns:
1 if the arm is in the qc.arms string or qc.arms is null, 0 otherwise

Definition at line 168 of file xsh_qc_handling.c.

References qc_description::arms.

Referenced by xsh_paf_save().

int xsh_is_qc_for_pro_catg ( const char *  pro_catg,
qc_description pqc 
)

Check if the PRO.CATG is in the list of arms of the QC descriptor. If yes or the list of pro.catg is NULL, returns TRUE (1), returns 0 otherwise.

Parameters:
pro_catg PRO.CATG string
pqc Pointer to QC parameter description
Returns:
1 if the arm is in the qc.pro_catg string or qc.pro_catg is null, 0 otherwise.

Definition at line 185 of file xsh_qc_handling.c.

References qc_description::kw_name, qc_description::pro_catg, and xsh_msg_dbg_high.

Referenced by xsh_paf_save().

int xsh_qc_in_recipe ( qc_description pqc,
xsh_instrument instrument 
)

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