sinfo_atmo_disp.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004-2009 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 
00020 /*
00021  * $Author: amodigli $
00022  * $Date: 2010/02/08 07:15:18 $
00023  * $Revision: 1.4 $
00024  */
00025 
00026 #ifndef SINFO_ATMO_DISP_H_
00027 #define SINFO_ATMO_DISP_H_
00028 
00029 cpl_error_code 
00030 sinfo_atm_dispersion_cube(cpl_imagelist* pCube,
00031         int centpix, // central plane in the cube CRPIX3
00032         double centlambda, // wavelength of the central plane CRVAL3
00033         double Tc, // temperature in Celsius TEL.AMBI.TEMP
00034         double Rh, // relative humidity in % TEL.AMBI.RHUM
00035         double airm, // airmass for the moment of observation TEL.AMBI.PRES
00036         double p, // atmospheric pressure TEL.AMBI.PRES
00037         double parallactic, // TEL.PARANG
00038         double pixelscale, // could be for SINFONI 0.025, 0.100, 0.250
00039         double pixelsz // microns per pixel CDELT3
00040               );
00041 
00042 
00043 void calcAtmosphericDispersion( double lambda, double lambda0, double *shiftX, double *shiftY, double *deltaR,
00044                    double Tc,
00045                    double rh,
00046                    double airm,
00047                    double p,
00048                    double parallactic,
00049                    double pixelscale);
00050 cpl_error_code sinfo_atmo_dispersion_cube(cpl_imagelist* pCube,
00051         int centpix, // central plane in the cube
00052         double centlambda, // wavelength of the central plane
00053         double Tc, // temperature in Celsius TEL.AMBI.TEMP
00054         double Rh, // relative humidity in % TEL.AMBI.RHUM
00055         double airm, // airmass for the moment of observation TEL.AMBI.PRES
00056         double p, // atmospheric pressure TEL.AMBI.PRES
00057         double parallactic, // TEL.PARANG
00058         double pixelscale, // could be for SINFONI 0.025, 0.100, 0.250
00059         double pixelsz // microns per pixel CDELT3
00060         );
00061 cpl_imagelist* sinfo_atmo_apply_cube_polynomial_shift(
00062         cpl_polynomial* poly,
00063         cpl_imagelist* pCube,
00064         double lambda0,
00065         double airmass,
00066         double parallactic, // should be in radian
00067         double pixelsz,
00068         int centpix);
00069 cpl_polynomial* sinfo_atmo_load_polynom(const char* filename);
00070 #endif /* SINFO_ATM_DISP_H_ */

Generated on 3 Mar 2013 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1