get_ghcn_inventory returns a SpatialPolygonsDataFrame of the GHCN stations within
the specified template. If template is not provided, returns the entire GHCN inventory.
Arguments
- template
An
Simple FeatureorSpatRasterobject to serve as a template for cropping.- elements
A character vector of elements to extract. Common elements include 'tmin', 'tmax', and 'prcp'.
- raw.dir
A character string indicating where raw downloaded files should be put. The directory will be created if missing.
Value
A Simple Feature of the GHCN stations within
the specified template
