2 #include "coordConv/physConst.h"
23 void Weath::computeRefCo(
double &refCoA,
double &refCoB,
double wavelen,
double elev,
double lat)
const {
24 double const eps = 1e-10;
25 double refCoARad, refCoBRad;
29 press / coordConv::PascalsPerMillibar,
31 wavelen / coordConv::AngstromsPerMicron,
32 lat * coordConv::RadPerDeg,
37 refCoA = refCoARad / coordConv::RadPerDeg;
38 refCoB = refCoBRad / coordConv::RadPerDeg;
42 computeRefCo(site.refCoA, site.refCoB, site.wavelen, site.elev, site.meanLat);
double humid
humidity (fraction)
void computeRefCo(double &refCoA, double &refCoB, double wavelen, double elev, double lat) const
double tempLapseRate
temperature lapse rate (C/km); 6.5 is a good default
double press
air pressure (Pascals)
double airTemp
ambient air temperature (C)
void updateSite(coordConv::Site &site) const