plot,landsat-method | R Documentation |
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-color
view.
## 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 landsat object. |
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 colorscale,
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 colors, taking a single integer
argument with the desired number of colors, 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
color 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-method
,
landsat
,
landsat-class
,
landsatAdd()
,
landsatTrim()
,
read.landsat()
,
summary,landsat-method
Other functions that plot oce data:
download.amsr()
,
plot,adp-method
,
plot,adv-method
,
plot,amsr-method
,
plot,argo-method
,
plot,bremen-method
,
plot,cm-method
,
plot,coastline-method
,
plot,ctd-method
,
plot,gps-method
,
plot,ladp-method
,
plot,lisst-method
,
plot,lobo-method
,
plot,met-method
,
plot,odf-method
,
plot,rsk-method
,
plot,satellite-method
,
plot,sealevel-method
,
plot,section-method
,
plot,tidem-method
,
plot,topo-method
,
plot,windrose-method
,
plot,xbt-method
,
plotProfile()
,
plotScan()
,
plotTS()
,
tidem-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.