Mars API

Photo of temperature gauge

An API to retrieve and visualize weather data from the last 7 Sols (Martian days) as recorded and updated daily by NASA’s InSight Mars lander. InSight is located at Elysium Planitia, a flat surface near the equator of Mars. The python package built contains four functions:

marsInfo: returns a summary table of weather including the Sol number, datetime stamp of first recorded sample (First_UTC), last recorded sample (Last_UTC), the current season for Mars, as well as average (av), sample size (ct), minimum (mn) and maximum (mx) recordings for temperature (AT), horizontal windspeed (HWS), and pressure (PRE).

marsAverage: takes the saved output from the marsInfo() function and returns the average temperature, windspeed, and pressure for the last 7 Sols.

windspeed: retrieves the inputted Sol’s horizontal wind speed (m/s) from the summary table and visualizes it as a dial. The black bar is the average windspeed for the Sol, which corresponds to the black text. The green background is the sol range (min and max), and the red or green text below is represents a decrease or increase, respectively, relative to the previous sol’s average.

maRs_temperature

pressure: retrieves the inputted Sol’s pressure (Pascal) from the summary table and visualizes it as a dial. The black bar is the average pressure for the Sol, which corresponds to the black text. The orange background is the sol range (min and max), and the red or green text below is represents a decrease or increase, respectively, relative to the previous sol’s average.

maRs_pressure

temperature: retrieves the inputted Sol’s temperature (converted from Farhenheit to degrees Celsius) from the summary table and visualizes it as a dial. The black bar is the average temperature for the Sol, which corresponds to the black text. The blue background is the sol range (min and max), and the red or green text below is represents a decrease or increase, respectively, relative to the previous sol’s average.

maRs_temperature

Link to project repository: https://github.com/claudia-nikel/maRs
Co-collaborator: KT Hobbs

Claudia Nikel
Claudia Nikel
Data Scientist

My educational interests include Machine Learning, Data Visualizations, coding and anything Data Science related.

Related