climateR
simplifies the steps needed to get climate data into R. At
its core it provides three main things:
- A climate catalog of over 100,000k datasets from over 2,000 data providers/archives. See (climateR::params)
nrow(params)
#> [1] 107857
length(unique(params$id))
#> [1] 2075
length(unique(params$asset))
#> [1] 4653
-
A general toolkit for accessing remote and local gridded data files bounded by space, time, and variable constraints (
dap
,dap_crop
,read_dap_file
) -
A set of shortcuts that implement these methods for a core set of selected catalog elements
remotes::install_github("mikejohnson51/AOI") # suggested!
remotes::install_github("mikejohnson51/climateR")
library(AOI)
library(terra)
library(climateR)
AOI = aoi_get(state = "CO", county = "all")
plot(AOI$geometry)
d = getGridMET(AOI,
varname = "pr",
startDate = "1991-10-29",
endDate = "1991-11-06")
plot(d$precipitation_amount)