earth_asset: Call Asset API

Description Usage Arguments Examples

View source: R/assets.R

Description

Calls NASA's Earth Imagery Assets API and returns data.frame with information on time and location of images between two dates.

Usage

1
earth_asset(key, lon, lat, start_date, end_date = Sys.Date())

Arguments

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.

Examples

1
2
3
4
5
## Not run: 
key <- "123key"
img <- earth_asset(key, -100.31008, 25.66779, "2016-01-01")

## End(Not run)

nasadata documentation built on May 2, 2019, 2:38 a.m.