Description Usage Arguments Details Author(s) See Also
Plot the data within a landsat image, or information computed from the
data. The second category includes possibilities such as an estimate of
surface temperature and the "terralook"
estimate of a natural-colour
view.
1 2 3 4 5 6 | ## S4 method for signature 'landsat'
plot(x, band, which = 1, decimate = TRUE, zlim,
utm = FALSE, col = oce.colorsPalette, drawPalette = TRUE,
showBandName = TRUE, alpha.f = 1, red.f = 1.7, green.f = 1.5,
blue.f = 6, offset = c(0, -0.05, -0.2, 0), transform = diag(c(red.f,
green.f, blue.f, alpha.f)), debug = getOption("oceDebug"), ...)
|
x |
A |
band |
If given, the name of the band. For Landsat-8 data, this may be
one of: |
which |
Desired plot type; 1=image, 2=histogram. |
decimate |
An indication of the desired decimation,
passed to |
zlim |
Either a pair of numbers giving the limits for the colourscale,
or |
utm |
A logical value indicating whether to use UTS (easting and northing) instead of longitude and latitude on plot. |
col |
Either a function yielding colours, taking a single integer
argument with the desired number of colours, or the string
|
drawPalette |
Indication of the type of palette to draw, if
any. See |
showBandName |
A logical indicating whether the band name is to plotted in the top margin, near the right-hand side. |
alpha.f |
Argument used if |
red.f |
Argument used if |
green.f |
Argument used if |
blue.f |
Argument used if |
offset |
Argument used if |
transform |
Argument used if |
debug |
Set to a positive value to get debugging information during processing. |
... |
optional arguments passed to plotting functions. |
For Landsat-8 data, the band
may be
one of: "aerosol"
, "blue"
, "green"
, "red"
,
"nir"
, "swir1"
, "swir2"
, "panchromatic"
,
"cirrus"
, "tirs1"
, or "tirs2"
.
For Landsat-7 data, band
may be one of "blue"
, "green"
, "red"
,
"nir"
, "swir1"
, "tirs1"
, "tirs2"
,
"swir2"
, or "panchromatic"
.
For Landsat data prior to
Landsat-7, band
may be one of "blue"
, "green"
,
"red"
, "nir"
, "swir1"
, "tirs1"
,
"tirs2"
, or "swir2"
.
If band
is not given, the
("tirs1"
) will be used if it exists in the object data, or
otherwise the first band will be used.
In addition to the above there are also some pseudo-bands that can be plotted, as follows.
Setting band="temperature"
will plot an estimate
of at-satellite brightness temperature, computed from the
tirs1
band.
Setting band="terralook"
will plot a sort of natural
colour by combining the red
, green
, blue
and
nir
bands according to the formula provided at
https://lta.cr.usgs.gov/terralook/what_is_terralook
(a
website that worked once, but failed as of Feb 2, 2017), namely
that the red
-band data are provided as the red
argument of the rgb
function, while
the green
argument is computed as
2/3 of the green
-band data plus 1/3 of the nir
-band data, and
the blue
argument is computed as 2/3 of the green
-band
data minus 1/3 of the nir
-band data. (This is not a typo: the
blue
band is not used.)
Dan Kelley
Other things related to landsat
data: [[,landsat-method
,
landsat-class
, landsatAdd
,
landsatTrim
, landsat
,
read.landsat
,
summary,landsat-method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.