Artemis II Solar Eclipse#
The Artemis II mission launched on the 1st April 2026; this launch date allowed the crew to observe a solar eclipse on the 6th April(EDT) / 7th April (UTC) after transiting the far side of the moon.
Image credit NASA#
We on the SunPy blog rarely miss the opportunity to talk about a solar eclipse. So when we saw the stunning photos taken by the astronauts on Artemis II, we wanted to use SunPy to compare them to other photos of the solar corona. I do highly recommend watching the recording of the eclipse on YouTube; the reactions and descriptions of the astronauts are worth it.
Amongst the many amazing photos downlinked during the mission was this image of the solar eclipse:
Image credit NASA#
This image is particularly good for comparing to other solar data because the limb of the moon is clearly visible, and there are stars and planets in the image we can use as references. These features will allow us to determine exactly where and at what angle the camera was pointing. At the end of the post you will be able to see how we can overlay on this photo images taken by solar observing satellites.
Fitting Coordinate Information#
To be able to compare this image with other observations of the Sun, we need to identify where the camera was pointed and how it was rotated. To do this we perform the following steps:
Extract the time information from the metadata stored in the image.
Use the time information to lookup the exact position of Artemis II.
Fit the edge of the moon to identify the location of the center of the moon, and the size of the moon in the image.
Use the three planets visible in the lower right of the image to identify the rotation angle.
Use the planets to fit the distortion of the lens.
All the code for this example is in The sunpy Gallery.
Finding the position of Artemis II#
The first step is to know the time the image is taken; we can extract this from the EXIF metadata. Once we have this we query JPL Horizons for the position of Artemis II.
from sunpy.coordinates import get_horizons_coord
artemis2_naif_id = "-1024"
artemis2_coord = get_horizons_coord(artemis2_naif_id , "2026-04-07 01:06:19")
We can also use the positions returned by JPL Horizons and the coordinates packages in sunpy and astropy to visualize what part of the Artemis II trajectory was in eclipse. To see the details of how this was done see this example in the SunPy gallery.
Visualization of the Artemis II trajectory with the eclipse highlighted.#
Moon Limb Fitting#
The next step is to find a known location in the image, a reference point. The easiest one for us to use is the center of the moon, which we find by doing edge detection and Hough filtering, using scikit-image.
import numpy as np
from skimage.feature import canny, peak_local_max
from skimage.transform import hough_circle, hough_circle_peaks
edges = canny(eclipse_image, sigma=2)
h, w = eclipse_image.shape
radii = np.arange(0.25*h, 0.4*h, 10)
hough_res = hough_circle(edges, radii)
accums, cx, cy, rad = hough_circle_peaks(hough_res, radii, total_num_peaks=1)
A cropped view of the Moon, showing the results of the canny edge detection algorithm and the Hough filter.#
Calculating Image Scale#
Based on the determined center of the moon is and its radius in the image we can construct a coordinate system for the image.
from astropy.coordinates import SkyCoord
import astropy.units as u
moon = SkyCoord(coords["moon"], observer=coords["artemis_ii"])
R_moon = 0.2725076 * u.R_earth # IAU mean radius
dist_moon = SkyCoord(coords["artemis_ii"]).separation_3d(moon)
moon_angular_width = np.arcsin(R_moon / dist_moon).to(u.arcsec)
im_radius = rad * u.pix
plate_scale = moon_angular_width / im_radius
Using this information we can build a sunpy map (see the gallery example for details). Plotting this alongside the locations of the planets results in:
Initial coordinate system fit to image, notice that the locations of the highlighted planets are incorrect.#
Fitting Roll Angle#
It’s clear from the previous image that the image is rotated around the center of the moon. We can solve for this rotation by using a peak finding algorithm to locate the planets in the image and comparing these positions to the planets coordinates extracted from JPL Horizons. Doing this results in a \(-21.2^\circ\) roll angle which we can add to our Maps metadata.
Image showing the expected positions of the planets and the detected (peaks) positions of the planets, from which the roll angle is calculated.#
Fitting Lens Distortion#
The final correction to apply to our fitted coordinate system is the distortion of the camera lens (a Nikkor AF 135mm f/2D DC). This makes objects distant from the centre of the image appear even more distant than they should. We can quantify exactly how much the image has been distorted through comparing the expected vs actual positions of Mars and Mercury (not Saturn as it is too close to the center of the image). We add this distortion to our coordinate system and our planets now appear in the correct place.
Coordinate system fit to with additional correction for lens distortion.#
Overplotting Coronagraph Images#
Now that we have fit a coordinate system to the eclipse photo we can compare this observation of the corona to other data. To do this we are going to use the coronagraph on the Solar and Heliospheric Observatory (SOHO) which is located around the Sun-Earth L1 point. We reproject (or re-grid) these images to the fitted coordinate system of the Artemis II image to compensate for differences in satellite location and point of view, and then crop them to the limb of the moon.
The Artemis II solar eclipse photo with the positions of Mercury, Mars and Saturn highlighted, and coronagraph images from SOHO’s LASCO instrument plotted over the disc of the moon.#
We hope you have found this post interesting. The full code for this post can be found in The sunpy Gallery. Remember, that if you are lucky enough to observe the total solar eclipse which will be visible from parts of Europe in August 2026 and you take a photo, you can try this type of analysis with your own photos, by following our previous blog post!