Learn R Programming

spatialEco (version 1.3-0)

oli.asw: Query AWS-OLI

Description

Query of Amazon AWS OLI-Landsat 8 cloud service

Usage

oli.asw(path, row, dates, cloud.cover = 10, processing)

Arguments

path

landsat path

row

landsat row

dates

dates, single or start-stop range in YYYY-MM-DD format

cloud.cover

percent cloud cover

processing

processing level ("L1GT" or "L1T")

Value

data.frame object with:

  • entityId - Granule ID

  • L = Landsat

  • X = Sensor

  • SS = Satellite

  • PPP = WRS path

  • RRR = WRS row

  • YYYYMMDD = Acquisition date

  • yyyymmdd = Processing date

  • CC = Collection number

  • TX = Collection category

  • acquisitionDate - POSIXct YYYY-MM-DD (eg., 2015-01-02)

  • cloudCover -

  • processingLevel - USGS processing level

  • path - Landsat path

  • row - Landsat row

Examples

Run this code
# NOT RUN {
# Query path 126, row 59, 2013-04-15 to 2017-03-09, <20% cloud cover    
( p126r59.oli <- oli.asw(path=126, row=59, dates = c("2013-04-15", "2017-03-09"), 
                          cloud.cover = 20) )

# Download query images from query  
  for( i in 1:length(p126r59.oli$download_url)) {
    oli.url <- p126r59.oli$download_url[i]
    try(utils::download.file(url=oli.url, destfile=getwd(), mode = "wb"))  
  }
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab