landsat
.read.landsat(file, band=1:11, debug=getOption("oceDebug"))
landsat
, with the conventional Oce slots
metadata
, data
and processingLog
. The data
slot holds matrices of the data in the requested bands.tiff
package must be installed for this to work.
The function follows a strict file naming code that works for Landsat-8
datasets but may fail otherwise. Also, it only works for detailed data (in
TIF format), not for preview data (in JPG format).
Landsat data are provided on several websites, e.g. [1]. Reference [2]
provides information on the bands.The bands are stored in the object with names "aerosol" (band 1), "blue" (band 2), "green" (band 3), "red" (band 4), "nir" (band 5), "swir1" (band 6), "swir2" (band 7), "panchromatic" (band 8), "cirrus" (band 9), "tirs1" (band 10), and "tirs2" (band 11). See [2] for information on these bands and their typical uses.
2.
landsat-class
for more information on landsat
objects. A sample dataset named landsat
is available in the
ocedata
package.