Commit Graph

69 Commits

Author SHA1 Message Date
Klaus Basan
f98ba0e494 CLANG style 2019-04-11 22:11:34 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
9d1299741e [GFS] Use Pressure at MSL instead of surface
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
2019-02-22 20:36:20 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Roland Winklmeier
4b888d87f5 Add methods to read weather grid from file 2018-09-12 17:40:19 +02:00
Roland Winklmeier
84dcc53dc0 Misc clang warning fixes 2018-08-25 22:12:07 +02:00
Roland Winklmeier
6a8658f04c Declare destructor virtual for IMetarDecoderPart 2018-08-09 01:25:48 +02:00
Klaus Basan
0b7683fd50 Ref T259, Ref T243 unified naming of interfaces "org.swift-project" + lowercase 2018-04-13 23:36:31 +02:00
Klaus Basan
4b7237ce1b Ref T259, Ref T243 adjusted providers to use common base classes 2018-04-06 02:56:57 +02:00
Klaus Basan
2d0fbfa3c5 METAR formatting, style, string concat (builder) 2018-01-30 20:35:11 +01:00
Klaus Basan
0916c90038 Ref T225, use coordinate dialog in weather component
Remark: There was a redundant, also unfinished code in weather UI component for coordinate entry. This is now encapsulated in coordinate form/dialog.
2018-01-30 20:29:36 +01:00
Klaus Basan
f049900e1f Ref T223, use const values for standard pressure
* standardISASeaLevelPressure
* use static const values for standard pressure
* minor formatting
2018-01-15 23:00:34 +01:00
Mathew Sutcliffe
0b67466480 Removed workarounds in metaclass system that were needed for GCC 4.9 and old MSVC. 2017-11-14 17:51:07 +00:00
Klaus Basan
94c9886c35 Based on discussion around T107 and slack
* Use CJsonScope scope("MetaData") for stacktrace
* added Q_UNUSED(scope) to avoid QtC warnings
2017-09-24 19:50:37 +01:00
Mathew Sutcliffe
e3fe8ec39f refs #937 Resolved clazy warnings: miscellaneous. 2017-04-19 19:31:50 +01:00
Mathew Sutcliffe
a8302b310e refs #937 Resolved clazy warnings: QString::arg. 2017-04-19 19:31:45 +01:00
Mathew Sutcliffe
3ea9e33e6b refs #937 Resolved clazy warnings: pass-by-value/reference. 2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
b7f69c6887 refs #937 Resolved clazy warnings: unnecessary memory allocation. 2017-04-19 19:31:39 +01:00
Roland Winklmeier
2616f94f2d 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.
2017-02-24 00:09:22 +00:00
Roland Winklmeier
f75a9ac476 Slightly adapt the cloud coverage conversion
refs #851
2017-02-24 00:09:20 +00:00
Mathew Sutcliffe
bbdbd26f82 refs #815 Throw CJsonException when required JSON objects are not found. 2017-01-10 23:46:33 +00:00
Mathew Sutcliffe
6bfbaefdc8 CFileLogger: group messages by category. 2016-12-13 19:01:58 +01:00
Klaus Basan
fc65deb778 Just typos and formatting 2016-12-06 09:34:15 +01:00
Roland Winklmeier
04013d0747 Optimize METAR decoding by constructing regular expressions only once
Before this commit, the regular expression strings and objects were
constructed for each METAR. This is expensive and unnecessary.
This commit optimizes this by moving the string preparation into
a helper method, which is called once to construct a static
QRegularExpression.

refs #711
2016-07-16 19:52:00 +02:00
Roland Winklmeier
28ec2be1ca Change MetarSet to MetarList
CMetarSet was implemented as a collection. This only makes sense for
values which have one member variable only or hardly ever change. METARs
often change and therefore a collection didn't make much sense.
Additional profiling showed that a sequence has better algorithmic
performance.

refs #689
2016-07-11 21:33:33 +02:00
Roland Winklmeier
7ca5d63ce5 Retrieve precipitation rate from GFS data
refs #663
2016-06-17 10:46:31 +02:00
Roland Winklmeier
de0729faad Value object for fixed weather scenario
This value object can be used to load, save and distribute fixed
weather scenarios.

refs #663
2016-06-17 10:46:31 +02:00
Roland Winklmeier
4a489c642f Add missing CTemperatureLayer property indexes
refs #663
2016-06-17 10:46:31 +02:00
Roland Winklmeier
3a1605b553 Differentiate None from Unknown in CCloudLayer
refs #663
2016-06-17 10:46:31 +02:00
Roland Winklmeier
ebe039d267 Add missing CCloudLayer property indexes
refs #663
2016-06-17 10:46:31 +02:00
Roland Winklmeier
a68cd16a7a Doxygen 2016-06-17 10:46:31 +02:00
Roland Winklmeier
d0313c7524 Style 2016-05-20 01:31:26 +02:00
Roland Winklmeier
3d7a39ed00 Fix BlackMisc header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
0f5d2a29a8 refs #655, Change signature (order) of setProperty/compareProperty 2016-05-13 16:44:17 +02:00
Roland Winklmeier
781707fb7e Simulator driver fetches and injects weather from weather manager 2016-04-10 16:18:55 +02:00
Roland Winklmeier
5801962a99 Extend GFS data and CGridPoint with surface pressure and temperature 2016-04-10 16:17:23 +02:00
Roland Winklmeier
a2de3a16e4 CWeatherGrid utility classes
Renamed Cavok to ClearWeather since CAVOK does not mean no clouds.
Find methods.

refs #612
2016-04-10 16:16:21 +02:00
Roland Winklmeier
5d93144c3c Remove enum coverage from CCloudLayer and calculate it from percentage
refs #612
2016-04-10 16:16:15 +02:00
Roland Winklmeier
779191e66b Add string based identifier to CGridPoint
refs #612
2016-04-10 16:15:08 +02:00
Roland Winklmeier
f6a52874e3 class CWeatherManager
refs #612
2016-04-10 16:13:56 +02:00
Roland Winklmeier
8a0290b44b classes CWeatherGridProvider and CWeatherGridAware
refs #612
2016-04-10 16:13:49 +02:00
Roland Winklmeier
f72c8e878b Use CCoordinateGeodetic instead of CLatitude and CLongitude
refs #612
2016-04-10 16:13:39 +02:00
Mathew Sutcliffe
4e9d7d3efe refs #628 Metaclass style compatible with the AStyle beautifier. 2016-04-06 15:15:12 +01:00
Mathew Sutcliffe
4bd4baa535 refs #628 Use the metaclass mixins in all value classes. 2016-04-03 18:17:43 +01:00
Mathew Sutcliffe
3001ca1f44 refs #624 Use std::make_unique instead of BlackMisc::make_unique. 2016-03-22 16:02:29 +00:00
Klaus Basan
c3722f9198 refs #485, refs #584 removed include blackmiscfreefunctions.h 2016-03-18 01:07:49 +00:00
Roland Winklmeier
48fdfbea3e Cloud layers have a base and a top
refs #579
2016-03-02 23:04:29 +01:00
Roland Winklmeier
16315ec2ec Implement hardcoded weather grids
* Cavok
* Thunderstorm

refs #579
2016-03-02 23:04:05 +01:00
Roland Winklmeier
04292c2002 Add initializer list constructors
refs #579
2016-03-02 23:03:57 +01:00