Description Usage Arguments Value Examples
Calls NASA's Earth Imagery Assets API and returns data.frame with information on time and location of images between two dates.
1 | earth_asset(key, lon, lat, start_date, end_date = Sys.Date())
|
key |
Key for API authentication. |
lon |
Longitud of coordinate position. |
lat |
Latitud of coordinate position. |
start_date |
Start date to search for image. In YYYY-MM-DD format. |
end_date |
End date to search for image. In YYYY-MM-DD format. Defaults to current system date. |
Returns a data.frame
containing the following columns:
date |
date of the sample |
id |
identifier of the sample or "NO RESULTS" |
type |
type of the sample, currenlty always "Point" |
coordinates |
latitude and longitude as a string delimited by a space |
1 2 3 4 5 | ## Not run:
key <- "123key"
img <- earth_asset(key, -100.31008, 25.66779, "2016-01-01")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.