Learn R Programming

rlandfire (version 2.0.1)

checkStatus: Check the status of an existing LANDFIRE Product Service (LFPS) request

Description

checkStatus checks if a previous request is complete and downloads available data

Usage

checkStatus(landfire_api, verbose = TRUE, method = "curl")

Value

Returns a landfire_api object with named elements:

  • request - list with elements query, date, url, job_id, request,dwl_url

  • content - Informative messages passed from API

  • response - Full response

  • status - Final API status, one of "Failed", "Succeeded", or "Timed out"

  • time - time of job completion

  • path - path to save directory

Arguments

landfire_api

landfire_api object returned from landfireAPIv2()

verbose

If FALSE suppress all status messages

method

Passed to utils::download.file(). See ?download.file or use "none" to skip download and use landfire_vsi()

Examples

Run this code
if (FALSE) {
products <-  c("ASP2020", "ELEV2020", "230CC")
aoi <- c("-123.7835", "41.7534", "-123.6352", "41.8042")
email <- "email@example.com"
resp <- landfireAPIv2(products, aoi, email, background = TRUE)
checkStatus(resp)
}

Run the code above in your browser using DataLab