rotate

0th

Percentile

Rotate

Rotate a Raster* object that has x coordinates (longitude) from 0 to 360, to standard coordinates between -180 and 180 degrees. Longitude between 0 and 360 is frequently used in global climate models.

Keywords
spatial
Usage
# S4 method for Raster
rotate(x, filename='', ...)
Arguments
x

Raster* object

filename

character. Output filename (optional)

...

additional arguments as for writeRaster

Value

RasterLayer or a RasterBrick object

See Also

flip

Aliases
  • rotate
  • rotate,Raster-method
Examples
# NOT RUN {
r <- raster(nrow=18, ncol=36)
m <- matrix(1:ncell(r), nrow=18)
r[] <- as.vector(t(m))
extent(r) <- extent(0, 360, -90, 90)
rr <- rotate(r)
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.