modPreview | R Documentation |
modPreview
shows a preview of the n
-th image from a set of
search results on an interactive map.
modPreview( searchres, n, dates, lpos = c(3, 2, 1), add.Layer = FALSE, verbose = FALSE, ... )
searchres |
a vector with the results from |
n |
a |
dates |
a vector with the dates being considered
for previewing. This argument is mandatory if
|
lpos |
vector argument. Defines the position of the red-green-blue layers to enable false color visualization. |
add.Layer |
logical argument. If |
verbose |
logical argument. If |
... |
arguments for nested functions:
|
The function shows a preview of the n
-th output image from a search
in the MODIS archives (modSearch
, with
resType = "browseurl"
). The preview is downloaded from the
‘EarthData’ Platform.
Please, be aware that only some images may have a preview.
this function does not return anything. It displays a preview of one of the search results.
## Not run: # load a spatial polygon object of Navarre data(ex.navarre) # retrieve jpg images covering Navarre region between 2011 and 2013 sres <- modSearch(product = "MOD09GA", startDate = as.Date("01-01-2011", "%d-%m-%Y"), endDate = as.Date("31-12-2013", "%d-%m-%Y"), collection = 6, extent = ex.navarre) modPreview(sres,n=1) modPreview(sres,2,add.Layer=T) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.