Learn R Programming

getlandsat (version 0.2.0)

lsat_list: List Landsat images

Description

List Landsat images

Usage

lsat_list(max = NULL, marker = NULL, prefix = NULL, delimiter = NULL,
  ...)

Arguments

max

(integer) number indicating the maximum number of keys to return (max 1000, default 1000).

marker

(character) string that pecifies the key to start with when listing objects in a AWS bucket. Amazon S3 returns object keys in alphabetical order, starting with key after the marker in order

prefix

(character) string that limits the response to keys that begin with the specified prefix

delimiter

(character) string used to group keys. Read the AWS doc for more detail.

...

curl args passed on to crul::HttpClient()

Details

This is an alternative to using lsat_scenes(). This function uses the AWS S3 API, while lsat_scenes() downloads the up to date compressed csv file.

Examples

Run this code
# NOT RUN {
lsat_list(max = 10)

# paging, start a specific key string
res <- lsat_list(max = 10)
lsat_list(marker = res$Key[10], max = 10)

# curl options
lsat_list(max = 3, verbose = TRUE)
# }

Run the code above in your browser using DataLab