fors_setting.h

00001 /* $Id: fors_setting.h,v 1.14 2007/11/26 14:00:17 jmlarsen Exp $
00002  *
00003  * This file is part of the FORS Library
00004  * Copyright (C) 2002-2006 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: jmlarsen $
00023  * $Date: 2007/11/26 14:00:17 $
00024  * $Revision: 1.14 $
00025  * $Name:  $
00026  */
00027 
00028 #ifndef FORS_SETTING_H
00029 #define FORS_SETTING_H
00030 
00031 #include <cpl.h>
00032 
00033 enum filter
00034 {
00035     FILTER_U, 
00036     FILTER_B, 
00037     FILTER_G,
00038     FILTER_V, 
00039     FILTER_R, 
00040     FILTER_I, 
00041     FILTER_Z
00042 };
00043 
00044 #define FORS_NUM_FILTER 7
00045 
00046 typedef struct _fors_setting {
00047 
00048     int binx, biny;
00049 
00050     int prescan_x, prescan_y;   /* prescan width in 
00051                    software (binned) pixels */
00052     
00053 /* not used for now
00054    int ccd_x, ccd_y;  / * CCD size in
00055               physical pixels,
00056               not FITS pixels 
00057                */
00058     enum filter filter; /* deprecate this */
00059 
00060     const char *filter_name; /* NULL if no filter */
00061 
00062 
00063     double exposure_time;  /* seconds */
00064 
00065     double average_gain;  /* average ESO gain of all read-out ports */
00066 
00067     double ron;        /* average read-out-noise (ADU) of all read-out ports */
00068 
00069     double pixel_scale;  /*  arcsec/pixel, positive */
00070 
00071     const char *read_clock;
00072     const char *chip_id;
00073 
00074     const char *instrument;  /* e.g. fors1 */
00075     const char *version;     /* e.g. fors1/4.0.0 */
00076     
00077 } fors_setting;
00078 
00079 struct filtername { 
00080     const char *name;
00081     enum filter filter;
00082 };
00083 
00084 extern struct filtername FORS_DATA_FILTERLIST[14];
00085 
00086 fors_setting *
00087 fors_setting_new(const cpl_frame *raw);
00088 
00089 void
00090 fors_setting_verify(const fors_setting *ref_setting, const cpl_frame *frame,
00091             fors_setting **setting);
00092 
00093 void fors_setting_delete(fors_setting **s);
00094 
00095 #endif

Generated on Wed Sep 10 07:31:52 2008 for FORS Pipeline Reference Manual by  doxygen 1.4.6