Download Meteorological Alert Geometry from Senamhi
Source:R/get_senamhi.R
senamhi_get_spatial_alerts.RdThis function downloads the spatial alert geometry (shapefile) from Senamhi for a given alert.
Usage
senamhi_get_spatial_alerts(
data = NULL,
nro = NULL,
year = NULL,
dsn = NULL,
show_progress = TRUE,
quiet = TRUE
)Arguments
- data
A data frame with a single alert (with columns
nroandemision), or NULL if you specifynroandyear.- nro
A numeric value (optional if
datais provided).- year
A numeric value (optional if
datais provided).- dsn
Path to save the downloaded .zip. If NULL, a temporary file is used.
- show_progress
Logical, show download progress.
- quiet
Logical, suppress messages from
sf::st_read().