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:
Roland Winklmeier
2017-01-15 23:45:25 +01:00
committed by Mathew Sutcliffe
parent f75a9ac476
commit 2616f94f2d
3 changed files with 8 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ namespace BlackGui
if (dataCVariant.canConvert<double>())
{
double rate = dataCVariant.value<double>();
QString formattedString = QString::number(rate) + " mm/s";
QString formattedString = QString::number(rate) + " mm/h";
return formattedString;
}
Q_ASSERT_X(false, "CPrecipitationRateFormatter", "no double value");