Earth_Assets: Earth_Assets: The date-times and asset names for available...

Description Usage Arguments Value Examples

View source: R/Earth_Assets.R

Description

This function retrieves retrieves the date-times and asset names for available imagery for a supplied location. The satellite passes over each point on earth roughly once every sixteen days. This is an amazing visualization of the acquisition pattern for Landsat 8 imagery.

Usage

1
2
Earth_Assets(key = Sys.getenv("NASA_TOKEN"), lat, lon, begin_date,
  end_date = Sys.Date())

Arguments

key

String. Your NASA API key, you can enter your key in the function parameter, but it's not recommended. Instead, you'd better save your key in R environment and call it "NASA_TOKEN". Then the function would automatically acquire your key info.

lat

Float. Latitude of the location.

lon

Float. Longitude of the location.

begin_date

Date. Beginning of date range.

end_date

Date. End of date range. Today as default.

Value

A dataframe including date-times and asset names.

Examples

1
Earth_Assets(lon = 100.75, lat = 1.5, begin_date = as.Date("2014-02-01"))

Liu-Zhichao/nasaR documentation built on Dec. 16, 2019, 10:48 p.m.