earth_asset {nasadata}R Documentation

Call Asset API

Description

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

Usage

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

## Not run: 
key <- "123key"
img <- earth_asset(key, -100.31008, 25.66779, "2016-01-01")

## End(Not run)

[Package nasadata version 0.9.0 Index]