mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Remove surface temperature
The surface temperature had no real value since humidity and height above MSL was not available. Instead stick to the isobaric layer temperatures only.
This commit is contained in:
committed by
Mat Sutcliffe
parent
66f0a27647
commit
231f4df1bf
@@ -286,10 +286,6 @@ namespace BlackWxPlugin
|
||||
|
||||
CTemperatureLayerList temperatureLayers;
|
||||
|
||||
CAltitude surfaceAltitude(0, CAltitude::AboveGround, CLengthUnit::defaultUnit());
|
||||
CTemperatureLayer surfaceTemperature(surfaceAltitude, CTemperature(gfsGridPoint.surfaceTemperature, CTemperatureUnit::K()), {}, {});
|
||||
temperatureLayers.push_back(surfaceTemperature);
|
||||
|
||||
CWindLayerList windLayers;
|
||||
for (auto isobaricLayerIt = gfsGridPoint.isobaricLayers.begin(); isobaricLayerIt != gfsGridPoint.isobaricLayers.end(); ++isobaricLayerIt)
|
||||
{
|
||||
@@ -603,7 +599,6 @@ namespace BlackWxPlugin
|
||||
for (auto &gridPoint : m_gfsWeatherGrid)
|
||||
{
|
||||
if (level > 0) { gridPoint.isobaricLayers[level].temperature = fld[gridPoint.fieldPosition]; }
|
||||
else { gridPoint.surfaceTemperature = fld[gridPoint.fieldPosition]; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -132,7 +132,6 @@ namespace BlackWxPlugin
|
||||
double surfaceSnow = 0;
|
||||
double surfacePrecipitationRate = 0;
|
||||
double pressureAtMsl = 0.0;
|
||||
double surfaceTemperature = 0;
|
||||
};
|
||||
|
||||
//! Asyncronous fetching finished
|
||||
|
||||
Reference in New Issue
Block a user