Description Usage Arguments Value Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 |
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## 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.