I've previously written about "Odyssey," the children's magazine about space that I read when I was young. Every month, I would learn something new about the planets, stars, and constellations. But some issues stood out more than others – and I still remember reading about the twin launches of Voyager 1 (https://en.wikipedia.org/wiki/Voyager_1) and Voyager 2 (https://en.wikipedia.org/wiki/Voyager_2) in the summer of 1977. Their purpose was to gather data from the solar system's outer planets. And on the off chance that they might encounter alien life? They each came with a golden record (https://en.wikipedia.org/wiki/Voyager_Golden_Record) with sounds of Earth... along with a record player and instructions for using it.
Not only did the Voyager probes return stunningly beautiful pictures of the outer planets, but they have also lasted longer than anyone might have reasonably expected. As of last week, Voyager 1 is the farthest human-made object from Earth. And while science-fiction shows depict people whooshing from star system to star system, racking up frequent-flyer light years as if it were nothing, things are much slower in real life — because after nearly 50 years of travel, Voyager 1 is now one (!) light day from Earth.
This week, we'll examine data that Voyager 1 has returned to Earth over the course of its journey.
Data and five questions
This week's data comes from NASA's "COHOWeb" (COrdinatad Heliospheric Observations ) site, at https://omniweb.gsfc.nasa.gov/coho/form/voyager1.html. The site provides data from a number of probes that NASA has launched over the years. Voyager 1 data can be downloaded from https://omniweb.gsfc.nasa.gov/coho/form/voyager1.html, by indicating the following on the form:
- Create file
- Hourly averaged
- Start date 19770907
- Stop date 20250630
- All positions in HGI
- IMF Magnitude (average of fine scale magnitudes), nT
- Proton Flow Speed, km/sec
- Proton Density, n/cc
- Proton Temperature, K
- LECP proton fluxes of 0.57-1.78 MeV
- CRS proton fluxes of 3.000-4.600 MeV
After submitting this form, you get both a data file (in fixed-width field format) and a data dictionary (with the names and types/sizes of the fields).
Note that NASA only updates this data set every year or two. That explains why the most recent data is from June of 2025.
Paid subscribers, both to Bamboo Weekly and to my LernerPython+data membership program (https://LernerPython.com) get all of the questions and answers, as well as downloadable data files, downloadable versions of my notebooks, one-click access to my notebooks, and invitations to monthly office hours.
Learning goals for this week include: Fixed-width fields, dates and times, plotting with Plotly, and dealing with missing values.
Here are my five questions and tasks for this week. I'll be back tomorrow with my solutions and explanations.
- Read the data file into a Pandas data frame, ensuring that every column has a name (from the data dictionary) and is valid. Add a
timestampcolumn (with adatetimedtype) reflecting the date and hour at which the measurement was taken. Turn missing values intoNaN. - The distance is measured in AU (astronomical units), aka the average distance between Earth and the sun. This data is taken from the sun, so it's not precisely the same as saying, "how far is Voyager from Earth," but it's pretty close. Each AU is approximately 0.00578 light days. Convert the measurements to light days, and plot both the mean distance (in light days) and the mean latitude angle for each month of data. Do any dates stick out?