Description Usage Arguments Details Value Examples
View source: R/unstack_ledapscdr.R
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.
1 2 | unstack_ledapscdr(x, output_folder = NULL, overwrite = FALSE,
rmhdf = FALSE)
|
x |
input HDF4 file |
output_folder |
output folder (if |
overwrite |
whether to overwrite existing files |
rmhdf |
whether to remove hdf files after unstacking them |
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.
nothing (used for side effect of converting Landsat CDR HDF files)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.