Description Usage Arguments Author(s) See Also Examples
Forces a list of Raster*s to all have the same extent.
1 | 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)
1 2 3 4 5 6 7 8 9 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.