rotate_cmip: Rotate CMIP NetCDF data cubes

View source: R/helper_functions.R

rotate_cmipR Documentation

Rotate CMIP 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_cmip(r = NULL, extent = c(-74, -65, 40, 48))

Arguments

r

CMIP 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 June 28, 2024, 2:30 p.m.