MSScvm: Landsat MSS cloud and cloud shadow masking

Description Usage Arguments Details Value Examples

Description

Creates a cloud and cloud shadow mask for Landsat MSS imagery.

Usage

1
MSScvm(imgDir, demFile, classify = F)

Arguments

imgDir

directory name (character). Full path to a MSS image directory produced by the MSSunpack function.

demFile

filename (character). Full path to image-corresponding DEM file.

classify

logical. If TRUE clouds, cloud shadows, and clear pixels have unique values (0 = clear, 1 = cloud shadow, 2 = cloud). If FALSE obscured pixles = 0 and clear = 1.

Details

It is important that the input DEM file, specified by the 'demFile' parameter, be the same projection and pixel resolution as the input image. It must also be >= in spatial extent, relative to the image. The program will check for these attributes and throw an error message if there is a violation. There are two helper functions to prepare a suitable DEM. Use the reprojectDEM function to ensure proper projection and pixel resolution of an exisiting DEM, and the mosaicDEMs function to create a mosaic from several DEMs to ensure proper extent, projection, and pixel resolution.

Value

A GeoTIFF raster image file with the same dimensions as the MSS image. The file will be placed in the 'imgDir' directory with the name equal to the image ID followed by '_msscvm'.

Examples

1
2
3
4
5
6
## Not run: 

MSScvm(imgDir = "C:/mss/LM10360321973191AAA04",
       demFile = "C:/mss/dem/wrs1_p036r032_dem.tif")

## End(Not run)

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