landsatTrim | R Documentation |
Trim a landsat image to a latitude-longitude box. This is only an approximate operation, because landsat images are provided in x-y coordinates, not longitude-latitude coordinates.
landsatTrim(x, ll, ur, box, debug = getOption("oceDebug"))
x |
a landsat object. |
ll |
A list containing |
ur |
A list containing |
box |
A list containing |
debug |
A flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or a higher value for more debugging. |
As of June 25, 2015, the matrices storing the image data are trimmed to indices
determined by linear interpolation based on the location of the ll
and
ur
corners within the lon-lat corners specified in the image data. (A
previous version trimmed in UTM space, and in fact this may be done in future
also, if a problem in lonlat/utm conversion is resolved.) An error results if
there is no intersection between the trimming box and the image box.
A landsat object, with data having been trimmed as specified.
Dan Kelley and Clark Richards
The documentation for the landsat class explains the structure of landsat objects, and also outlines the other functions dealing with them.
Other things related to landsat data:
[[,landsat-method
,
[[<-,landsat-method
,
landsat
,
landsat-class
,
landsatAdd()
,
plot,landsat-method
,
read.landsat()
,
summary,landsat-method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.