spatial_sync_raster: Spatially Sync Rasters

Description Usage Arguments Details Value Author(s)

View source: R/spatial_sync_raster.R

Description

Aligns ("syncs") a Raster to a reference Raster.

Usage

1
2
spatial_sync_raster(unsynced, reference, method = "ngb", size_only = FALSE,
  raster_size, verbose = FALSE, ...)

Arguments

unsynced

A Raster object to be aligned to the reference raster.

reference

A Raster object to be used as the reference for syncing. Syncing will use the reference's projection, resolution, and extent.

method

Method used to compute values for the new RasterLayer. Either 'ngb' (nearest neighbor) or 'bilinear' (bilinear interpolation).

size_only

TODO

raster_size

TODO

verbose

verbose=TRUE gives feedback on the process (UNSUPPORTED AT PRESENT).

...

parameters to be passed to writeRaster

Details

Uses bilinear or nearest neighbor resampling to align a raster to the extent and projection of a reference raster and match the resolution of the reference raster. This is helpful in preparing multiple files of different projections, resolutions, extents, and rotations for performing map algebra or change detection.

Value

Returns a RasterLayer, RasterBrick or RasterStack object synced to the reference raster object.

Author(s)

Jonathan A. Greenberg ([email protected])


spatial.tools documentation built on April 23, 2018, 3 a.m.