|
MOONS Pipeline Reference Manual 0.13.2
|
Functions | |
| moo_products * | moo_products_new (cpl_frameset *framelist, const cpl_parameterlist *parlist, const char *recid, const char *pipeline_id) |
| create a moo_product object for a recipe | |
| const moo_params * | moo_products_get_params (const moo_products *self) |
| get the moo_params object | |
| cpl_error_code | moo_products_add_frame (const moo_products *self, cpl_frame *frame) |
| add a frame to the recipe products | |
| cpl_frame * | moo_products_add (moo_products *self, moo_det *det, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a DET object | |
| cpl_frame * | moo_products_add_loc (moo_products *self, moo_loc *loc, int keep_points, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| This function creates a product from a LOC structure. | |
| cpl_frame * | moo_products_add_ext (moo_products *self, moo_ext *ext, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a EXT object | |
| cpl_frame * | moo_products_add_rbn (moo_products *self, moo_rbn *rbn, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a RBN object | |
| cpl_frame * | moo_products_add_sci (moo_products *self, moo_sci *sci, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a SCI object | |
| cpl_frame * | moo_products_add_resp (moo_products *self, moo_resp *resp, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a RESP object | |
| cpl_frame * | moo_products_add_telluric (moo_products *self, moo_telluric *tell, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a TELLURIC object | |
| cpl_frame * | moo_products_add_map (moo_products *self, moo_map *map, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame, moo_rbn *rbn) |
| create a product from a EXT object | |
| cpl_frame * | moo_products_add_molectable (moo_products *self, moo_molectable *mtable, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a MOLECTABLE object | |
| cpl_frame * | moo_products_add_bpm (moo_products *self, moo_bpm *bpm, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a BPM object | |
| cpl_frame * | moo_products_add_saturate_map (moo_products *self, moo_saturate_map *saturate, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a SATURATE MAP object | |
| cpl_frame * | moo_products_add_cube (moo_products *self, moo_cube *cube, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a CUBE object | |
| cpl_frame * | moo_products_add_target_table (moo_products *self, moo_target_table *ttable, cpl_frame_level level, const char *tag, const char *filename, const cpl_frame *inherit_frame) |
| create a product from a TARGET_TABLE object | |
| cpl_error_code | moo_masterbias (moo_det *det, moo_detlist *bias_list, moo_bias_params *bias_params, moo_products *products) |
| This function creates the master bias frame as a product and essentially produces a standard output as well as it computes and writes the different QC parameters. | |
| cpl_error_code | moo_masterdark (moo_det *det, moo_products *products, int mode) |
| This function creates the master dark frame as a product and essentially produces a standard output as well as it computes and writes the different QC parameters. | |
| cpl_frame * | moo_products_add_s1d (moo_products *self, moo_s1d *s1d, const char *tag, const cpl_frame *inherit_frame) |
| create a product from a MOLECTABLE object | |
| cpl_error_code moo_masterbias | ( | moo_det * | det, |
| moo_detlist * | bias_list, | ||
| moo_bias_params * | bias_params, | ||
| moo_products * | products | ||
| ) |
This function creates the master bias frame as a product and essentially produces a standard output as well as it computes and writes the different QC parameters.
| det | the MASTER_BIAS det |
| bias_list | the BIAS det list |
| bias_params | the masterbias parameter |
| products | the product structure to save product file |
Flags considered as bad : BADPIX_COSMETIC | BADPIX_NON_LINEAR Possible _cpl_error_code set in this function:
Definition at line 995 of file moo_products.c.
References MOO_BADPIX_COSMETIC, MOO_BADPIX_NON_LINEAR, moo_detlist_free_single(), moo_detlist_get_image(), moo_detlist_load_single(), moo_qc_set_mbias_avg(), moo_qc_set_mbias_mad(), moo_qc_set_mbias_med(), moo_qc_set_mbias_rms(), moo_qc_set_ron_master(), moo_qc_set_ron_raw(), moo_single_load(), and MOO_TYPE_RI.
| cpl_error_code moo_masterdark | ( | moo_det * | det, |
| moo_products * | products, | ||
| int | mode | ||
| ) |
This function creates the master dark frame as a product and essentially produces a standard output as well as it computes and writes the different QC parameters.
| det | the DET MASTER_DARK |
| products | the product structure to save product file |
| mode | VIS (0) or NIR(1) |
Flags considered as bad : BADPIX_COSMETIC | BADPIX_HOT Possible _cpl_error_code set in this function:
Definition at line 1087 of file moo_products.c.
References MOO_BADPIX_COSMETIC, MOO_BADPIX_HOT, MOO_BADPIX_OUTSIDE_DATA_RANGE, moo_pfits_get_det_chip_outi_gain(), moo_pfits_get_det_outi_gain(), moo_pfits_get_dit(), moo_pfits_get_exptime(), moo_pfits_get_ndit(), moo_pfits_update_exptime(), moo_qc_set_mdark_avg(), moo_qc_set_mdark_current(), moo_qc_set_mdark_med(), moo_qc_set_mdark_normalise_factor(), moo_qc_set_mdark_rms(), and moo_single_load().
| cpl_frame * moo_products_add | ( | moo_products * | self, |
| moo_det * | det, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a DET object
| self | the moo_product object |
| det | the DET object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 203 of file moo_products.c.
References moo_det_save(), and moo_products_add_frame().
| cpl_frame * moo_products_add_bpm | ( | moo_products * | self, |
| moo_bpm * | bpm, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a BPM object
| self | the moo_product object |
| bpm | the BPM object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 643 of file moo_products.c.
References moo_bpm_save(), and moo_products_add_frame().
| cpl_frame * moo_products_add_cube | ( | moo_products * | self, |
| moo_cube * | cube, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a CUBE object
| self | the moo_product object |
| cube | the CUBE object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 731 of file moo_products.c.
References moo_cube_save(), and moo_products_add_frame().
| cpl_frame * moo_products_add_ext | ( | moo_products * | self, |
| moo_ext * | ext, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a EXT object
| self | the moo_product object |
| ext | the EXT object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 333 of file moo_products.c.
References moo_ext_save(), and moo_products_add_frame().
| cpl_error_code moo_products_add_frame | ( | const moo_products * | self, |
| cpl_frame * | frame | ||
| ) |
add a frame to the recipe products
| self | the moo_product object |
| frame | the product frame |
Definition at line 167 of file moo_products.c.
Referenced by moo_products_add(), moo_products_add_bpm(), moo_products_add_cube(), moo_products_add_ext(), moo_products_add_map(), moo_products_add_molectable(), moo_products_add_rbn(), moo_products_add_resp(), moo_products_add_s1d(), moo_products_add_saturate_map(), moo_products_add_sci(), moo_products_add_target_table(), and moo_products_add_telluric().
| cpl_frame * moo_products_add_loc | ( | moo_products * | self, |
| moo_loc * | loc, | ||
| int | keep_points, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
This function creates a product from a LOC structure.
Possible cpl_error_code set in this function:
Definition at line 277 of file moo_products.c.
References moo_loc_save().
| cpl_frame * moo_products_add_map | ( | moo_products * | self, |
| moo_map * | map, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame, | ||
| moo_rbn * | rbn | ||
| ) |
create a product from a EXT object
| self | the moo_product object |
| map | the MAP object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
| rbn | the RBN to update the line table |
Definition at line 554 of file moo_products.c.
References moo_map_save(), and moo_products_add_frame().
| cpl_frame * moo_products_add_molectable | ( | moo_products * | self, |
| moo_molectable * | mtable, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a MOLECTABLE object
| self | the moo_product object |
| mtable | the MAP object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 600 of file moo_products.c.
References moo_molectable_save(), and moo_products_add_frame().
| cpl_frame * moo_products_add_rbn | ( | moo_products * | self, |
| moo_rbn * | rbn, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a RBN object
| self | the moo_product object |
| rbn | the RBN object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 376 of file moo_products.c.
References moo_products_add_frame(), and moo_rbn_save().
| cpl_frame * moo_products_add_resp | ( | moo_products * | self, |
| moo_resp * | resp, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a RESP object
| self | the moo_product object |
| resp | the RESP object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 464 of file moo_products.c.
References moo_products_add_frame(), and moo_resp_save().
| cpl_frame * moo_products_add_s1d | ( | moo_products * | self, |
| moo_s1d * | s1d, | ||
| const char * | tag, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a MOLECTABLE object
| self | the moo_product object |
| s1d | the s1d object product |
| tag | the tag of product frame |
| inherit_frame | frame to inherit keywords |
Definition at line 1185 of file moo_products.c.
References moo_products_add_frame(), and moo_s1d_save().
Referenced by moo_create_s1d().
| cpl_frame * moo_products_add_saturate_map | ( | moo_products * | self, |
| moo_saturate_map * | saturate, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a SATURATE MAP object
| self | the moo_product object |
| saturate | the SATURATE MAP object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 687 of file moo_products.c.
References moo_products_add_frame(), and moo_saturate_map_save().
| cpl_frame * moo_products_add_sci | ( | moo_products * | self, |
| moo_sci * | sci, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a SCI object
| self | the moo_product object |
| sci | the SCI object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 420 of file moo_products.c.
References moo_products_add_frame(), and moo_sci_save().
Referenced by moo_combine_pair().
| cpl_frame * moo_products_add_target_table | ( | moo_products * | self, |
| moo_target_table * | ttable, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a TARGET_TABLE object
| self | the moo_product object |
| ttable | the TARGET_TABLE object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 774 of file moo_products.c.
References moo_products_add_frame().
| cpl_frame * moo_products_add_telluric | ( | moo_products * | self, |
| moo_telluric * | tell, | ||
| cpl_frame_level | level, | ||
| const char * | tag, | ||
| const char * | filename, | ||
| const cpl_frame * | inherit_frame | ||
| ) |
create a product from a TELLURIC object
| self | the moo_product object |
| tell | the TELLURic object product |
| level | the level of product frame |
| tag | the tag of product frame |
| filename | the name of product frame or NULL for using tag |
| inherit_frame | frame to inherit keywords |
Definition at line 508 of file moo_products.c.
References moo_products_add_frame(), and moo_telluric_save().
| const moo_params * moo_products_get_params | ( | const moo_products * | self | ) |
get the moo_params object
| self | the moo_product object |
Definition at line 87 of file moo_products.c.
| moo_products * moo_products_new | ( | cpl_frameset * | framelist, |
| const cpl_parameterlist * | parlist, | ||
| const char * | recid, | ||
| const char * | pipeline_id | ||
| ) |
create a moo_product object for a recipe
| framelist | the recipe input frames list |
| parlist | the recipe input parameters list |
| recid | the recipe id |
| pipeline_id | the pipeline id |
Definition at line 53 of file moo_products.c.
References moo_params_get_keep_temp(), and moo_params_new().