cmipr

knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE,
  fig.path = "inst/img/",
  fig.width = 10,
  fig.height = 6
)

Build Status codecov review

R client for CMIP (Coupled Model Intercomparison Project) data

Under the World Climate Research Programme (WCRP) the Working Group on Coupled Modelling (WGCM) established the Coupled Model Intercomparison Project (CMIP) as a standard experimental protocol for studying the output of coupled atmosphere-ocean general circulation models (AOGCMs). Virtually the entire international climate modeling community has participated in this project since its inception in 1995.

Links:

Install

Development version

devtools::install_github("ropenscilabs/cmipr")
library("cmipr")

List files

cmip_list_files('bcsd/yearly')
cmip_list_files('bcsd/yearly/cccma_cgcm3_1.1')

Download data

key <- "bcsd/yearly/cnrm_cm3.1/cnrm_cm3.1.sresa1b.monthly.Prcp.2034.nc"
(res <- cmip_fetch(key))

Read data into R

Can load in a single file (gives RasterLayer), or many (gives RasterBrick)

out <- cmip_read(res)

Plot

plot(out)

Meta

rofooter



ropenscilabs/cmipr documentation built on May 18, 2022, 7:35 p.m.