untar_landsat: untar_landsat

Description Usage Arguments Details Value References Examples

View source: R/landsat_preprocessing.R

Description

Uncompress .tar.gz folders containing Landsat images as downloaded from NASA EarthExplorer.

Usage

1
untar_landsat(orig, dest = orig)

Arguments

orig

Path or folder containing the .tar.gz Landsat images.

dest

Path or folder to export the uncompressed Landsat images.

Details

Uncompress .tar.gz files containing Landsat images and save them in a folder with the original name of the compressed file. If dest is not specified, default is the same as orig.

Value

Uncompressed Landsat bands and metadata.

References

https://earthexplorer.usgs.gov/

Examples

1
2
3
4
5
6
## Not run: # Export files to the same folder as input
untar_landsat("C:/Landsat/2017")

# Export files to a folder different than the input
untar_landsat("C:/Landsat/2017", "C:/Landsat")
## End(Not run)

RichardLemoine/LSTtools documentation built on Oct. 19, 2020, 12:50 a.m.