reprojectDEM: Reproject a DEM file

Description Usage Arguments Details Value See Also Examples

Description

Reproject a DEM file to match the projection and pixel resolution of an image file. A helper function to make a DEM conform to the properties of an image file prior to using it as an input to the MSScvm masking function.

Usage

1
reprojectDEM(demFile, projRef, srcNodata = NA, dstNodata = -32768)

Arguments

demFile

filename (character). Full path to DEM file.

projRef

filename (character). Full path to an image file produced by the MSSunpack function.

srcNodata

numeric. Specify the background value in the input DEM. If there is no background value, use NA (default).

dstNodata

numeric. Specify the value to represent background pixels in the reprojected DEM. -32768 is the default.

Details

The DEM file will be adjusted to match the projection and pixel resolution of the 'proRef' image.

Value

A GeoTIFF raster file with '_reprojected.tif' replacing the last 4 characters of the input DEM filename.

See Also

mosaicDEMs

Examples

1
2
3
4
5
6
7
## Not run: 

reprojectDEM(demFile = "C:/mss/dem/wrs1_p036r032_dem.tif",
             projRef = "C:/mss/LM10360321973191AAA04/LM10360321973191AAA04_dn.tif",
             srcNodata= -9999, dstNodata= -32768)

## End(Not run)

jdbcode/MSScvm documentation built on May 19, 2019, 8:24 a.m.