lsSearch | R Documentation |
lsSearch
searches Landsat 7-8 images in the EarthExplorer API concerning
a particular location and date interval. The function returns a
data.frame
with the names of the images and their metadata.
lsSearch( product, startDate, endDate, region, username, password, dates, logout = TRUE, verbose = FALSE, ... )
product |
the name of the dataset. Avaliable names saved in ‘RGISTools’
( |
startDate |
a |
endDate |
a |
region |
a |
username |
NASA’s ‘EarthData’ username. |
password |
NASA’s ‘EarthData’ password. |
dates |
a vector with the capturing dates being searched. This
argument is mandatory if |
logout |
logical argument. If |
verbose |
logical argument. If |
... |
arguments for nested functions:
|
a data.frame
with the name of the images and their metadata.
## Not run: # search by path and row numbers of a tile getRGISToolsOpt("EE.DataSets") sres <- lsSearch(product = "LANDSAT_8_C1", startDate = as.Date("01-01-2011", "%d-%m-%Y"), endDate = as.Date("31-12-2013", "%d-%m-%Y"), username = "username", password = "password", region = ex.navarre, pathrow = list(c(200,31),c(200,30))) sres <- lsSearch(product = "LANDSAT_8_C1", startDate = as.Date("01-01-2011", "%d-%m-%Y"), endDate = as.Date("31-12-2013", "%d-%m-%Y"), username = "username", password = "password", lonlat = c(-1.64323,42.81687)) # search by extent (long/lat coordinates) # load a spatial polygon object of Navarre data(ex.navarre) sres <- lsSearch(product = "LANDSAT_8_C1", startDate = as.Date("01-01-2011", "%d-%m-%Y"), endDate = as.Date("31-12-2013", "%d-%m-%Y"), username = "username", password = "password", extent = ex.navarre) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.