31 #include <fors_image.h>
40 FORS_TYPE_IMAGE = 1 << 0,
41 FORS_TYPE_IMAGE_ERR = 1 << 1,
42 FORS_TYPE_TABLE = 1 << 2
45 typedef enum _fors_type_ fors_type;
51 #define SCREEN_FLAT_IMG "SCREEN_FLAT_IMG"
52 #define SKY_FLAT_IMG "SKY_FLAT_IMG"
53 #define STANDARD_IMG "STANDARD_IMG"
54 #define SCIENCE_IMG "SCIENCE_IMG"
57 #define MASTER_BIAS "MASTER_BIAS"
58 #define MASTER_DARK "MASTER_DARK"
59 #define MASTER_SCREEN_FLAT_IMG "MASTER_SCREEN_FLAT_IMG"
60 #define MASTER_NORM_FLAT_IMG "MASTER_NORM_FLAT_IMG"
61 #define MASTER_SKY_FLAT_IMG "MASTER_SKY_FLAT_IMG"
62 #define SOURCES_SCI "SOURCES_SCI_IMG"
63 #define SOURCES_STD "SOURCES_STD_IMG"
64 #define ALIGNED_PHOT "ALIGNED_PHOT"
65 #define STANDARD_REDUCED_IMG "STANDARD_REDUCED_IMG"
66 #define SCIENCE_REDUCED_IMG "SCIENCE_REDUCED_IMG"
67 #define PHOTOMETRY_TABLE "OBJECT_TABLE_SCI_IMG"
68 #define PHOT_BACKGROUND_SCI_IMG "PHOT_BACKGROUND_SCI_IMG"
69 #define PHOT_BACKGROUND_STD_IMG "PHOT_BACKGROUND_STD_IMG"
70 #define CORRECTION_MAP "CORRECTION_MAP"
71 #define CORRECTION_FACTOR "CORRECTION_FACTOR"
72 #define MASTER_FLAT_IMG "MASTER_FLAT_IMG"
73 #define PHOT_COEFF_TABLE "PHOT_COEFF_TABLE"
74 #define EXTINCTION_PER_NIGHT "EXTINCTION_PER_NIGHT"
75 #define EXTINCTION_PER_FRAME "EXTINCTION_PER_FRAME"
76 #define OFFSET_HISTOGRAM "OFFSET_HISTOGRAM"
79 #define FLX_STD_IMG "FLX_STD_IMG"
80 #define PHOT_TABLE "PHOT_TABLE"
84 const char **instrument_version);
85 char *dfs_generate_filename(
const char *);
98 cpl_image *
dfs_load_image(cpl_frameset *,
const char *, cpl_type,
int,
int);
106 const char *category, cpl_propertylist *header,
107 cpl_propertylist *err_header,
108 const cpl_parameterlist *parlist,
const char *recipename,
109 const cpl_frame *raw_frame);
111 const fors_image *image,
const cpl_image *mask,
112 const char *category, cpl_propertylist *header,
113 const cpl_parameterlist *parlist,
const char *recipename,
114 const cpl_frame *raw_frame);
116 const char *category, cpl_propertylist *header,
117 const cpl_parameterlist *parlist,
const char *recipename,
118 const cpl_frame *raw_frame);
120 const cpl_image *mask,
const char *category,
121 cpl_propertylist *header,
122 const cpl_parameterlist *parlist,
const char *recipename,
123 const cpl_frame *inherit_frame);
124 void fors_dfs_save_image_wcs(cpl_frameset *frameset,
const fors_image *image,
125 const char *category, cpl_propertylist *header,
126 const cpl_parameterlist *parlist,
const char *recipename,
127 const cpl_frame *raw_frame);
129 const char *category, cpl_propertylist *header,
130 const cpl_parameterlist *parlist,
const char *recipename,
131 const cpl_frame *raw_frame);
132 int dfs_save_image(cpl_frameset *,
const cpl_image *,
const char *,
133 cpl_propertylist *,
const cpl_parameterlist *,
134 const char *,
const char *) CPL_ATTR_DEPRECATED;
135 int dfs_save_table(cpl_frameset *, const cpl_table *, const
char *,
136 cpl_propertylist *, const cpl_parameterlist *,
137 const
char *, const
char *) CPL_ATTR_DEPRECATED;
139 void fors_begin(cpl_frameset *frames, const
char *description_short);
140 int fors_end(const cpl_frameset *frames, cpl_errorstate before_exec);
147 const
char *, const
char *,
void fors_dfs_save_image_err_mask(cpl_frameset *frameset, const fors_image *image, const cpl_image *mask, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const cpl_frame *raw_frame)
Save DFS product (image) with it error data and a bad pixel mask.
int fors_end(const cpl_frameset *frames, cpl_errorstate before_exec)
End recipe execution.
cpl_image * dfs_load_image(cpl_frameset *, const char *, cpl_type, int, int)
Loading image data of given category.
const char * dfs_get_parameter_string(cpl_parameterlist *, const char *, const cpl_table *)
Reading a recipe string parameter value.
cpl_propertylist * dfs_load_header(cpl_frameset *, const char *, int)
Loading header associated to data of given category.
void fors_dfs_add_exptime(cpl_propertylist *header, const cpl_frame *frame, double exptime)
Add keyword EXPTIME to header.
cpl_error_code dfs_save_image_null(cpl_frameset *, cpl_parameterlist *, const char *, const char *, const char *)
Save a product with an empty primary extension.
cpl_error_code dfs_save_image_ext(cpl_image *, const char *, cpl_propertylist *)
Save an image in a extension.
void fors_begin(cpl_frameset *frames, const char *description_short)
Start recipe execution.
void fors_dfs_save_image(cpl_frameset *frameset, const cpl_image *image, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const cpl_frame *raw_frame)
Save DFS product (image)
void fors_dfs_set_groups(cpl_frameset *set)
Set the group as RAW or CALIB in a frameset.
int dfs_get_parameter_bool(cpl_parameterlist *, const char *, const cpl_table *)
Reading a recipe boolean parameter value.
int dfs_equal_keyword(cpl_frameset *frameset, const char *keyword)
Saving table data of given category.
int dfs_get_parameter_int_const(const cpl_parameterlist *, const char *)
cpl_error_code dfs_save_table_ext(cpl_table *, const char *, cpl_propertylist *)
Save a table in a extension (different from the first one)
int dfs_get_parameter_bool_const(const cpl_parameterlist *, const char *)
void fors_dfs_save_table(cpl_frameset *frameset, const cpl_table *table, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const cpl_frame *raw_frame)
Save DFS product (table)
void fors_dfs_save_image_mask(cpl_frameset *frameset, const cpl_image *image, const cpl_image *mask, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const cpl_frame *inherit_frame)
Save DFS product (image)
int dfs_save_image(cpl_frameset *, const cpl_image *, const char *, cpl_propertylist *, const cpl_parameterlist *, const char *, const char *) CPL_ATTR_DEPRECATED
Saving image data of given category.
cpl_table * dfs_load_table(cpl_frameset *, const char *, int)
Loading table data of given category.
int dfs_get_parameter_int(cpl_parameterlist *, const char *, const cpl_table *)
Reading a recipe integer parameter value.
int dfs_save_table(cpl_frameset *, const cpl_table *, const char *, cpl_propertylist *, const cpl_parameterlist *, const char *, const char *) CPL_ATTR_DEPRECATED
Saving table data of given category.
const char * dfs_get_parameter_string_const(const cpl_parameterlist *, const char *)
double dfs_get_parameter_double(cpl_parameterlist *, const char *, const cpl_table *)
Reading a recipe double parameter value.
const char * fors_dfs_pipeline_version(const cpl_propertylist *header, const char **instrument_version)
Get pipeline and instrument versions.
void fors_dfs_add_wcs(cpl_propertylist *header, const cpl_frame *frame, const fors_setting *setting)
add WCS keywords to header
double dfs_get_parameter_double_const(const cpl_parameterlist *, const char *)
void fors_dfs_save_image_err(cpl_frameset *frameset, const fors_image *image, const char *category, cpl_propertylist *header, cpl_propertylist *err_header, const cpl_parameterlist *parlist, const char *recipename, const cpl_frame *raw_frame)
Save DFS product (image) with it error data.