|
Weather Generator 1.1.0
Daily weather for any place and date from climate normals for C++23
|
The monthly climate normals of a place (climate_at()). More...
#include <weathergen.hpp>
Public Member Functions | |
| void | to_json (core::json_writer &w) const |
| Write the normals as a JSON object. | |
| std::string | to_json () const |
| The normals as a JSON document. | |
Public Attributes | |
| std::string | cell |
| The climate cell's key (its block centre, or a layer's own key). | |
| double | latitude {} |
| The cell's point, degrees north (a block's land centroid). | |
| double | longitude {} |
| The cell's point, degrees east. | |
| double | elevation {} |
| The cell's mean elevation, metres. | |
| std::array< double, 12 > | tmean {} |
| Mean temperature, °C. | |
| std::array< double, 12 > | dtr {} |
| Mean diurnal range (Tmax - Tmin), °C. | |
| std::array< double, 12 > | precipitation {} |
| Precipitation, mm per month. | |
| std::array< double, 12 > | wet_days {} |
| Days with at least 0.1 mm. | |
| std::array< double, 12 > | humidity {} |
| Mean relative humidity, %. | |
| std::array< double, 12 > | cloud {} |
| Cloud cover, %. | |
| std::array< double, 12 > | wind {} |
| Mean wind speed at 10 m, m/s. | |
The monthly climate normals of a place (climate_at()).
Twelve values per element, January to December, as loaded: the means the daily weather is drawn around.
Definition at line 266 of file weathergen.hpp.
|
inline |
|
inline |
Write the normals as a JSON object.
| w | Writer positioned where a value is allowed. |
Definition at line 282 of file weathergen.hpp.
| std::string dasmig::climate_normals::cell |
The climate cell's key (its block centre, or a layer's own key).
Definition at line 268 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::cloud {} |
Cloud cover, %.
Definition at line 277 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::dtr {} |
Mean diurnal range (Tmax - Tmin), °C.
Definition at line 273 of file weathergen.hpp.
| double dasmig::climate_normals::elevation {} |
The cell's mean elevation, metres.
Definition at line 271 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::humidity {} |
Mean relative humidity, %.
Definition at line 276 of file weathergen.hpp.
| double dasmig::climate_normals::latitude {} |
The cell's point, degrees north (a block's land centroid).
Definition at line 269 of file weathergen.hpp.
| double dasmig::climate_normals::longitude {} |
The cell's point, degrees east.
Definition at line 270 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::precipitation {} |
Precipitation, mm per month.
Definition at line 274 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::tmean {} |
Mean temperature, °C.
Definition at line 272 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::wet_days {} |
Days with at least 0.1 mm.
Definition at line 275 of file weathergen.hpp.
| std::array<double, 12> dasmig::climate_normals::wind {} |
Mean wind speed at 10 m, m/s.
Definition at line 278 of file weathergen.hpp.