earth_asset: Call Asset API

Description Usage Arguments Value Examples

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.

Value

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

Examples

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

## End(Not run)

Eflores89/nasadata documentation built on May 6, 2019, 3:23 p.m.