get_ghcn_inventory
returns a SpatialPolygonsDataFrame
of the GHCN stations within
the specified template
. If template is not provided, returns the entire GHCN inventory.
get_ghcn_inventory(template = NULL, elements = NULL, raw.dir)
A Raster* or Spatial* object to serve as a template for cropping.
A character vector of elements to extract. Common elements include 'tmin', 'tmax', and 'prcp'.
A character string indicating where raw downloaded files should be put. The directory will be created if missing.
A SpatialPolygonsDataFrame
of the GHCN stations within
the specified template
Stations with multiple elements will have multiple points. This allows for easy mapping of stations by element availability.