This function builds the URL queries for downloading MET Nordic data through
the OPENDAP protocol. The requirements for this function to work are the
bounding coordinates as divined by function metnordic_coordwindow()
, the
variables of interest, the starting and ending dates and the desired grid
resolution. The results of this function can be downloaded when passed to
metnordic_download()
.
Usage
metnordic_buildquery(
bounding_coords,
mn_variables,
fromdate,
todate,
grid_resolution = 1,
dataset = "reanalysis",
verbose = FALSE
)
Arguments
- bounding_coords
as passed by
metnordic_coordwindow()
- mn_variables
MET Nordic variables (see documentation)
- fromdate
ie. "2019-01-01 00:00:00"
- todate
ie. "2020-12-31 23:00:00"
- grid_resolution
an integer, ie. 3 for 3x3 km grid.
- dataset
either 'reanalysis' for the re-run archive, 'operational' for the operational archive, or 'continuous' to source from both, depending on time range.
- verbose
print to console?