Insight: Insight: Mars Weather Service API

Description Usage Arguments Value Examples

View source: R/Insight.R

Description

NASA’s InSight Mars lander takes continuous weather measurements (temperature, wind, pressure) on the surface of Mars at Elysium Planitia, a flat, smooth plain near Mars’ equator. Summaries of these data are available at https://mars.nasa.gov/insight/weather/. This API provides per-Sol summary data for each of the last seven available Sols (Martian Days). As more data from a particular Sol are downlinked from the spacecraft (sometimes several days later), these values are recalculated, and consequently may change as more data are received on Earth.

Usage

1
2
Insight(key = Sys.getenv("NASA_TOKEN"), ver = "1.0",
  feedtype = "json", simplified_data_frame = FALSE)

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.

ver

String. The version of this API. "1.0" as default.

feedtype

String. The format of what is returned. Currently the default is "json" and only "json" works.

simplified_data_frame

Boolean. Returns a data frame that only includes date, highest and lowest temperatrue(°F). FALSE as default. One beautiful example that could use this data frame: https://api.nasa.gov/assets/img/general/insight_photo.png.

Value

List or dataframe of info about weather on Mars.

Examples

1
2
Insight()
Insight(simplified_data_frame = TRUE)

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