1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! # NetCDF Query
//! NetCDF queries allow you to request a time series of weather and climate data for cells in a
//! rectangular grid, where the grid is defined by a bounding box. The bounding box or [`BBox`](`rust_connector_api::BBox`) is
//! defined by the upper left (i.e. North Western) corner and lower right(i.e. South Eastern) corner).
//! The cell size in turn is defined either in pixels (```res_lat=400``` = 400 pixel heigh cells) or
//! in degrees (e.g. ```res_lat=0.1```= 0.1° or about 1 km at the equator).
//!
//!# The Example
//! The example demonstrates how to request current temperature and precipitation data for Switzerland.
//! The grid is spaced in 0.1 ° (or about 1 km cell width and cell height). Since we are using the
//! NetCDF query we can request a time series. For this we use the [`TimeSeries`](`rust_connector_api::TimeSeries`),
//! where we specify time and date of the start and end of the time series together with information
//! about the temporal spacing (i.e. the distance between consecutive points in time).
//! There are several optional parameters you can pass to the meteomatics API that will change the
//! data you get back. In the example we specify that we would like to receive the parameters based
//! on the mix ```model = String::from("model=mix");```. The Meteomatics Mix combines different model
//! s and sources into an intelligent blend, such that the best data source is chosen for each time
//! and location (<https://www.meteomatics.com/en/api/request/optional-parameters/data-source/>).
//!
//! # The account
//! You can use the provided credentials or your own if you already have them.
//! Check out <https://www.meteomatics.com/en/request-business-wather-api-package/> to request an
//! API package.
use ;
use ;
use ConnectorError;
async
/// Query a time series for a single point and two parameters.
async