fors_dfs.h

00001 /* $Id: fors_dfs.h,v 1.30 2010/09/14 07:49:30 cizzo Exp $
00002  *
00003  * This file is part of the FORS Pipeline
00004  * Copyright (C) 2002-2010 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00019  */
00020 
00021 /*
00022  * $Author: cizzo $
00023  * $Date: 2010/09/14 07:49:30 $
00024  * $Revision: 1.30 $
00025  * $Name: fors-4_8_6 $
00026  */
00027 
00028 #ifndef FORS_DFS_H
00029 #define FORS_DFS_H
00030 
00031 #include <fors_image.h>
00032 
00033 #include <cpl.h>
00034 
00035 CPL_BEGIN_DECLS
00036 
00037 /* Raw frames */
00038 #define BIAS                    "BIAS"
00039 #define DARK                    "DARK"
00040 #define SCREEN_FLAT_IMG         "SCREEN_FLAT_IMG"
00041 #define SKY_FLAT_IMG            "SKY_FLAT_IMG"
00042 #define STANDARD_IMG            "STANDARD_IMG"
00043 #define SCIENCE_IMG             "SCIENCE_IMG"
00044 
00045 /* Pipeline products */
00046 #define MASTER_BIAS             "MASTER_BIAS"
00047 #define MASTER_DARK             "MASTER_DARK"
00048 #define MASTER_SCREEN_FLAT_IMG  "MASTER_SCREEN_FLAT_IMG"
00049 #define MASTER_NORM_FLAT_IMG    "MASTER_NORM_FLAT_IMG"
00050 #define MASTER_SKY_FLAT_IMG     "MASTER_SKY_FLAT_IMG"
00051 #define SOURCES_SCI             "SOURCES_SCI_IMG"
00052 #define SOURCES_STD             "SOURCES_STD_IMG"
00053 #define ALIGNED_PHOT            "ALIGNED_PHOT"
00054 #define STANDARD_REDUCED_IMG    "STANDARD_REDUCED_IMG"
00055 #define SCIENCE_REDUCED_IMG     "SCIENCE_REDUCED_IMG"
00056 #define PHOTOMETRY_TABLE        "OBJECT_TABLE_SCI_IMG"
00057 #define PHOT_BACKGROUND_SCI_IMG "PHOT_BACKGROUND_SCI_IMG"
00058 #define PHOT_BACKGROUND_STD_IMG "PHOT_BACKGROUND_STD_IMG"
00059 #define CORRECTION_MAP          "CORRECTION_MAP"
00060 #define CORRECTION_FACTOR       "CORRECTION_FACTOR"
00061 #define MASTER_FLAT_IMG         "MASTER_FLAT_IMG"
00062 #define PHOT_COEFF_TABLE        "PHOT_COEFF_TABLE"
00063 #define EXTINCTION_PER_NIGHT    "EXTINCTION_PER_NIGHT"
00064 #define EXTINCTION_PER_FRAME    "EXTINCTION_PER_FRAME"
00065 
00066 /* Static calibration */
00067 #define FLX_STD_IMG             "FLX_STD_IMG"
00068 #define PHOT_TABLE              "PHOT_TABLE"
00069 
00070 void fors_dfs_set_groups(cpl_frameset * set);
00071 const char *fors_dfs_pipeline_version(const cpl_propertylist *header, 
00072                       const char **instrument_version);
00073 char *dfs_generate_filename(const char *);
00074 char *dfs_generate_filename_tfits(const char *);
00075 int dfs_get_parameter_bool(cpl_parameterlist *, const char *, 
00076                            const cpl_table *);
00077 int dfs_get_parameter_int(cpl_parameterlist *, const char *, 
00078                           const cpl_table *);
00079 double dfs_get_parameter_double(cpl_parameterlist *, const char *, 
00080                                 const cpl_table *);
00081 const char *dfs_get_parameter_string(cpl_parameterlist *, const char *, 
00082                                      const cpl_table *);
00083 int dfs_get_parameter_bool_const(const cpl_parameterlist *, const char *);
00084 int dfs_get_parameter_int_const(const cpl_parameterlist *, const char *);
00085 double dfs_get_parameter_double_const(const cpl_parameterlist *, const char *);
00086 const char *dfs_get_parameter_string_const(const cpl_parameterlist *, const char *);
00087 cpl_image *dfs_load_image(cpl_frameset *, const char *, cpl_type, int, int);
00088 cpl_table *dfs_load_table(cpl_frameset *, const char *, int);
00089 cpl_propertylist *dfs_load_header(cpl_frameset *, const char *, int);
00090 void fors_dfs_add_wcs(cpl_propertylist *header, const cpl_frame *frame,
00091                       const fors_setting *setting);
00092 void fors_dfs_add_exptime(cpl_propertylist *header, const cpl_frame *frame,
00093                           double exptime);
00094 void fors_dfs_save_image(cpl_frameset *frameset, const fors_image *image,
00095              const char *category, cpl_propertylist *header,
00096              const cpl_parameterlist *parlist, const char *recipename,
00097              const cpl_frame *raw_frame);
00098 void fors_dfs_save_image_wcs(cpl_frameset *frameset, const fors_image *image,
00099                  const char *category, cpl_propertylist *header,
00100                  const cpl_parameterlist *parlist, const char *recipename,
00101                  const cpl_frame *raw_frame);
00102 void fors_dfs_save_table(cpl_frameset *frameset, const cpl_table *table,
00103              const char *category, cpl_propertylist *header,
00104              const cpl_parameterlist *parlist, const char *recipename,
00105              const cpl_frame *raw_frame);
00106 int dfs_save_image(cpl_frameset *, const cpl_image *, const char *, 
00107                    cpl_propertylist *, const cpl_parameterlist *, 
00108                    const char *, const char *);
00109 int dfs_save_table(cpl_frameset *, const cpl_table *, const char *, 
00110                    cpl_propertylist *, const cpl_parameterlist *, 
00111                    const char *, const char *);
00112 int dfs_files_dont_exist(cpl_frameset *frameset);
00113 int dfs_equal_keyword(cpl_frameset *frameset, const char *keyword);
00114 void fors_begin(cpl_frameset *frames, const char *description_short);
00115 int fors_end(const cpl_frameset *frames, cpl_errorstate before_exec);
00116 
00117 cpl_error_code dfs_save_table_ext(cpl_table *, const char *,
00118                   cpl_propertylist *);
00119 cpl_error_code dfs_save_image_ext(cpl_image *, const char *,
00120                   cpl_propertylist *);
00121 cpl_error_code dfs_save_image_null(cpl_frameset *, cpl_parameterlist *,
00122                    const char *, const char *,
00123                    const char *);
00124 
00125 CPL_END_DECLS
00126 
00127 #endif   /* FORS_DFS_H */

Generated on Fri Mar 4 09:46:00 2011 for FORS Pipeline Reference Manual by  doxygen 1.4.7