unstack_ledapscdr: Convert Landsat CDR images from HDF4 to GeoTIFF format

Description Usage Arguments Details Value Examples

Description

This function converts a Landsat surface reflectance (SR) image from the Landsat Climate Data Record (CDR) archive into a series of single band images in GeoTIFF format.

Usage

1
2
unstack_ledapscdr(x, output_folder = NULL, overwrite = FALSE,
  rmhdf = FALSE)

Arguments

x

input HDF4 file

output_folder

output folder (if NULL, defaults to input folder)

overwrite

whether to overwrite existing files

rmhdf

whether to remove hdf files after unstacking them

Details

This function uses gdalUtils, which requires a local GDAL installation. See http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries or http://trac.osgeo.org/osgeo4w/ to download the appropriate installer for your operating system.

Value

nothing (used for side effect of converting Landsat CDR HDF files)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Unstack files downloaded from CDR:
unstack_ledapscdr('lndsr.LT50150531986021XXX03.hdf')

# Unstack files downloaded from CDR, overwriting any existing files, and 
# deleting original HDF files after unstacking:
unstack_ledapscdr('lndsr.LT50150531986021XXX03.hdf', overwrite=TRUE, 
                  rmhdf=TRUE)

## End(Not run)

azvoleff/teamlucc documentation built on May 11, 2019, 5:19 p.m.