fix_extent: Forces a list of Raster*s to all have the same extent.

Description Usage Arguments Author(s) See Also Examples

View source: R/fix_extent.R

Description

Forces a list of Raster*s to all have the same extent.

Usage

1
fix_extent(extent_reference, broken_extents)

Arguments

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.

Author(s)

Jonathan A. Greenberg ([email protected])

See Also

extent,stack

Examples

1
2
3
4
5
6
7
8
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

azvoleff/spatial.tools documentation built on June 4, 2017, 12:08 a.m.