Mars Weather and how to fetch the data

Posted by

What’s the weather on Mars? Aside from drilling holes and collecting samples from the Martian surface, it is vital to keep tabs on the environmental information. I’m sure it’s not all sunny all throughout a Martian year. If at all sunny, what could be the temperature and how the atmospheric variation for each Sols. Mars rover have to capture information such as these. It would be helpful to future missions on how the seasons on Mars varies and how could future rovers or even human missions sustain such a fluctuation with minimal disruption.

This is not a technical article of analyzing Mars Weather. Instead, as hobbyist, I’m going to share on how to fetch such information for personal or education purposes. But, before we dive into the “how” here’s a short background on the REMS.

Rover Environmental Monitoring Station (REMS)

Main JobWeather station to measure atmospheric pressure, temperature, humidity, winds, plus ultraviolet radiation levels.
LocationTwo “bolt-like” booms on the rover’s mast (“neck”) that measure wind, ground temperature and humidity UV sensor on the rover deck (“back”) about 1.5 meters above ground level pressure sensor inside the rover body and connected to the external atmosphere via a tube that exits the rover body through a small opening with protection against dust deposition.
CapabilityDesigned to survive a -130 °C to +70 °C temperature range and minimize power consumption for operation.
MeasurementsAutonomously record at least 5 minutes of data at 1 Hz each hour, every sol (Martian day), for all sensors (i.e., total baseline of two hours per sol); maximum of three hours of operation per sol allows a continuous block of monitoring time if desired.
Tech specs as courtesy of

Curiosity REMS vs Perseverance MEDA

MSL Curiosity REMS
Mars 2020 Perseverance Rover MEDA

Though considered to be twins, frame-wise, both Curiosity and Perseverance has the same(almost) weather station configuration. Perseverance MEDA – Mars Environmental Dynamics Analyze is a follow-on project and of course with much data collection.

How we can take hold of such weather data?

With API we can get these information or data. The question is what API. NASA open API have published for InSight: Mars Weather. With Curiosity REMS, it’s not openly shared. But, here, I will show you how. If you’ll look into Mars MSL Curiosity REMS page. Inspect the webpage at the right element you will see the API they are currently using to create the weather information posted on the page as shown below.

The API URL is Opening this link will direct you to a page which contains all weather data since Sol 1. That’s almost 3000 lines of data, considering is about Sol 3073 on Gale Crater Mars. You can always get down to coding and create ways to fetch those JSON data into usable and structured table. A .csv or directly written into a spreadsheet.

This approach is for script written in Google Apps Script. What’s about to be shown are methods on…

  1. How to fetch the REMS Curiosity data and write accordingly the latest Sol info into a spreadsheet.
  2. Fetch like an online API where you can pick the information you only need. The API show above is not clearly mapped and no documentation available (found) to properly access the resources. Creating the API for you from the daily fetch done from the main API will be convenient for developers who just want the direct data right away.

To save you time, you can access the full script on this github link Here are snippets of the code. Apologies for some image may not be clear enough. But, you may go ahead use above github link for better view of the code. As of the moment, it only caters with MSL Curiosity REMS data. I was hoping that I could find the API for Perseverance MEDA. Until such time we can have another attributes to our tracking percy as it searches for clues on Mars.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s