fitshead.h

00001 #ifndef _FITSHEAD_H
00002 #define _FITSHEAD_H
00003 /*******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: fitshead.h,v 1.9 2005/07/21 06:37:36 amodigli Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  ----------------------------------------------
00010 * schreib  19/02/02  created
00011 */
00012 
00013 /************************************************************************
00014  * fitshead.h
00015  * routines to read fits header keywords
00016  *----------------------------------------------------------------------
00017  */
00018 
00019 /*
00020  * header files
00021  */
00022 
00023 /*
00024 #include <stdio.h>
00025 #include <float.h>
00026 #include <string.h>
00027 #include <math.h>
00028 */
00029 #include <qfits.h>
00030 #include <cpl.h>
00031  
00032 #include "eclipse.h"
00033 #include "fits_h.h"
00034 #include "fits_rw.h"
00035 #include "spiffi_types.h"
00036 
00037 /*----------------------------------------------------------------------------
00038    Function     :       spiffi_get_dit()
00039    In           :       fits file name
00040    Out          :       dit
00041    Job          :       reads keyword DIT in the FITS-header
00042  ---------------------------------------------------------------------------*/
00043 float spiffi_get_dit ( char * filename );
00044 
00045 
00046 /*----------------------------------------------------------------------------
00047    Function     :       spiffi_get_magnitude()
00048    In           :       fits file name
00049    Out          :       magnitude
00050    Job          :       reads keyword AOS RTC GUIDESTAR MAGNITUDE in the FITS-header
00051  ---------------------------------------------------------------------------*/
00052 float spiffi_get_magnitude ( char * filename );
00053 
00054 
00055 
00056 /*----------------------------------------------------------------------------
00057    Function     :       spiffi_get_naxis1()
00058    In           :       fits file name
00059    Out          :       naxis1
00060    Job          :       reads keyword NAXIS1 in the FITS-header
00061  ---------------------------------------------------------------------------*/
00062 /*<python>*/
00063 float spiffi_get_naxis1 ( char * filename ) ;
00064 /*</python>*/
00065 /*----------------------------------------------------------------------------
00066    Function     :       spiffi_get_naxis2()
00067    In           :       fits file name
00068    Out          :       naxis2
00069    Job          :       reads keyword NAXIS2 in the FITS-header
00070  ---------------------------------------------------------------------------*/
00071 /*<python>*/
00072 float spiffi_get_naxis2 ( char * filename ) ;
00073 /*</python>*/
00074 
00075 /*----------------------------------------------------------------------------
00076    Function     :       spiffi_get_naxis3()
00077    In           :       fits file name
00078    Out          :       naxis3
00079    Job          :       reads keyword NAXIS3 in the FITS-header
00080  ---------------------------------------------------------------------------*/
00081 float spiffi_get_naxis3 ( char * filename ) ;
00082 
00083 /*----------------------------------------------------------------------------
00084  *                      Function ANSI C prototypes
00085  *--------------------------------------------------------------------------*/
00086 
00087 /*----------------------------------------------------------------------------
00088    Function     :       spiffi_get_exptime()
00089    In           :       fits file name
00090    Out          :       total integration time in sec
00091    Job          :       reads the exposure time keyword in the FITS-header
00092  ---------------------------------------------------------------------------*/
00093 /*<python>*/
00094 float spiffi_get_exptime ( char * filename ) ;
00095 /*</python>*/
00096 
00097 /*----------------------------------------------------------------------------
00098    Function     :       spiffi_get_skyspiderposindex()
00099    In           :       fits file name
00100                         posindicator: integer indicating the place of the 4 possible
00101                                       image edges where the sky is placed.
00102    Out          :       position index of the sky spider wheel
00103    Job          :       reads sky spider keyword HIERARCH ESO INS MIRR2 NAME in the FITS-header
00104  ---------------------------------------------------------------------------*/
00105 /*<python>*/
00106 int * spiffi_get_skyspiderposindex ( char * filename, int * posindicator ) ;
00107 /*</python>*/
00108 
00109 /*----------------------------------------------------------------------------
00110    Function     :       spiffi_get_cumoffsetx()
00111    In           :       fits file name
00112    Out          :       relative pixel offset of a sequence of jittered exposures
00113                         in x-direction w.r.t the first frame
00114    Job          :       reads keyword HIERARCH ESO SEQ CUMOFFSETX in the FITS-header
00115  ---------------------------------------------------------------------------*/
00116 
00117 /*<python>*/
00118 float spiffi_get_cumoffsetx ( char * filename ) ;
00119 /*</python>*/
00120 
00121 /*----------------------------------------------------------------------------
00122    Function     :       spiffi_get_cumoffseta()
00123    In           :       fits file name
00124    Out          :       relative pixel offset of a sequence of jittered exposures
00125                         in x-direction w.r.t the first frame
00126    Job          :       reads keyword HIERARCH ESO SEQ CUMOFFSETA in the FITS-header
00127  ---------------------------------------------------------------------------*/
00128 
00129 /*<python>*/
00130 float spiffi_get_cumoffseta ( char * filename ) ;
00131 /*</python>*/
00132 
00133 
00134 /*----------------------------------------------------------------------------
00135    Function     :       spiffi_get_cumoffsetd()
00136    In           :       fits file name
00137    Out          :       relative pixel offset of a sequence of jittered exposures
00138                         in x-direction w.r.t the first frame
00139    Job          :       reads keyword HIERARCH ESO SEQ CUMOFFSETD in the FITS-header
00140  ---------------------------------------------------------------------------*/
00141 
00142 /*<python>*/
00143 float spiffi_get_cumoffsetd ( char * filename ) ;
00144 /*</python>*/
00145 
00146 /*----------------------------------------------------------------------------
00147    Function     :       spiffi_get_cumoffsety()
00148    In           :       fits file name
00149    Out          :       relative pixel offset of a sequence of jittered exposures in
00150                         y-direction w.r.t. the first frame
00151    Job          :       reads keyword HIERARCH ESO SEQ CUMOFFSETY in the FITS-header
00152  ---------------------------------------------------------------------------*/
00153 
00154 /*<python>*/
00155 float spiffi_get_cumoffsety ( char * filename ) ;
00156 /*</python>*/
00157 
00158 /*----------------------------------------------------------------------------
00159    Function     :       spiffi_get_reloffsetra()
00160    In           :       fits file name
00161    Out          :       relative pixel offset of a sequence of jittered exposures
00162                         in x-direction w.r.t the first frame
00163    Job          :       reads keyword HIERARCH ESO SEQ RELOFFSETRA in the FITS-header
00164  ---------------------------------------------------------------------------*/
00165 
00166 /*<python>*/
00167 float spiffi_get_reloffsetx ( char * filename ) ;
00168 /*</python>*/
00169 
00170 /*----------------------------------------------------------------------------
00171    Function     :       spiffi_get_reloffsety()
00172    In           :       fits file name
00173    Out          :       relative pixel offset of a sequence of jittered exposures in
00174                         y-direction w.r.t. the first frame
00175    Job          :       reads keyword HIERARCH ESO SEQ RELOFFSETDEC in the FITS-header
00176  ---------------------------------------------------------------------------*/
00177 
00178 /*<python>*/
00179 float spiffi_get_reloffsety ( char * filename ) ;
00180 /*</python>*/
00181 
00182 /*----------------------------------------------------------------------------
00183    Function     :       spiffi_get_pixelscale()
00184    In           :       fits file name
00185    Out          :       pixel scale, if open or ref position of preoptics wheel-> 0
00186    Job          :       reads keyword HIERARCH ESO INS OPTI1 NAME in the FITS-header
00187  ---------------------------------------------------------------------------*/
00188 
00189 /*<python>*/
00190 float spiffi_get_pixelscale ( char * filename ) ;
00191 /*</python>*/
00192 
00193 /*----------------------------------------------------------------------------
00194    Function     :       spiffi_get_RA()
00195    In           :       fits file name
00196    Out          :       RA of pointing
00197    Job          :       reads keyword RA in the FITS-header
00198 ---------------------------------------------------------------------------*/
00199 
00200 /*<python>*/
00201 float spiffi_get_RA ( char * filename ) ;
00202 /*</python>*/
00203 
00204 /*----------------------------------------------------------------------------
00205    Function     :       spiffi_get_DEC()
00206    In           :       fits file name
00207    Out          :       DEC of pointing
00208    Job          :       reads keyword DEC in the FITS-header
00209 ---------------------------------------------------------------------------*/
00210 
00211 /*<python>*/
00212 float spiffi_get_DEC ( char * filename ) ;
00213 /*</python>*/
00214 
00215 /*----------------------------------------------------------------------------
00216    Function     :       spiffi_get_posangle()
00217    In           :       fits file name
00218    Out          :       position angle of rotator
00219    Job          :       reads keyword HIERARCH ESO ADA POSANG in the FITS-header
00220 ---------------------------------------------------------------------------*/
00221 
00222 /*<python>*/
00223 float spiffi_get_posangle ( char * filename ) ;
00224 /*</python>*/
00225 
00226 /*----------------------------------------------------------------------------
00227    Function     :       spiffi_get_cenpix()
00228    In           :       fits file name
00229    Out          :       reference pixel of wavelength axis
00230    Job          :       reads keyword CRPIX3 in the FITS-header
00231  ---------------------------------------------------------------------------*/
00232 
00233 /*<python>*/
00234 float spiffi_get_cenpix ( char * filename ) ;
00235 /*</python>*/
00236 
00237 /*----------------------------------------------------------------------------
00238    Function     :       spiffi_get_cenLambda()
00239    In           :       fits file name
00240    Out          :       central wavelength
00241    Job          :       reads keyword CRVAL3 in the FITS-header
00242 ---------------------------------------------------------------------------*/
00243 
00244 /*<python>*/
00245 double spiffi_get_cenLambda ( char * filename ) ;
00246 /*</python>*/
00247 
00248 /*----------------------------------------------------------------------------
00249    Function     :       spiffi_get_dispersion()
00250    In           :       fits file name
00251    Out          :       microns/pixel
00252    Job          :       reads keyword CDELT3 in the FITS-header
00253 ---------------------------------------------------------------------------*/
00254 
00255 /*<python>*/
00256 double spiffi_get_dispersion ( char * filename ) ;
00257 /*</python>*/
00258 
00259 float spiffi_get_ditndit ( char * filename );
00260 #endif 
00262 /*--------------------------------------------------------------------------*/

Generated on Wed Oct 26 13:08:52 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001