rotate_cmip5: Rotate CMIP5 NetCDF data cubes

View source: R/helper_functions.R

rotate_cmip5R Documentation

Rotate CMIP5 NetCDF data cubes

Description

Rotate NetCDF files faster than the default raster rotate() command, as data is cropped before any translations (reducing memory load)

Usage

rotate_cmip5(r = NULL, extent = c(-74, -65, 40, 48))

Arguments

r

CMIP5 raster layer, stack or brick

extent

vector with coordinates defining the region of interest defined as xmin, xmax, ymin, ymax in lat/lon (default = c(-74,-65, 40, 48))

Value

Returns raster data in the same format (layer, stack, brick) as the input, but rotated from a climatological longitude (0 - 360) format to a normal longitude format (-180 to 180).


khufkens/phenor documentation built on Aug. 31, 2023, 1:24 a.m.