Defines | |
| #define | WCS_KEYS "^((CRVAL|CRPIX|CTYPE)[0-9]|RADECSYS|CD[0-9]_[0-9])$" |
| #define | cleanup |
| #define | cleanup |
| #define | cleanup |
| #define | cleanup |
Functions | |
| static char * | strlower (char *s) |
| char * | dfs_generate_filename (const char *category) |
| char * | dfs_generate_filename_tfits (const char *category) |
| static void | errorstate_dump_one (unsigned self, unsigned first, unsigned last) |
| Dump a single CPL error. | |
| void | fors_begin (cpl_frameset *frames, const char *description_short) |
| Start recipe execution. | |
| int | fors_end (const cpl_frameset *frames, cpl_errorstate before_exec) |
| End recipe execution. | |
| void | fors_dfs_set_groups (cpl_frameset *set) |
| Set the group as RAW or CALIB in a frameset. | |
| const char * | fors_dfs_pipeline_version (const cpl_propertylist *header, const char **instrument_version) |
| Get pipeline and instrument versions. | |
| int | dfs_get_parameter_int (cpl_parameterlist *parlist, const char *name, const cpl_table *defaults) |
| Reading a recipe integer parameter value. | |
| double | dfs_get_parameter_double (cpl_parameterlist *parlist, const char *name, const cpl_table *defaults) |
| Reading a recipe double parameter value. | |
| const char * | dfs_get_parameter_string (cpl_parameterlist *parlist, const char *name, const cpl_table *defaults) |
| Reading a recipe string parameter value. | |
| int | dfs_get_parameter_bool (cpl_parameterlist *parlist, const char *name, const cpl_table *defaults) |
| Reading a recipe boolean parameter value. | |
| int | dfs_get_parameter_bool_const (const cpl_parameterlist *parlist, const char *name) |
| int | dfs_get_parameter_int_const (const cpl_parameterlist *parlist, const char *name) |
| double | dfs_get_parameter_double_const (const cpl_parameterlist *parlist, const char *name) |
| const char * | dfs_get_parameter_string_const (const cpl_parameterlist *parlist, const char *name) |
| cpl_image * | dfs_load_image (cpl_frameset *frameset, const char *category, cpl_type type, int ext, int calib) |
| Loading image data of given category. | |
| cpl_table * | dfs_load_table (cpl_frameset *frameset, const char *category, int ext) |
| Loading table data of given category. | |
| cpl_propertylist * | dfs_load_header (cpl_frameset *frameset, const char *category, int ext) |
| Loading header associated to data of given category. | |
| static void | dfs_save (cpl_frameset *frameset, const void *object, cpl_frame_type type, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const cpl_frame *raw_frame) |
| Save DFS product. | |
| void | fors_dfs_save_image (cpl_frameset *frameset, const fors_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_add_wcs (cpl_propertylist *header, const cpl_frame *frame, const fors_setting *setting) |
| add WCS keywords to header | |
| void | fors_dfs_add_exptime (cpl_propertylist *header, const cpl_frame *frame, double exptime) |
| Add keyword EXPTIME to header. | |
| 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). | |
| int | dfs_save_image (cpl_frameset *frameset, const cpl_image *image, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const char *version) |
| Saving image data of given category. | |
| int | dfs_save_table (cpl_frameset *frameset, const cpl_table *table, const char *category, cpl_propertylist *header, const cpl_parameterlist *parlist, const char *recipename, const char *version) |
| Saving table data of given category. | |
| int | dfs_files_dont_exist (cpl_frameset *frameset) |
| Check if all SOF files exist. | |
| int | dfs_equal_keyword (cpl_frameset *frameset, const char *keyword) |
| Saving table data of given category. | |
|
|
Value: do { \ cpl_propertylist_delete(wcs_header); \ } while (0) Definition at line 1166 of file fors_dfs.c. |
|
|
Value: do { \ cpl_propertylist_delete(time_header); \ } while (0) Definition at line 1166 of file fors_dfs.c. |
|
||||||||||||||||
|
Dump a single CPL error.
Definition at line 131 of file fors_dfs.c. |
|
||||||||||||
|
Start recipe execution.
Definition at line 214 of file fors_dfs.c. References fors_dfs_set_groups(), and fors_frameset_print(). Referenced by fors_bias_exec(), fors_dark_exec(), fors_img_science_exec(), fors_img_screen_flat_exec(), fors_img_sky_flat_exec(), fors_photometry_exec(), fors_recipe_exec(), and fors_zeropoint_exec(). |
|
||||||||||||
|
End recipe execution.
If a CPL error is set, the error history since recipe execution start is printed. Definition at line 242 of file fors_dfs.c. References fors_frame_print(). Referenced by fors_bias_exec(), fors_dark_exec(), fors_img_science_exec(), fors_img_screen_flat_exec(), fors_img_sky_flat_exec(), fors_photometry_exec(), fors_recipe_exec(), and fors_zeropoint_exec(). |
|
|
Set the group as RAW or CALIB in a frameset.
Definition at line 280 of file fors_dfs.c. References assure. Referenced by fors_begin(). |
|
||||||||||||
|
Get pipeline and instrument versions.
Definition at line 332 of file fors_dfs.c. References assure, FORS_PFITS_INSTRUME, and instrume. Referenced by dfs_save(). |
|
||||||||||||||||
|
Reading a recipe integer parameter value.
cpl_parameter_get_int(), but if a defaults table is passed then the parameter value is searched in that table. If it is found, the parameter value will be modified also on the input parameter list before being returned, so that it would appear on the recipe products headers. If the parameter is not found, then the parameter value is simply read from the input parameter list. If a defaults table is not specified, then this function works exactly as the function cpl_parameter_get_int().
Definition at line 379 of file fors_dfs.c. Referenced by dfs_get_parameter_int_const(). |
|
||||||||||||||||
|
Reading a recipe double parameter value.
cpl_parameter_get_double(), but if a defaults table is passed then the parameter value is searched in that table. If it is found, the parameter value will be modified also on the input parameter list before being returned, so that it would appear on the recipe products headers. If the parameter is not found, then the parameter value is simply read from the input parameter list. If a defaults table is not specified, then this function works exactly as the function cpl_parameter_get_double().
Definition at line 474 of file fors_dfs.c. Referenced by dfs_get_parameter_double_const(). |
|
||||||||||||||||
|
Reading a recipe string parameter value.
cpl_parameter_get_string(), but if a defaults table is passed then the parameter value is searched in that table. If it is found, the parameter value will be modified also on the input parameter list before being returned, so that it would appear on the recipe products headers. If the parameter is not found, then the parameter value is simply read from the input parameter list. If a defaults table is not specified, then this function works exactly as the function cpl_parameter_get_string().
Definition at line 569 of file fors_dfs.c. Referenced by dfs_get_parameter_string_const(). |
|
||||||||||||||||
|
Reading a recipe boolean parameter value.
cpl_parameter_get_bool(), but if a defaults table is passed then the parameter value is searched in that table. If it is found, the parameter value will be modified also on the input parameter list before being returned, so that it would appear on the recipe products headers. If the parameter is not found, then the parameter value is simply read from the input parameter list. If a defaults table is not specified, then this function works exactly as the function cpl_parameter_get_bool().
Definition at line 665 of file fors_dfs.c. Referenced by dfs_get_parameter_bool_const(). |
|
||||||||||||
|
Definition at line 755 of file fors_dfs.c. References dfs_get_parameter_bool(). Referenced by fors_photometry(). |
|
||||||||||||
|
Definition at line 763 of file fors_dfs.c. References dfs_get_parameter_int(). Referenced by fors_extract_method_new(), fors_identify_method_new(), fors_photometry(), fors_stack_method_new(), remove_large_scale(), and remove_large_scale_fit(). |
|
||||||||||||
|
Definition at line 771 of file fors_dfs.c. References dfs_get_parameter_double(). Referenced by fors_identify_method_new(), fors_stack_method_new(), and fors_zeropoint(). |
|
||||||||||||
|
Definition at line 779 of file fors_dfs.c. References dfs_get_parameter_string(). Referenced by fors_extract_method_new(), and fors_stack_method_new(). |
|
||||||||||||||||||||||||
|
Loading image data of given category.
cpl_frameset_find() and cpl_image_load(), as they typically are called every time an image should be loaded by a recipe. Error checking and proper messaging are also included here, to give a more readable look to the main recipe code.
In case of any error, a Definition at line 813 of file fors_dfs.c. |
|
||||||||||||||||
|
Loading table data of given category.
cpl_frameset_find() and cpl_table_load(), as they typically are called every time a table should be loaded by a recipe. Error checking and proper messaging are also included here, to give a more readable look to the main recipe code.
In case of any error, a Definition at line 869 of file fors_dfs.c. |
|
||||||||||||||||
|
Loading header associated to data of given category.
cpl_frameset_find() and cpl_propertylist_load(), as they typically are called every time a header should be loaded by a recipe. Error checking and proper messaging are also included here, to give a more readable look to the main recipe code.
In case of any error, a Definition at line 919 of file fors_dfs.c. |
|
||||||||||||||||||||||||||||||||||||
|
Save DFS product.
Definition at line 951 of file fors_dfs.c. References fors_dfs_pipeline_version(), fors_image_save(), and strlower(). Referenced by fors_dfs_save_image(), and fors_dfs_save_table(). |
|
||||||||||||||||||||||||||||||||
|
Save DFS product (image).
The instrument version number is determined from the header of the input raw frame. Definition at line 1108 of file fors_dfs.c. References dfs_save(). Referenced by fors_bias(), fors_dark(), fors_img_science(), fors_img_screen_flat(), and fors_zeropoint(). |
|
||||||||||||||||
|
add WCS keywords to header
Definition at line 1129 of file fors_dfs.c. References assure, cleanup, FORS_PFITS_CRPIX1, FORS_PFITS_CRPIX2, _fors_setting::prescan_x, _fors_setting::prescan_y, and WCS_KEYS. Referenced by fors_img_science(), and fors_zeropoint(). |
|
||||||||||||||||
|
Add keyword EXPTIME to header.
Definition at line 1183 of file fors_dfs.c. References cleanup. Referenced by fors_img_science(), and fors_zeropoint(). |
|
||||||||||||||||||||||||||||||||
|
Save DFS product (table).
Definition at line 1223 of file fors_dfs.c. References dfs_save(). Referenced by fors_img_science(), and fors_zeropoint(). |
|
||||||||||||||||||||||||||||||||
|
Saving image data of given category.
The output file name will be derived from the specified category by lowercasing it and by appending the suffix ".fits". The new image is properly logged in the input set-of-frames in case of success.
The error codes that are set in this case are the same set by the above mentioned CPL functions. The "where" string (accessible via a call to Definition at line 1266 of file fors_dfs.c. References strlower(). Referenced by fors_img_science(), and fors_zeropoint(). |
|
||||||||||||||||||||||||||||||||
|
Saving table data of given category.
The output file name will be derived from the specified category by lowercasing it and by appending the suffix ".fits". The new table is properly logged in the input set-of-frames in case of success.
The error codes that are set in this case are the same set by the above mentioned CPL functions. The "where" string (accessible via a call to Definition at line 1396 of file fors_dfs.c. References strlower(). |
|
|
Check if all SOF files exist.
Definition at line 1509 of file fors_dfs.c. |
|
||||||||||||
|
Saving table data of given category.
Definition at line 1560 of file fors_dfs.c. |
1.4.6