View source: R/pacificCentric.R
pacificCentric | R Documentation |
Takes a raster that is centered on 0 longitude (default) and recenters it on the Pacific
pacificCentric(r, crop = TRUE)
r |
rasterLayer or SpatRaster in unprojected geographic coordinates |
crop |
logical, should raster then be cropped to longitude [100, 300] |
Cropping to [100, 300] is equivalent to [100, -60]
rasterLayer or SpatRaster
Pascal Title
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.