MSSunpack: Decompress and stack Landsat LPGS MSS images

Description Usage Arguments Details Value See Also Examples

Description

Decompresses and stacks Landsat LPGS MSS images provided by USGS as *.tar.gz files. Optionally outputs top-of-atmosphere (TOA) radiance and reflectance files.

Usage

1
MSSunpack(imgFile, toaRad = FALSE, toaRefl = FALSE, useL1G = FALSE)

Arguments

imgFile

filename (character). Full path to compressed LPGS Landsat MSS image file provided by USGS.

toaRad

logical. If TRUE, a TOA radiance image will be created.

toaRefl

logical. If TRUE, a TOA reflectance image will be created.

useL1G

logical. If TRUE, L1G images will be processed.

Details

It is important that the 'imgFile' be an unaltered tar.gz-compressed LPGS image file that you receive from USGS through EarthExplorer. Note that DN values <= 1 are set to NA across all bands. This mitigates a problem caused by bad columns on the east and west edge of images when mosaicing adjacent images together.

Value

A 4-band Landsat MSS GeoTIFF raster image file in DN units. If optional 'toaRad' and/or 'toaRefl' parameters are set to TRUE, then similar TOA radiance and reflectance image files will created. The files will be places in the same location as the 'imgFile' with the name equal to the image ID plus an appended descriptor. Descriptors include 'dn' (digital number), 'toa_radiance' (TOA radiance), and 'toa_reflectance' (TOA reflectance).

See Also

MSSdn2rad, MSSdn2refl

Examples

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

MSSunpack(imgFile = "C:/mss/LM10360321973191AAA04.tar.gz")
MSSunpack(imgFile = "C:/mss/LM10360321973191AAA04.tar.gz",
          toaRad = FALSE, toaRefl = TRUE, useL1G = TRUE)

## End(Not run)

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