The polygon query facilitates the selection of arbitrary areas all around the globe. You can query any weather parameter for the selected polygon and obtain mean, median, minimum or maximum values.
The query can be either performed for a single point in time or for a time range (see time description). In order to define the polygon, you need to provide the desired vertices (latitude, longitude). You can decide how many vertices are used. Currently available output formats are csv, json and xml.
The basic structure of the query is: api.meteomatics.com/validdatetime/parameters/lat1,lon1_lat2,lon2_..._latN,lonN:aggregate/format?optionals
Available aggregate options are:
Find the minimum value
Find the maximum value
Compute the mean
Compute the median
Compute the mode (most frequent value)
Available related optionals are:
Adaptive sampling of the grid choosing the resolution based on the polygon size. (Default)
Sample only values from the native model grid. Note that this needs a model to be specified (e.g. &model=ncep-gfs)
The following examples demonstrate different applications of the polygon query: