read_brickman | R Documentation |
Lazily fixes variable names to drop "d" prefix and "_ann" suffix which permits user to request variables ala "SST", "SSS" etc regardless of scenario.
read_brickman(
scenario = c("RCP45", "RCP85", "PRESENT")[1],
year = c(2055, 2075, NA)[1],
vars = c("SST", "SSS"),
interval = c("ann", "mon")[1],
path = get_path("nc"),
verbose = FALSE,
add = NULL,
crs = list("native", sf::st_crs(4362))[[1]],
form = c("stars", "tibble", "sf")[1]
)
scenario |
character, (case insensitive) one of 'RCP45', 'RCP85', or 'PRESENT' |
year |
integer or character, the year to read, ignored if scenario is 'PRESENT' |
vars |
character, variable names (leading "d" and no trailing "_ann") |
interval |
character, on of "ann" or "mon" |
path |
character, the root path to the data |
verbose |
logical, if TRUE output messages |
add |
stars object or NULL If not NULL then add this to the result. Note, Bathy_depth, land_mask, nav_lon and nav_lat variables are excluded, and only variables common to both the add and the file read are added. |
crs |
character or class |
form |
character, one of 'stars' (default), 'tibble' or 'sf' to control output form |
## Not run:
present <- read_brickman(scenario = "PRESENT")
rcp45_2075 <- read_brickman(year = 2075, form = "tibble", add = present)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.