The surface temperature had no real value since humidity and height above MSL was not available. Instead stick to the isobaric layer temperatures only.
Pressure at surface level was the wrong value. All barometers and
altimeters use pressure reduced to mean sea level. Reading that value
from GFS instead returns much more reasonable values.
ref T537
Summary:
The formular to calculate the dew point is not defined for relative
humidity of 0.0 %. It is every unlikely to ever happen in real world
weather, but is handled just in case by using the smallest possible
numerical double value.
Reviewers: #swift_pilot_client
Maniphest Tasks: T406
Differential Revision: https://dev.swift-project.org/D82
Once a weather request was finished, its worker gets destroyed automatically
but not immediately. This can cause it to still exist, when the next
request is being processed.
Therefore wait with sending the fetchingFinished() signal, until the
worker is fully destroyed.
ref T235
Summary:
The GFS weather data url so far was hard coded. With this commit, it is
moved into the global setup (bootstrap file).
Also the url type was changed from QUrl to CUrl, which simplified the
generation of the url including its query by using CUrl::appendQuery().
Finally it fixes sampleweatherdata, which did not have a CApplication yet.
Reviewers: #swift_pilot_client, msutcliffe
Reviewed By: #swift_pilot_client, msutcliffe
Subscribers: jenkins
Tags: #swift_pilot_client
Maniphest Tasks: T151
Differential Revision: https://dev.swift-project.org/D57
* in case the internet provider is down, this is not detected
* extended test to detect if access is possible
* in case of downtime this indicated in status component
Up to now we had a mixture of different methods to detect whether
network is connected, accessible or both. Even if they implied a
different meaning, they were all doing the same and internally
referred to almost the same code. Almost, since our implementation
of CNetworkUtils::hasConnectedInterface refers to code from Qt 4.4.
However, all of them returned a boolean status whether a network
interface is generally up or not. Instead of maintaining our own
version, use Qt functions.
refs #869
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.
* new read state "skipped"
* renamed to "isNetworkConnectedAndAccessible"
* checking before reading, which would only fail if network is not accessible