Description Usage Arguments Details Value Author(s) See Also Examples
R wrapper for USGS/EROS Ordering System POST API.
1 2 | espa_ordering_post_api(request_code, json_request_content = NULL,
usgs_eros_username, usgs_eros_password, auto_unbox = T, verbose = F)
|
request_code |
Character. One of the requests listed at https://earthexplorer.usgs.gov/inventory/documentation/json-api |
json_request_content |
List. Parameters to pass to the request system. |
usgs_eros_username |
Character. Your USGS registration username. You can register for an account at https://espa.cr.usgs.gov |
usgs_eros_password |
Character. Your USGS registration password. WARNING: USING THIS WITH R IS NOT PARTICULARLY SECURE. |
auto_unbox |
Logical auto_unbox the json_request_content? Default = T. |
verbose |
Logical. Verbose execution? Default=F. |
A function to convert requests to the USGS/EROS Ordering System URL format (POST). In general, you shouldn't need to call this directly unless you want finer command-line control over requests.
List generated from the request.
Jonathan A. Greenberg (espa-tools@estarcion.net) (wrapper) and USGS ESPA Developers (API and documentation)
1 2 3 4 5 6 7 8 | ## Not run:
# Run the Available Products command:
inputs <- c("LE70290302003123EDC00","MOD09A1.A2000073.h12v11.005.2008238080250.hdf","bad_scene_id")
json_request_content <- list(inputs=inputs)
espa_ordering_post_api(request_code="api/v0/available-products",json_request_content=inputs,
usgs_eros_username="myusername",usgs_eros_password="mypassword")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.