Pulls daily ASCII grids from the [California spatial CIMIS file
server](https://spatialcimis.water.ca.gov/cimis/). Writes
`outdir/YYYY/MM/DD/<variable>.asc.gz`, matching the layout on the public
server. Skips files that already exist.
Usage
download.CIMIS(
outdir,
years,
variable = "ETo",
base_url = "https://spatialcimis.water.ca.gov/cimis"
)
Arguments
- outdir
Root output directory.
- years
Integer vector of calendar years.
- variable
CIMIS variable file stem (default `"ETo"` for reference ET).
- base_url
Spatial CIMIS HTTP root (override for tests).
Value
Character vector of newly downloaded file paths (invisibly).
Examples
if (FALSE) { # \dontrun{
download.CIMIS(tempdir(), 2023)
download.CIMIS("/data/cimis", c(2023, 2024))
} # }