Changeset 2272


Ignore:
Timestamp:
08/11/11 18:36:59 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Need some conversions for weather monitor data.

temperature: C->K
windaz: deg->rad
humidity: P[H2O] -> relative humidity


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NROFiller.cpp

    r2201 r2272  
    198198    setFocus( parangle ) ;
    199199
    200     // WEATHER subtable row
     200    // WEATHER subtable row
     201    float p = 7.5 * temperature / ( 273.3 + temperature ) ;
     202    float sh = 6.11 * powf( 10, p ) ;
     203    temperature += 273.15 ; // C->K
     204    winddir *= C::degree ; // deg->rad
     205    humidity /= sh ; // P_H2O->relative humidity
    201206    setWeather( temperature, pressure, humidity, windvel, winddir ) ;
    202207
Note: See TracChangeset for help on using the changeset viewer.