Description Usage Arguments Details Value See Also Examples
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.
1 | reprojectDEM(demFile, projRef, srcNodata = NA, dstNodata = -32768)
|
demFile |
filename (character). Full path to DEM file. |
projRef |
filename (character). Full path to an image file produced by the |
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. |
The DEM file will be adjusted to match the projection and pixel resolution of the 'proRef' image.
A GeoTIFF raster file with '_reprojected.tif' replacing the last 4 characters of the input DEM filename.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.