pacificCentric: Center raster on the Pacific

Description Usage Arguments Details Value Author(s) Examples

View source: R/pacificCentric.R

Description

Takes a raster that is centered on 0 longitude (default) and recenters it on the Pacific

Usage

1
pacificCentric(r, crop = TRUE)

Arguments

r

rasterLayer or rasterStack in unprojected geographic coordinates

crop

logical, should raster then be cropped to longitude [100, 300]

Details

Cropping to [100, 300] is equivalent to [100, -60]

Value

rasterLayer or rasterStack

Author(s)

Pascal Title

Examples

1
2
3
4
5
# Find example rasters
rasterFiles <- list.files(system.file('extdata', package='envirem'), full.names=TRUE)
tmin1 <- raster(grep('tmin_1\\.', rasterFiles, value=TRUE))

pacificCentric(tmin1, crop = TRUE)

envirem documentation built on May 14, 2021, 9:06 a.m.