Read monthly data from DWD, mask region with given shape file
Source:R/read_data_over_shape.R
read_monthly_data_over_shape.Rd
Read monthly data from DWD, mask region with given shape file
Usage
read_monthly_data_over_shape(
file = NULL,
variable,
from,
to,
quiet = FALSE,
shape = NULL,
use_sf = TRUE,
...
)
Arguments
- file
path to shape file .shp
- variable
currently, the following variables are supported: "evapo_p", "evapo_r", "frost_depth", "soil_moist", "soil_temperature_5cm" (daily), "evapo_p" (monthly)
- from
first month as "yyyymm" string
- to
last month as "yyyymm" string
- quiet
passed to download.file
- shape
object of class sf or sf_layers or SpatialPolygonsDataFrame. If
NULL
(the default), this object is obtained by callingkwb.dwd:::read_shape_file
onfile
.- use_sf
passed to
kwb.dwd:::read_shape_file
if applicable- ...
further arguments passed to
kwb.dwd:::read_shape_file
, such asdrop_z = TRUE
, if applicable