Heliophysics and Programming Converge at PyHC Summer School

Against a background image showing the Sun in blues, reds, oranges, and purples, the words "Python in Heliophysics Summer School" are written in white.
The PyHC Summer School welcomes early career scientists, students, post-doctoral researchers, and senior scientists to learn the foundations of Python-powered research and about how to join the growing community. Credit: PyHC

A celebration of open-source software kicked off at the Python in Heliophysics Community (PyHC) Summer School in Boulder, Colorado, this week. Anyone can tune in virtually through May 24 to watch live-streamed demos and presentations from this NASA-funded project showcasing how the Python programming language is at the forefront of innovation in heliophysics research and data analysis.

Python is a free and open-source programming language designed to be intuitive and easy to read with interactive applications that enable collaboration. It can also integrate older programming languages and run in many environments, including remote servers hosted in the cloud. PyHC is a community of scientists, open-source developers, and research software engineers who are passionate about Python.

“It’s kind of the intersection of science and software programming,” says Julie Barnum, principal investigator for PyHC and project manager at University of Colorado’s Laboratory for Atmospheric and Space Physics (LASP). “Most of the people involved in our community are scientists, or work really close with scientists, and started developing these packages because they saw a need for it.”

PyHC offers a suite of diverse, standardized Python software packages with functions ranging from data access and downloads to analysis, visualization, and plotting. Seven core packages provide a wide range of capabilities, while dozens of additional software libraries can carry out more targeted, specific calculations. 

Two charts, each with an image of the Sun. The image on the left is a golden, 2D Sun against a black background. The image on the right shows the same image, but from the side, slightly at angle, and appearing 3D.
The left panel shows an image of the Sun captured in a wavelength of extreme ultraviolet light at 171 angstroms by the Atmospheric Imaging Assembly (AIA) instrument on NASA’s Solar Dynamics Observatory (SDO) spacecraft. The right panel shows the same image reprojected from a different vantage point using the reprojection capabilities available with SunPy open-source software. Credit: AIA data courtesy of NASA/SDO and the AIA, EVE, and HMI science teams. Image created using version 5.0.0 of the SunPy open source software package (DOI: 10.5281/zenodo.8037332)

Heliophysics research explores the nature of the relationship between the Sun, planets, asteroids, comets, and space environment as a dynamic system. PyHC formed in 2018 from a NASA grant that intended to bring together people from different areas of heliophysics who were already working with Python to support scientific discovery. 

“We’ve long recognized that the community was doing great work and wanted to help create an organization which would coordinate and advertise this work to our broader community of heliophysics researchers,” explains Brian Thomas, project scientist at NASA’s Heliophysics Digital Resource Library (HDRL). “Python is one of the primary languages to analyze data in heliophysics now.” 

The community has expanded to include volunteers from various institutions including NASA, universities, and international agencies. Volunteers support PyHC outreach events, virtual and in-person meetings, and scientific conferences. 

The PyHC Summer School is welcoming early career scientists, students, post-doctoral researchers, and senior scientists to LASP this week to learn the foundations of Python-powered research and about how to join the growing community. Sessions throughout the week streaming live on YouTube are highlighting PyHC’s seven core packages. Students on site can take part in interactive coding exercises and a challenge game, while software enthusiasts at home can download any of the free packages and follow along with the tutorials they choose. Presentations on machine learning and searching for data in heliophysics are also scheduled.

This is the second PyHC Summer School event. The inaugural gathering took place in Madrid, Spain, in 2022 in partnership with the European Space Astronomy Centre

Collaboration is a key aspect of the PyHC community. PyHC supports NASA’s open science initiative by creating standards in open-source software development so anyone can find, access, and contribute to projects. 

“Open science is important because it makes data accessible and usable by all,” Barnum says. “It brings a lot of different people to the table and I think, especially when it comes to research, if you can get more voices and different backgrounds involved, you just have better research in the end.” 

PyHC Core Packages

Heliophysics Application Programmer’s Interface (HAPI) client
Access and retrieve heliophysics data captured as a time series from various sources. 

Kamodo
An official NASA open-source Python package built upon the functionalization of datasets providing data analysis via function composition, automatic unit conversions, and publication-quality graphics, all using intuitive and simplistic syntax. 

A graph that shows four horizontal bars. The bottom one has thick bands of green, yellow, red, and blue. The second from the bottom is primarily green, yellow, and red. The second from the top has a thick green band, thin yellow and red bands, and a thick blue band. The top one is white with a dark red line cutting horizontally through the middle, and bright green splotches. The graph is labeled with information about the levels from a magnetometer.
A visualization produced by PySPEDAS open-source software shows waves observed by the search-coil magnetometer (SCM) onboard the Magnetospheric Multiscale (MMS) mission. Credit: Grimes EW, et al. (2022) The Space Physics Environment Data Analysis System in Python. Frontiers in Astronomy and Space Sciences. 9:1020815. DOI: 10.3389/fspas.2022.1020815

PlasmaPy
An open-source, community-developed Python package for plasma research and education. 

Python Satellite Data Analysis Toolkit (pysat)
Management and analysis tool for satellite and radar data that provides a simple and flexible interface for downloading, loading, cleaning, managing, processing, and analyzing data.

Space Physics Environment Data Analysis Software (PySPEDAS)
Tools for loading, analysis, and plotting of data from various heliophysics missions and ground magnetometers.

SpacePy
A space science library that includes file Input/Output, time, and coordinate conversions as well as common analysis techniques.

SunPy
Python package for solar physics that enables users to search and download from various data sources, analyze time series and image data from different observatories in a consistent interface, and transform data between coordinate systems when combining data from multiple spacecraft. 

To see the PyHC Summer School schedule and tutorials, visit pyhc.org/summer-school-24.

Watch the PyHC Summer School live stream and recorded sessions here

By Rose Brunning
Communications Lead
NASA Heliophysics Digital Resource Library (HDRL)

NASA Engineers Make Progress Toward Understanding Voyager 1 Issue

An illustration of a spacecraft against a blue space-like background
Artist’s illustration of one of the Voyager spacecraft. Credit: Caltech/NASA-JPL

Since November 2023, NASA’s Voyager 1 spacecraft has been sending a steady radio signal to Earth, but the signal does not contain usable data. The source of the issue appears to be with one of three onboard computers, the flight data subsystem (FDS), which is responsible for packaging the science and engineering data before it’s sent to Earth by the telemetry modulation unit.

On March 3, the Voyager mission team saw activity from one section of the FDS that differed from the rest of the computer’s unreadable data stream. The new signal was still not in the format used by Voyager 1 when the FDS is working properly, so the team wasn’t initially sure what to make of it. But an engineer with the agency’s Deep Space Network, which operates the radio antennas that communicate with both Voyagers and other spacecraft traveling to the Moon and beyond, was able to decode the new signal and found that it contains a readout of the entire FDS memory.

The FDS memory includes its code, or instructions for what to do, as well as variables, or values used in the code that can change based on commands or the spacecraft’s status. It also contains science or engineering data for downlink. The team will compare this readout to the one that came down before the issue arose and look for discrepancies in the code and the variables to potentially find the source of the ongoing issue.

This new signal resulted from a command sent to Voyager 1 on March 1. Called a “poke” by the team, the command is meant to gently prompt the FDS to try different sequences in its software package in case the issue could be resolved by going around a corrupted section.

Because Voyager 1 is more than 15 billion miles (24 billion kilometers) from Earth, it takes 22.5 hours for a radio signal to reach the spacecraft and another 22.5 hours for the probe’s response to reach antennas on the ground. So the team received the results of the command on March 3. On March 7, engineers began working to decode the data, and on March 10, they determined that it contains a memory readout.

The team is analyzing the readout. Using that information to devise a potential solution and attempt to put it into action will take time.

News Media ContactCalla CofieldJet Propulsion Laboratory, Pasadena, Calif.626-808-2469calla.e.cofield@jpl.nasa.gov

NASA’s TIMED Spacecraft Passes Safely by Satellite

The Department of Defense has confirmed that NASA’s Thermosphere Ionosphere Mesosphere Energetics and Dynamics Mission (TIMED) spacecraft and the Russian Cosmos 2221 satellite passed each other safely in orbit at about 1:34 a.m. EST on Wednesday, Feb. 28. NASA has confirmed that TIMED is functioning. While the two non-maneuverable satellites will approach each other again, this was their closest pass in the current predicted orbit determinations, as they are gradually moving apart in altitude.

The TIMED mission studies the influence of the Sun and of human activity on Earth’s mesosphere and lower thermosphere/ionosphere. The region is a gateway between Earth and space, where the Sun’s energy is first deposited into Earth’s environment.

NASA’s TIMED Spacecraft to Make Close Pass with Satellite

The Department of Defense is monitoring a potential collision between NASA’s Thermosphere Ionosphere Mesosphere Energetics and Dynamics Mission (TIMED) spacecraft and the Russian Cosmos 2221 satellite. The two non-maneuverable orbiting spacecraft are expected to make their closest pass at about 1:30 a.m. EST on Wednesday, Feb. 28, at an altitude of about 373 miles (600 km). Although the spacecraft are expected to miss each other, a collision could result in significant debris generation. NASA and the Department of Defense will continue to monitor the situation.

The TIMED science mission studies the influence of the Sun and of human activity on Earth’s mesosphere and lower thermosphere/ionosphere. The region is a gateway between Earth and space, where the Sun’s energy is first deposited into Earth’s environment.

Engineers Working to Resolve Issue With Voyager 1 Computer

Editor’s note: A previous version of this post identified the TMU as the telecommunications unit. It is the telemetry modulation unit.


An illustration of a spacecraft against a blue space-like background
Artist’s illustration of one of the Voyager spacecraft. Credit: Caltech/NASA-JPL

Engineers are working to resolve an issue with one of Voyager 1’s three onboard computers, called the flight data system (FDS). The spacecraft is receiving and executing commands sent from Earth; however, the FDS is not communicating properly with one of the probe’s subsystems, called the telemetry modulation unit (TMU). As a result, no science or engineering data is being sent back to Earth.

Among other things, the FDS is designed to collect data from the science instruments as well as engineering data about the health and status of the spacecraft. It then combines that information into a single data “package” to be sent back to Earth by the TMU. The data is in the form of ones and zeros, or binary code. Varying combinations of the two numbers are the basis of all computer language.

Recently, the TMU began transmitting a repeating pattern of ones and zeros as if it were “stuck.” After ruling out other possibilities, the Voyager team determined that the source of the issue is the FDS. This past weekend the team tried to restart the FDS and return it to the state it was in before the issue began, but the spacecraft still isn’t returning useable data.

It could take several weeks for engineers to develop a new plan to remedy the issue. Launched in 1977, the spacecraft and its twin, Voyager 2, are the two longest-operating spacecraft in history. Finding solutions to challenges the probes encounter often entails consulting original, decades-old documents written by engineers who didn’t anticipate the issues that are arising today. As a result, it takes time for the team to understand how a new command will affect the spacecraft’s operations in order to avoid unintended consequences.

In addition, commands from mission controllers on Earth take 22.5 hours to reach Voyager 1, which is exploring the outer regions of our solar system more than 15 billion miles (24 billion kilometers) from Earth. That means the engineering team has to wait 45 hours to get a response from Voyager 1 and determine whether a command had the intended outcome.


News Media Contact
Calla Cofield
Jet Propulsion Laboratory, Pasadena, Calif.
626-808-2469
calla.e.cofield@jpl.nasa.gov

HelioCloud Leads Heliophysics Research into the Cloud Computing Revolution

Announcing HelioCloud – a new, collaborative, cloud-based tool for heliophysics scientists and students to rapidly access and analyze high-volume datasets from a web browser. With an easy-to-navigate interface and generous data storage, HelioCloud offers a streamlined approach to conduct research.HelioCloud Logo

Work in the Cloud, Download Results

This free and open-source platform offers a virtual software environment with high performance computing capabilities to run code and plot, visualize, and analyze data without needing to download any software. HelioCloud holds up to ten thousand times the data storage of most laptops – it’s like having big data on demand. This allows users to expedite research by working with large datasets stored in the cloud and then downloading only the results. HelioCloud’s searchable registry includes 600 terabytes of data from NASA’s Heliophysics Digital Resource Library (HDRL), the data ingest and archive for heliophysics missions. 

An Image of the Sun, showing bright loops of yellow plasma, taken by NASA's Solar Dynamics Observatory
Access data from SDO AIA (pictured), SDO HMI, MMS, and all of CDAWeb rapidly via HelioCloud. Credit: NASA/SDO

Easy Local Access

Researchers who prefer to work with software stored on their own computer can download and install HelioCloud as a virtualized operating system container that includes a reusable software stack with all of the components needed to replicate and run the program locally. This container includes heliophysics software applications written in Python programming languages, like SunPy and PySPEDAS, as well as integrated development environments including Daskhub and Jupyter Notebooks. 

Built for Collaboration

HelioCloud provides an open science framework that breaks down barriers to collaboration by enabling multipoint access to shared data, code, and analysis tools in a secure environment. Users can automatically access data made public by NASA and other HelioCloud communities, and safely store, modify, and share code with stable runtime environments. 

This community-based project is supported by NASA and led by a development team at Johns Hopkins University Applied Physics Laboratory. HelioCloud invites heliophysics researchers from NASA and other research labs as well as universities to join the project as users or developers and take part in the game-changing evolution of big-data analysis. 

Visit HelioCloud.org for more info.
Mailing list: heliocloud@groups.io

By Rose Brunning
Communications Lead
NASA Heliophysics Digital Resource Library (HDRL)

 

Earth’s Magnetosphere and Plasmasheet

The Earth, surrounded by lines shooting out in many directions. They are labeled Interplanetary Magnetic Field Lines, which flow toward Earth. A bend in on of those lines is a Bow Shock. Lines looping out from Earth are labeled magnetosheath, magnetopause, magnetotail. Shaded areas billowing out from Earth are the Plasmasphere, Radiation Belts, and Plasma Sheet.
Our magnetosphere is part of a dynamic, interconnected system that responds to solar, planetary, and interstellar conditions – and it all starts deep inside Earth. Credit: NASA/Aaron Kaase

A magnetosphere is that area of space, around a planet, that is controlled by the planet’s magnetic field. The shape of the Earth’s magnetosphere is the direct result of being blasted by solar wind. The solar wind compresses its sunward side to a distance of only 6 to 10 times the radius of the Earth.

A supersonic shock wave is created sunward of Earth called the bow shock. Most of the solar wind particles are heated and slowed at the bow shock and detour around the Earth in the magnetosheath. The solar wind drags out the night-side magnetosphere to possibly 1000 times Earth’s radius; its exact length is not known. This extension of the magnetosphere is known as the magnetotail. The outer boundary of Earth’s confined geomagnetic field is called the magnetopause. The Earth’s magnetosphere is a highly dynamic structure that responds dramatically to solar variations.

Also residing within the magnetosphere are areas of trapped charged particles; the inner and outer Van Allen Radiation Belts, the plasmasphere, and the plasmasheet.

Layers of the Sun

The Sun, with layers labeled: Core, radiative zone, Convection zone, chromosphere, and corona. Features, including a solar prominent, subsurface flows, sunspots, flare, and a corona hole are labeled.
The Sun is a dynamic star, constantly changing and sending energy out into space. By studying our Sun, scientists can better understand the workings of distant stars. Credits: NASA

The Sun and its atmosphere consist of several zones or layers. From the inside out, the solar interior consists of:

  • The Core – the central region where nuclear reactions consume hydrogen to form helium. These reactions release the energy that ultimately leaves the surface as visible light.
  • The Radiative Zone – extends outward from the outer edge of the core to base of the convection zone, characterized by the method of energy transport – radiation.
  • The Convection Zone – the outermost layer of the solar interior extending from a depth of about 200,000 km to the visible surface where its motion is seen as granules and supergranules.

The solar atmosphere is made up of:

  • The Photosphere – the visible surface of the Sun.
  • The Chromosphere – an irregular layer above the photosphere where the temperature rises from 6000°C to about 20,000°C.
  • A Transition Region – a thin and very irregular layer of the Sun’s atmosphere that separates the hot corona from the much cooler chromosphere.
  • The Corona – the Sun’s outer atmosphere.

Beyond the corona is the solar wind, which is actually an outward flow of coronal gas. The Sun’s magnetic fields rise through the convection zone and erupt through the photosphere into the chromosphere and corona. The eruptions lead to solar activity, which includes such phenomena as sunspots, flares, prominences, and coronal mass ejections.

This infographic labels the parts of the Sun (from most inward to outward): Solar Core, Radiative Zone, Convection Zone, Photosphere, Chromosphere, Transition Zone, and Corona.It explains that the Sun's outermost layer is hotter than the layers immediately below that. This is a major unsolved puzzle in heliophysics.
At the heart of our solar system is the Sun. Even though the temperature of these layers is known, heliophysicists are still researching why the Sun’s corona, or atmosphere, is hotter than the layers immediately below it. Credits: NASA

Mission Update: Voyager 2 Communications Pause

The Voyager spacecraft is in set against a dark starry background.
Artist concept showing NASA’s Voyager spacecraft against a backdrop of stars. Credit: NASA/JPL-Caltech

UPDATED Aug. 4, 2023: NASA has reestablished full communications with Voyager 2.

The agency’s Deep Space Network facility in Canberra, Australia, sent the equivalent of an interstellar “shout” more than 12.3 billion miles (19.9 billion kilometers) to Voyager 2, instructing the spacecraft to reorient itself and turn its antenna back to Earth. With a one-way light time of 18.5 hours for the command to reach Voyager, it took 37 hours for mission controllers to learn whether the command worked. At 12:29 a.m. EDT on Aug. 4, 2023, the spacecraft began returning science and telemetry data, indicating it is operating normally and that it remains on its expected trajectory.

____________________________

A series of planned commands sent to NASA’s Voyager 2 spacecraft on July 21 inadvertently caused the antenna to point 2 degrees away from Earth. As a result, Voyager 2 is currently unable to receive commands or transmit data back to Earth.

Voyager 2 is located almost 12.4 billion miles (19.9 billion kilometers) from Earth and this change has interrupted communication between Voyager 2 and the ground antennas of the Deep Space Network (DSN). Data being sent by the spacecraft is no longer reaching the DSN, and the spacecraft is not receiving commands from ground controllers.

Voyager 2 is programmed to reset its orientation multiple times each year to keep its antenna pointing at Earth; the next reset will occur on Oct. 15, which should enable communication to resume. The mission team expects Voyager 2 to remain on its planned trajectory during the quiet period.

Voyager 1, which is almost 15 billion miles (24 billion kilometers) from Earth, continues to operate normally.

Jack Eddy Fellowship: 5 New Researchers Selected

Five researchers supported by NASA’s Living With a Star Program will join the 2023-2024 class of NASA’s Jack Eddy Postdoctoral Fellowship.

The early career PhDs, selected by the University Corporation for Atmospheric Research (UCAR)’s Cooperative Program for the Advancement of Earth System Science (CPAESS), will research interdisciplinary projects contributing to the field of heliophysics at a host institution for the next two years.

The Jack Eddy Postdoctoral Fellowship was founded in 2009 in honor of pioneering solar researcher John A. “Jack” Eddy. The program matches the fellows with experienced scientists at the host institutions to train the next generation of Sun-Earth researchers.

Five pictures of people in front of an image of the Sun. Below them, text reads "NASA Jack Eddy Fellows 2023"
NASA Jack Eddy Fellows will research interdisciplinary heliophysics topics at host institutions. From left to right, they are Robert Jarolim, Devojyoti Kansabanik, Mei-Yun Lin, Charlotte Waterfall, and Peijin Zhang. Credits: UCAR | CPAESS

2023 NASA Jack Eddy Postdoctoral Fellowship Awardees

Peijin Zhang
Host: Dr. Bin Chen of New Jersey Institute of Technology, Newark, NJ
PhD Institution: University of Science and Technology of China (USTC)
Proposal: Radio Imaging Spectroscopy for CMEs and CME-driven Shocks

Charlotte Waterfall
Host: Dr. Georgia deNolfo of NASA’s Goddard Space Flight Center
PhD Institution: University of Manchester
Proposal: Bad News Travels Fast: Energetic Particle Transport in the Heliosphere

Robert Jarolim
Host: Dr. Matthias Rempel at National Center for Atmospheric Research | High Altitude Observatory
PhD Institution: University of Graz
Proposal: Physics-informed Neural Networks for the Simulation of Solar Magnetic Fields

Devojyoti Kansabanik
Host: Dr. Angelos Vourlidas at The Johns Hopkins University Applied Physics Laboratory
PhD Institution: National Centre for Radio Astrophysics, Tata Institute of Fundamental Research
Proposal: Remote Sensing of CME-entrained Magnetic Fields

Mei-Yun Lin
Host: Dr. Andrew R. Poppe at the University of California, Berkeley
PhD Institution: University of Illinois, Urbana-Champaign
Proposal: From Ionosphere or Moon? A Comprehensive Study of Metallic Ions in the Magnetosphere

By Abbey Interrante
NASA’s Goddard Space Flight Center, Greenbelt, Md.