Download Meteorological Alert Geometry from Senamhi
Source:R/get_senamhi.R
senamhi_get_spatial_alerts.Rd
This 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
nro
andemision
), or NULL if you specifynro
andyear
.- nro
A numeric value (optional if
data
is provided).- year
A numeric value (optional if
data
is 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()
.