CR2RE Pipeline Reference Manual 1.6.10
Functions
IDP related functions

Functions

int cr2res_idp_save (const char *filename, cpl_frameset *allframes, cpl_frameset *rawframes, const cpl_parameterlist *parlist, cpl_table **tables, cpl_propertylist *main_qc_plist, cpl_propertylist **ext_plist, const char *procatg, const char *recipe)
 Save an IDP file.
 
cpl_table * cr2res_idp_create_table (cpl_table **tables, const char *recipe, const char *setting, int error_method, int nab)
 Convert EXTRACT_1D tables into IDP table.
 
int cr2res_idp_compute_mjd (cpl_frameset *fset, double *mjd_start, double *mjd_end)
 Compute mjd start and end.
 

Detailed Description

Function Documentation

◆ cr2res_idp_compute_mjd()

int cr2res_idp_compute_mjd ( cpl_frameset *  fset,
double *  mjd_start,
double *  mjd_end 
)

Compute mjd start and end.

Parameters
fsetRaw frames
Returns

Definition at line 812 of file cr2res_idp.c.

References cr2res_pfits_get_dit(), cr2res_pfits_get_mjd_obs(), and cr2res_pfits_get_ndit().

Referenced by cr2res_idp_save().

◆ cr2res_idp_create_table()

cpl_table * cr2res_idp_create_table ( cpl_table **  tables,
const char *  recipe,
const char *  setting,
int  error_method,
int  nab 
)

Convert EXTRACT_1D tables into IDP table.

Parameters
tablesCR2RES_NB_DETECTORS EXTRACT_1D tables
Returns
0 if ok, -1 in error case

Definition at line 602 of file cr2res_idp.c.

References cr2res_dfs_POL_colname_parse(), and cr2res_dfs_SPEC_colname_parse().

Referenced by cr2res_idp_save().

◆ cr2res_idp_save()

int cr2res_idp_save ( const char *  filename,
cpl_frameset *  allframes,
cpl_frameset *  rawframes,
const cpl_parameterlist *  parlist,
cpl_table **  tables,
cpl_propertylist *  main_qc_plist,
cpl_propertylist **  ext_plist,
const char *  procatg,
const char *  recipe 
)

Save an IDP file.

Parameters
filenameThe FITS file name
allframesThe recipe input frames
rawframesThe recipe used input frames
parlistThe recipe input parameters
tablesThe tables to save (1 per detector)
main_qc_plistThe main header QCs
ext_plistCR2RES_NB_DETECTORS extension headers
recipeThe recipe name
Returns
0 if ok, -1 in error case

Definition at line 98 of file cr2res_idp.c.

References cr2res_idp_compute_mjd(), cr2res_idp_create_table(), cr2res_pfits_get_dit(), cr2res_pfits_get_ndit(), cr2res_pfits_get_obs_id(), cr2res_pfits_get_poltype(), and cr2res_pfits_get_progid().