mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Define precipitation rate default unit to mm/h
There was a misalignment in precipitation rate units across the code. GFS values are in kg m-2 s-1 which is equal to mm/s, but the default unit seems to be mm/h in many weather documents.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f75a9ac476
commit
2616f94f2d
@@ -102,10 +102,10 @@ namespace BlackMisc
|
||||
//! Get layer top
|
||||
BlackMisc::Aviation::CAltitude getTop() const { return m_top; }
|
||||
|
||||
//! Set precipitation rate
|
||||
//! Set precipitation rate in mm/h
|
||||
void setPrecipitationRate(double rate) { m_precipitationRate = rate; }
|
||||
|
||||
//! Get precipitation rate
|
||||
//! Get precipitation rate in mm/h
|
||||
double getPrecipitationRate() const { return m_precipitationRate; }
|
||||
|
||||
//! Set precipitation
|
||||
@@ -144,7 +144,7 @@ namespace BlackMisc
|
||||
private:
|
||||
BlackMisc::Aviation::CAltitude m_base;
|
||||
BlackMisc::Aviation::CAltitude m_top;
|
||||
double m_precipitationRate = 0;
|
||||
double m_precipitationRate = 0; //!< Unit mm/h
|
||||
Precipitation m_precipitation = NoPrecipitation;
|
||||
Clouds m_clouds = NoClouds;
|
||||
int m_coveragePercent;
|
||||
|
||||
Reference in New Issue
Block a user