fix_extent {spatial.tools} | R Documentation |
Forces a list of Raster*s to all have the same extent.
fix_extent(extent_reference, broken_extents)
extent_reference |
Raster*. A Raster* object that will provide the extent to all the other Raster*s. If unassigned, will assume it is the first Raster* in the broken_extents list. |
broken_extents |
list of Raster* objects. Raster* objects that will be coerced to the extent_reference's extent. |
Jonathan A. Greenberg (spatial.tools@estarcion.net)
library("raster") tahoe_highrez <- brick(system.file("external/tahoe_highrez.tif", package="spatial.tools")) tahoe_highrez tahoe_highrez_broken <- tahoe_highrez # We'll "break" the extent: extent(tahoe_highrez_broken) <- c(0,360,-90,90) tahoe_highrez_broken tahoe_highrez_fixed <- fix_extent(tahoe_highrez,tahoe_highrez_broken) tahoe_highrez_fixed