Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/weath_8cc_source.html
Дата изменения: Tue Sep 15 02:25:38 2015
Дата индексирования: Sun Apr 10 00:29:40 2016
Кодировка:

Поисковые слова: m 5
lsst.tcc: src/weath.cc Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
weath.cc
Go to the documentation of this file.
1 #include "slalib.h"
2 #include "coordConv/physConst.h"
3 #include "tcc/weath.h"
4 
5 namespace tcc {
6 
8  :
9  airTemp(10.0),
10  secTrussTemp(10.0),
11  primFrontTemp(),
12  primBackFrontTemp(),
13  secFrontTemp(),
14  secBackFrontTemp(),
15  press(71787),
16  humid(0.2),
17  tempLapseRate(6.5),
18  windSpeed(0),
19  windDir(0),
20  timestamp(0)
21  { };
22 
23  void Weath::computeRefCo(double &refCoA, double &refCoB, double wavelen, double elev, double lat) const {
24  double const eps = 1e-10; // precision required to terminate iteration (radian)
25  double refCoARad, refCoBRad;
26  slaRefco(
27  elev, // height of the observer above sea level (metre) (m)
28  airTemp + coordConv::DegK_DegC, // ambient temperature at the observer (K)
29  press / coordConv::PascalsPerMillibar, // pressure at the observer (hPa = millibar)
30  humid, // relative humidity (fraction)
31  wavelen / coordConv::AngstromsPerMicron, // wavelength (micron)
32  lat * coordConv::RadPerDeg, // latitude of the observer (radian, astronomical)
33  tempLapseRate / 1000.0, // temperature lapse rate in the troposphere (K/metre)
34  eps, // precision required to terminate iteration (radian)
35  &refCoARad, // tan z coefficient (radian)
36  &refCoBRad); // tan^3 z coefficient (radian)
37  refCoA = refCoARad / coordConv::RadPerDeg;
38  refCoB = refCoBRad / coordConv::RadPerDeg;
39  }
40 
41  void Weath::updateSite(coordConv::Site &site) const {
42  computeRefCo(site.refCoA, site.refCoB, site.wavelen, site.elev, site.meanLat);
43  };
44 
45 }
double humid
humidity (fraction)
Definition: weath.h:18
void computeRefCo(double &refCoA, double &refCoB, double wavelen, double elev, double lat) const
Definition: weath.cc:23
double tempLapseRate
temperature lapse rate (C/km); 6.5 is a good default
Definition: weath.h:19
Weath()
Definition: weath.cc:7
double press
air pressure (Pascals)
Definition: weath.h:17
double airTemp
ambient air temperature (C)
Definition: weath.h:11
void updateSite(coordConv::Site &site) const
Definition: weath.cc:41