SINFONI Pipeline Reference Manual  2.6.0
sinfo_atmo_disp.h
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004-2009 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18  */
19 
20 /*
21  * $Author: amodigli $
22  * $Date: 2010-02-08 07:15:18 $
23  * $Revision: 1.4 $
24  */
25 
26 #ifndef SINFO_ATMO_DISP_H_
27 #define SINFO_ATMO_DISP_H_
28 
29 cpl_error_code
30 sinfo_atm_dispersion_cube(cpl_imagelist* pCube,
31  int centpix, // central plane in the cube CRPIX3
32  double centlambda, // wavelength of the central plane CRVAL3
33  double Tc, // temperature in Celsius TEL.AMBI.TEMP
34  double Rh, // relative humidity in % TEL.AMBI.RHUM
35  double airm, // airmass for the moment of observation TEL.AMBI.PRES
36  double p, // atmospheric pressure TEL.AMBI.PRES
37  double parallactic, // TEL.PARANG
38  double pixelscale, // could be for SINFONI 0.025, 0.100, 0.250
39  double pixelsz // microns per pixel CDELT3
40  );
41 
42 
43 void calcAtmosphericDispersion( double lambda, double lambda0, double *shiftX, double *shiftY, double *deltaR,
44  double Tc,
45  double rh,
46  double airm,
47  double p,
48  double parallactic,
49  double pixelscale);
50 cpl_error_code sinfo_atmo_dispersion_cube(cpl_imagelist* pCube,
51  int centpix, // central plane in the cube
52  double centlambda, // wavelength of the central plane
53  double Tc, // temperature in Celsius TEL.AMBI.TEMP
54  double Rh, // relative humidity in % TEL.AMBI.RHUM
55  double airm, // airmass for the moment of observation TEL.AMBI.PRES
56  double p, // atmospheric pressure TEL.AMBI.PRES
57  double parallactic, // TEL.PARANG
58  double pixelscale, // could be for SINFONI 0.025, 0.100, 0.250
59  double pixelsz // microns per pixel CDELT3
60  );
61 cpl_imagelist* sinfo_atmo_apply_cube_polynomial_shift(
62  cpl_polynomial* poly,
63  cpl_imagelist* pCube,
64  double lambda0,
65  double airmass,
66  double parallactic, // should be in radian
67  double pixelsz,
68  int centpix);
69 cpl_polynomial* sinfo_atmo_load_polynom(const char* filename);
70 #endif /* SINFO_ATM_DISP_H_ */