access weather station data from TCS Atmosphere component and publish r0, b1, b2
Now, we have one ACS component called Atm
The purpose of this component is to
- receive input from Weather Station (temperature, pressure, humidity)
{t, p, h}
- calculate atmosphere model parameters
{r0, b1, b2}
- publish the result
{r0, b1, b2}
(AntennaTNRT
will use this data to set refraction pointing model) - If weather station data is not available, output "safe" default values for Chiang Mai weather
The calculation of {r0, b1, b2}
from {t, p, h}
already works.
The TNRT weather station is new, and does not have a connection to Atm
yet. The purpose of this issue is to read data from the new Weather Station and publish the result {r0, b1, b2}
Example of standalone Atm demo
tnrt/LGPL/CommonSoftware/Atm/test/standalone
python printELcorrection.py
get updated values of p,t,h
Pressure: 915.70, Temperature: -2.20, Humidity 70.00
r0: 57.91 b1: 5.90 b2: 2.50
__________________________________________________
EL angle (deg): 0.0 ElevationCorrection: 1405.060069
EL angle (deg): 30.0 ElevationCorrection: 99.567717
EL angle (deg): 60.0 ElevationCorrection: 33.305449
EL angle (deg): 90.0 ElevationCorrection: 0.064464
get updated values of p,t,h
Pressure: 913.30, Temperature: 21.70, Humidity 30.00
r0: 56.47 b1: 5.90 b2: 2.50
__________________________________________________
EL angle (deg): 0.0 ElevationCorrection: 1370.297072
EL angle (deg): 30.0 ElevationCorrection: 97.104283
EL angle (deg): 60.0 ElevationCorrection: 32.481429
EL angle (deg): 90.0 ElevationCorrection: 0.062869
get updated values of p,t,h
Pressure: 913.30, Temperature: 21.70, Humidity 70.00
r0: 65.65 b1: 5.90 b2: 2.50
__________________________________________________
EL angle (deg): 0.0 ElevationCorrection: 1592.979542
EL angle (deg): 30.0 ElevationCorrection: 112.884381
EL angle (deg): 60.0 ElevationCorrection: 37.759880
EL angle (deg): 90.0 ElevationCorrection: 0.073086