Description Usage Arguments Details Value See Also Examples
Find and download Landsat data for a specific product, area, and time period. The function returned is list of filenames that may have been downloaded.
1 |
product |
character. Supported products can be found using |
start_date |
character. Start date for the data requested formatted yyyy-m-d |
end_date |
character. end date for the data requested formatted yyyy-m-d |
aoi |
numeric vector of four elements (minimum longitude, maximum longitude, minimum latitude, maximum latitude) encompassing the area of interest. Or a SpatExtent or Extent object, or any object from which an Extent can be extracted (see examples) |
download |
logical. If |
path |
character. Path name indicating where to store the data |
version |
character |
limit |
integer > 0 |
server |
character. Defaults to AWS (Landsat 8 only). See Details |
... |
Additional arguments. These can be product specific. See Details) |
If no data is available between start_date
and end_date
, files for the closest dates are returned.
Server: AWS, ERS
character vector of file names pointing to the downloaded files (if download=TRUE
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
product <- "Landsat_8_OLI_TIRS_C1"
sdate <- "2019-05-01"
edate <- "2019-05-30"
area <- c(33, 34, -5, -4)
dir <- tempdir()
f <- getLandsat(product = product,
start_date = sdate, end_date = edate,
aoi = area, download = FALSE, path=dir)
# An example of ARD Tiles from ERS server
product <- "Landsat4-8_ARD_US_C1"
area <- c(-122.422996520996, -121.501968383789, 38.3139801025391, 38.9253616333008)
f1 <- getLandsat(product = product,
start_date = sdate, end_date = edate,
aoi = area, download = FALSE, path=dir,
server="ERS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.