50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


envirem (version 2.3)

pacificCentric: Center raster on the Pacific

Description

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

Usage

pacificCentric(r, crop = TRUE)

Value

rasterLayer or rasterStack

Arguments

r

rasterLayer or rasterStack in unprojected geographic coordinates

crop

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

Author

Pascal Title

Details

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab