espa_status: Get Landsat Order Status and Download URL

Description Usage Arguments Details Value Examples

Description

For a successful order placed, get the status of each of the product ID requested in that order id. Once the order is complete, also get the corresponding URLs for the product IDs.

Usage

1
2
3
espa_status(order_id = NULL, min_date = NULL, max_date = NULL,
  getSize = FALSE, host = "https://espa.cr.usgs.gov/api/v1/",
  username = NULL, password = NULL)

Arguments

order_id

vector of order ids for which status and download url is needed

min_date

if order_id is NULL, define the starting date from which order ids need to be fetched

max_date

if order_id is NULL, define the ending date till which order ids need to be fetched

getSize

logical. if the status is completed for the entire order, then should the file size be calculated. (Output size in Bytes)

host

the api call host. Default set to espa v1 web api

username

default NULL, which fetches the username from the global environment. If defined otherwise, will run the api with the provided details

password

default NULL, which fetches the password from the global environment. If defined otherwise, will run the api with the provided details

Details

if order_id, min_date, max_date are NULL, then will run on all the order ids available till date

Value

a list

order_details

a dataframe with order status and download links

wrong_order_id

vector of order_ids for which the API failed

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# input the credentials, if not defined earlier
 espa_creds("your_espaname", "secret_password")

# getting all the orders' status
 result = espa_status()
 # getting the dataframe from the list
 result = result$order_details
## End(Not run)

rLandsat documentation built on July 7, 2019, 1:03 a.m.