pacificCentric {envirem} | R Documentation |
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)
Arguments
r |
rasterLayer or SpatRaster 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 SpatRaster
Author(s)
Pascal Title
Examples
# Find example rasters
rasterFiles <- list.files(system.file('extdata', package='envirem'), full.names=TRUE)
tmin1 <- rast(grep('tmin_1\\.', rasterFiles, value=TRUE))
pacificCentric(tmin1, crop = TRUE)
[Package envirem version 3.0 Index]