cmip_read: Read data into R

View source: R/cmip_read.R

cmip_readR Documentation

Read data into R

Description

Read data into R

Usage

cmip_read(x)

Arguments

x

A ccafs_files object, the output from a call to cmip_fetch

Value

RasterLayer or RasterBrick class object

Examples

## Not run: 
key <- "bcsd/yearly/cnrm_cm3.1/cnrm_cm3.1.sresa1b.monthly.Prcp.2035.nc"
res <- cmip_fetch(key)

# a single file
cmip_read(res)

# character path input
## you can also pass in a path to a file(s)
cmip_read(res[1])

# plot data
plot(cmip_read(res))

## End(Not run)

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