The goal of cmip6 is to provide a straightforward way to download the NASA NEX-GDDP-CMIP6 downscaled climate projection data, either globally or by specifying an area of interest (aoi). Data are downloaded either from the NCCS THREDDS Data Catalog if an aoi is specified (using the NetCDF Subset Service) or the official NASA NEX-GDDP-CMIP6 AWS archive for global data.
This package purposefully doesn’t do anything fancy. It doesn’t load the downloaded CMIP6 data into R for you. It doesn’t mask the downloaded data to your aoi. It doesn’t compress the data or otherwise change whatever is downloaded. It aims to be a lightweight and convenient way to download the NASA NEX-GDDP-CMIP6 data via R.
You can install the latest release of cmip6 from GitHub with:
# install.packages("pak")pak::pkg_install("mt-climate-office/cmip6@*release")
Or, install the development version with:
pak::pkg_install("mt-climate-office/cmip6")
library(cmip6) cmip6_dl( outdir = tempfile(), aoi = sf::st_read(dsn = system.file("shape/nc.shp", package = "sf"),quiet = TRUE), models = "GISS-E2-1-G", scenarios = c("ssp126", "ssp585"), elements = c("tas", "pr"), years = 2050:2055)