Skip to content

Functions for downloading data from the NASA NEX-GDDP-CMIP6 downscaled product

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

mt-climate-office/cmip6

Repository files navigation

cmip6: Straightforward NASA NEX-GDDP-CMIP6 spatial subsets and downloads in R

GitHub Release R-CMD-check Codecov test coverage

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.

Installation

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")

Example

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
)

About

Functions for downloading data from the NASA NEX-GDDP-CMIP6 downscaled product

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages