ERIS Pipeline Reference Manual 1.9.2
Functions
DFS related functions

Functions

cpl_error_code eris_nix_dfs_set_groups (cpl_frameset *set)
 Set the group as RAW or CALIB in a frameset.
 
cpl_error_code enu_dfs_save_bpm (const char *procat, cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *usedframes, const master_bpm *mbad_pix_map, const char *recipe, const cpl_propertylist *applist, const char *pipe_id, const char *filename)
 Save a master_bpm as a DFS-compliant pipeline product.
 
cpl_error_code enu_dfs_save_catalogue (cpl_frameset *frameset, cpl_frame *image, const cpl_parameterlist *parlist, const cpl_table *catalogue, const cpl_propertylist *tablelist, const char *cat_name, const char *recipe, const char *pipe_id, const char *preface, const char *procat)
 Save a catalogue as DFS product.
 
cpl_error_code enu_dfs_save_himage (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *provenance, const cpl_boolean prov_raw, const hdrl_image *image, const hdrl_imagelist *imagelist, const mef_extension_list *mefs, const char *recipe, const cpl_frame *inherit_frame, const cpl_propertylist *applist, const cpl_propertylist *wcs_plist, const char *pipe_id, const char *filename)
 Save an hdrl_image/imagelist as a DFS-compliant MEF pipeline product.
 
cpl_error_code enu_dfs_save_limage (cpl_frameset *allframes, const cpl_parameterlist *parlist, const cpl_frameset *provenance, const cpl_boolean prov_raw, const located_image *limage, const char *recipe, const cpl_frame *inherit, cpl_propertylist *applist, const char *pipe_id, const char *filename)
 Save a located image structure to a MEF.
 
cpl_error_code enu_dfs_setup_product_header (cpl_propertylist *header, const cpl_frame *product_frame, const cpl_frameset *framelist, const cpl_parameterlist *parlist, const char *recipe_id, const char *pipe_id, const cpl_frame *inherit, const cpl_frameset *provenance, cpl_boolean prov_raw)
 Add phase3/IDP keywords to a pipeline product propertyist list.
 

Detailed Description

Function Documentation

◆ enu_dfs_save_bpm()

cpl_error_code enu_dfs_save_bpm ( const char *  procat,
cpl_frameset *  allframes,
const cpl_parameterlist *  parlist,
const cpl_frameset *  usedframes,
const master_bpm *  mbad_pix_map,
const char *  recipe,
const cpl_propertylist *  applist,
const char *  pipe_id,
const char *  filename 
)

Save a master_bpm as a DFS-compliant pipeline product.

Routine to save a master_bpm to a DFS-compliant FITS file. A wrapper for cpl_dfs_save_image.

Parameters
procatThe product CATG
allframesThe list of input frames for the recipe
parlistThe list of input parameters
usedframesThe list of raw/calibration frames used for this product
mbad_pix_mapThe master_bpm to be saved
recipeThe recipe name
applistPropertylist to append to primary header
pipe_idPACKAGE "/" PACKAGE_VERSION
filenameFilename of created product
Returns
CPL_ERROR_NONE or the relevant CPL error code on error

Definition at line 218 of file eris_nix_dfs.c.

◆ enu_dfs_save_catalogue()

cpl_error_code enu_dfs_save_catalogue ( cpl_frameset *  frameset,
cpl_frame *  image,
const cpl_parameterlist *  parlist,
const cpl_table *  catalogue,
const cpl_propertylist *  tablelist,
const char *  cat_name,
const char *  recipe,
const char *  pipe_id,
const char *  preface,
const char *  procat 
)

Save a catalogue as DFS product.

Routine to write an hdrl_image data product to a MEF (DFS-compliant) file. Adapted from cpl_dfs_product_save.

Parameters
framesetThe list of input frames for the recipe
imageFrame to which the catalogue refers
parlistThe list of input parameters
catalogueThe catalogue to be saved
tablelistNULL or optional propertylist to use in table extension
cat_nameThe name of the catalogue to be saved
recipeThe recipe name
pipe_idPACKAGE "/" PACKAGE_VERSION
prefaceThe catalogue filename will be "<preface>.<raw filename>"
procatThe DFS category of the product
Returns
CPL_ERROR_NONE on success, a CPL error code otherwise

The function saves the table to a DFS-compliant FITS file of name "<preface>.<inherit frame filename>", with keyword DPR.CATG set to the specified value. If the catalogue is NULL no action is taken.

Definition at line 274 of file eris_nix_dfs.c.

References enu_dfs_setup_product_header(), enu_repreface(), and eris_check_error_code().

Referenced by eris_nix_scired_cal_wcs(), and eris_nix_scired_hdrl_stack().

◆ enu_dfs_save_himage()

cpl_error_code enu_dfs_save_himage ( cpl_frameset *  allframes,
const cpl_parameterlist *  parlist,
const cpl_frameset *  provenance,
const cpl_boolean  prov_raw,
const hdrl_image *  image,
const hdrl_imagelist *  imagelist,
const mef_extension_list *  mefs,
const char *  recipe,
const cpl_frame *  inherit_frame,
const cpl_propertylist *  applist,
const cpl_propertylist *  wcs_plist,
const char *  pipe_id,
const char *  filename 
)

Save an hdrl_image/imagelist as a DFS-compliant MEF pipeline product.

Routine to write an hdrl_image or hdrl_imagelist data product to a MEF (DFS-compliant) file. Adapted from cpl_dfs_product_save.

Parameters
allframesThe list of input frames for the recipe
parlistThe list of input parameters
usedframesThe raw/calibration frames used for this product
provenanceThe frames that contributed directly to this product
prov_rawCPL_TRUE for raw data filenames, CPL_FALSE for actual names
imageThe image to be saved or...
imagelist...the imagelist to be saved
mefsList of extension components associated with the image
recipeThe recipe name
inheritSee cpl_dfs_setup_product_header.
applistPropertyies to add to primary header, w. PRO.CATG
wcs_listProperties defining image wcs
pipe_idPACKAGE "/" PACKAGE_VERSION
filenameFilename of created product
Returns
CPL_ERROR_NONE or the relevant CPL error code on error

Definition at line 423 of file eris_nix_dfs.c.

References enu_dfs_setup_product_header(), enu_mef_extension_save(), eris_check_error_code(), hdrl_image_get_error_const(), hdrl_image_get_image_const(), hdrl_image_get_mask(), hdrl_imagelist_get(), and hdrl_imagelist_get_size().

Referenced by enlu_trace_save(), enu_dfs_save_limage(), and enu_flat_save().

◆ enu_dfs_save_limage()

cpl_error_code enu_dfs_save_limage ( cpl_frameset *  allframes,
const cpl_parameterlist *  parlist,
const cpl_frameset *  provenance,
const cpl_boolean  prov_raw,
const located_image *  limage,
const char *  recipe,
const cpl_frame *  inherit,
cpl_propertylist *  applist,
const char *  pipe_id,
const char *  filename 
)

Save a located image structure to a MEF.

Parameters
allframesThe list of input frames for the recipe
parlistThe list of input parameters
provenanceThe frames that contribute directly to this product
prov_rawCPL_TRUE for raw data filenames, CPL_FALSE for actual names
limageThe locate image to save
recipeThe recipe name
inheritThe frame to inherit header info from
applistThe propertylist to be added to the primary header
pipe_idPACKAGE "/" PACKAGE_VERSION
filenameThe name of the pipeline
Returns
CPL_ERROR_NONE if all goes well, otherwise an error code

Definition at line 909 of file eris_nix_dfs.c.

References enu_dfs_save_himage(), enu_mef_extension_list_delete(), enu_mef_extension_list_new(), enu_mef_new_image(), eris_check_error_code(), hdrl_image_get_error(), and hdrl_image_get_image().

Referenced by enu_debug_limlist_save(), eris_nix_scired_cal_wcs(), eris_nix_scired_hdrl_stack(), and eris_nix_scired_skysub().

◆ enu_dfs_setup_product_header()

cpl_error_code enu_dfs_setup_product_header ( cpl_propertylist *  header,
const cpl_frame *  product_frame,
const cpl_frameset *  framelist,
const cpl_parameterlist *  parlist,
const char *  recipe_id,
const char *  pipe_id,
const cpl_frame *  inherit,
const cpl_frameset *  provenance,
cpl_boolean  prov_raw 
)

Add phase3/IDP keywords to a pipeline product propertyist list.

Parameters
headerThe required propertylist
product_frameFrame containing the productFilename of created product
framelistThe list of input frames for the recipe
parlistThe list of input parameters
recipe_idThe recipe name
pipe_idPACKAGE "/" PACKAGE_VERSION
inheritThe frame to inherit header info from
provenanceThe frames that contribute directly to this product
prov_rawCPL_TRUE for raw data filenames, CPL_FALSE for actual names
Returns
CPL_ERROR_NONE if all goes well, otherwise an error code

Definition at line 1038 of file eris_nix_dfs.c.

References enu_get_filter(), and eris_check_error_code().

Referenced by enu_dfs_save_catalogue(), and enu_dfs_save_himage().

◆ eris_nix_dfs_set_groups()

cpl_error_code eris_nix_dfs_set_groups ( cpl_frameset *  set)

Set the group as RAW or CALIB in a frameset.

Parameters
setthe input frameset
Returns
CPL_ERROR_NONE iff OK

Definition at line 58 of file eris_nix_dfs.c.

Referenced by eris_nix_scired_cal_det(), eris_nix_scired_cal_phot(), eris_nix_scired_cal_wcs(), eris_nix_scired_hdrl_stack(), and eris_nix_scired_skysub().