Artist's impression of the hot Jupiter HAT-P-41b silhouetted against its host star, its atmosphere glowing as a thin bright ring

Planetary Space Science · A 2-hour class

Reading the air of a world 1,100 light-years away

A planet we will never visit crosses the face of its star every 2.69 days. Each crossing, a sliver of starlight filters through the planet's atmosphere — and hidden in that sliver is the recipe of an alien sky. In this class you will follow real Hubble data on the hot Jupiter HAT-P-41b, from raw detector frames to a spectrum of its atmosphere.

Image: artist's impression generated for this class. The planet's glowing rim is the starlight-filtering atmosphere you will learn to measure.

The 2-hour route

One question drives the whole session: how do you weigh the air of a planet you can never touch? Every act answers one piece of it.

0:00 – 0:10

The hook

A 1% dip in starlight. What could it tell us? The big question and the plan.

0:10 – 0:25

Meet HAT-P-41b

An inflated hot Jupiter, a quiet F-type star, and why astronomers picked this target.

0:25 – 0:45

Transit lab

Build a transit yourself: depth, duration, and why atmosphere makes planets look bigger.

0:45 – 0:55

Break

Stretch. When we return: the telescope that took the data.

0:55 – 1:15

Hubble & the G280 grism

Slitless spectroscopy: turning one image into a rainbow of overlapping orders.

1:15 – 1:35

Cleaning real data

Background glow, cosmic rays, curved traces — the pipeline from the STScI notebook.

1:35 – 1:50

Curves → spectrum

One light curve per colour becomes the transmission spectrum — and the headline results.

1:50 – 2:00

Quiz & debate

Five questions, then the scientific argument the class gets to judge.

ACT 1 · 0:10–0:25

Meet HAT-P-41b: a puffed-up giant on a 2.7-day orbit

HAT-P-41b was discovered in 2012 by the HATNet survey, which found it the same way this class will study it — by watching its star blink. It is a hot Jupiter: a gas giant scorched by orbiting twenty times closer to its star than Earth is to the Sun.

2.694 days
Orbital period — a "year" shorter than a long weekend
1.685 RJ
Radius — wider than Jupiter, so it blocks ~1% of its star
0.80 MJ
Mass — Jupiter's bulk in a bigger body: remarkably low density
1,941 K
Equilibrium temperature — hot enough to glow dull red
0.0426 AU
Orbital distance — about 9 stellar radii from the star's centre
344 pc
Distance from Earth — roughly 1,100 light-years
F-type 6,390 K
Host star HAT-P-41 — hotter and ~1.7× wider than the Sun
V = 11.1 mag
Star brightness — too faint for the eye, easy for Hubble

Size lineup

HAT-P-41b 1.685 RJ Jupiter 1 RJ Earth 0.089 RJ Planet discs to scale with each other. The host star (1.68 R☉) would be ~2 m wide at this scale.
Same mass class, very different body: HAT-P-41b has 80% of Jupiter's mass spread over 168% of its radius.

Why astronomers chose this planet

Transmission spectroscopy is a game of signal size. HAT-P-41b stacks the odds in our favour:

  • Inflated atmosphere. Low density + fierce heating = a puffy atmosphere with a large scale height, so the glowing ring in the hero image is thick and absorbs a lot of starlight.
  • A quiet star. HAT-P-41 shows little activity, so starspots don't fake or mask the planet's signal.
  • A short period. A transit every 2.69 days means Hubble can catch many events — and each one re-measures the same atmosphere.
  • A bright-enough host. At V = 11.1 the star delivers plenty of photons for high-precision work.

It was such a good target that it became the first exoplanet ever observed in transit with Hubble's G280 grism (program GO 15288, published by Wakeford et al. 2020).

ACT 2 · 0:25–0:45 · HANDS-ON

The transit lab: a planet is a moving shadow

When a planet crosses its star, the star's light dips by the fraction of the disc the planet covers. That dip — the transit depth — is just an area ratio. Run the simulation, then change the planet's size and watch the light curve answer.

R_p/R_* = 0.101 · depth ≈ 1.02%
Top: the view from Hubble. Bottom: the light curve being written in real time. Slider range runs from a super-Earth to a star-grazing giant; the default is HAT-P-41b's true size ratio.

The one equation of the day

ΔF / F = (Rp / R*)²

Depth = (planet radius ÷ star radius), squared. For HAT-P-41b: (0.101)² ≈ 0.010 — a 1% dip. An Earth crossing a Sun-like star gives (0.0092)² ≈ 0.008%: a hundred times shallower. Size is why hot Jupiters were found first.

Anatomy of the dip

Ingress — the planet's edge slides on; light falls. Flat bottom — the full disc is in front of the star; depth is constant. Egress — it slides off. The flat bottom's length plus the ramps give the orbital geometry; the depth gives the size ratio. Everything else in this class is about squeezing more than size out of that dip.

The atmosphere trick

The planet's solid body is opaque at every colour — but its atmosphere is not. At wavelengths the air absorbs strongly, the planet looks bigger; where the air is transparent, it looks smaller. So: measure the depth at many colours, and the "size vs colour" curve is a fingerprint of what's in the air. That curve is the goal of the whole pipeline.

ACT 3 · 0:55–1:15

Hubble and the G280 grism: a rainbow machine with no slit

Hubble's Wide Field Camera 3 (WFC3) can swap a filter for a grism — a prism-grating hybrid that smears every point of light into a spectrum, right on the detector. No slit, no moving parts: one exposure captures the spectra of everything in the field. The UVIS channel's G280 grism covers 0.2–0.8 µm, from the ultraviolet through the whole visible band, in a single shot.

The Hubble Space Telescope in orbit above Earth's limb, solar wings extended
Hubble above the atmosphere — the only way to reach the ultraviolet. Earth's air blocks nearly all light below ~0.32 µm, and it is exactly that UV window where clouds and hazes confess. (Artist's impression generated for this class.)

What one G280 frame looks like

0th order undispersed · saturated +1 order −1 order +2 order (fainter) −2 order (fainter) 0.2 µm ← wavelength → 0.8 µm (mirrored on the − side)
Schematic of the notebook's §2.2 figure. Traces curve, orders overlap, and the zeroth order sits in the middle, saturated with diffraction spikes. The +1 and −1 orders are the workhorses; +1 is the more sensitive of the two.

One grism vs. the old way

Before G280, covering the ultraviolet-to-optical range meant stitching together three separate STIS modes on Hubble. G280 does it in one exposure — and reaches bluer than all of them. Add the infrared grism G141 and Spitzer, and HAT-P-41b's spectrum spans 0.2–5.0 µm.

0.2 0.5 1.0 2.0 5.0 µm WFC3/UVIS G280 · 0.2–0.8 µm — this class STIS E230M + G430L + G750L · three modes, ~0.2–1.0 µm WFC3/IR G141 · 1.1–1.7 Spitzer IRAC photometry · 3.6 & 4.5 µm points

Why fight for the ultraviolet? Because that's where scattering by tiny haze particles and several metal-bearing molecules leave their strongest marks. A planet can look bland in the infrared and dramatic in the UV — as HAT-P-41b does.

ACT 4 · 1:15–1:35 · HANDS-ON

Raw frames are messy. Meet the mess.

The GO 15288 visit is a time series of 54 grism exposures, each an 800 × 2100-pixel subarray read from the UVIS2 chip. Before any science, the frames carry three kinds of trouble. Toggle them on and off — then clean the frame the way the notebook does.

54
Exposures in the visit-1 time series analysed in the notebook
800 × 2100
Pixels per frame — a subarray of the UVIS2 detector
(2041, 1064)
Target position in the full frame, found from the direct image to 0.03 px of Wakeford et al.'s value
±30 px
Extraction aperture around each fitted trace used in the notebook

The detector playground

A synthetic G280 frame, built for this class with the same ingredients as the real one. Add each contaminant, then apply the notebook's two cleaning steps in order.

Raw frame — all contaminants in
Teaching simulation, not real HST data. In the notebook, step 1 subtracts a master G280 sky frame (built by stacking public exposures, Pagul et al. 2023) scaled to each frame's median; step 2 sigma-clips outliers across time (4σ) and within each frame (3σ).

Background glow

The sky itself glows faintly through the grism, and the pattern isn't flat. Left in, it adds a wavelength-dependent offset to every spectrum — poison when you're chasing a 1% signal. The fix: a master sky frame, scaled and subtracted.

Cosmic rays

Energetic particles slam into the detector throughout the hours-long visit, leaving bright spikes and streaks. A spike sitting on the spectrum fakes extra light at that wavelength. They are random in space and in time — so the notebook hunts them both ways.

Hot & bad pixels

Some pixels are permanently over-eager. In a standard-deviation stack of all 54 frames they shine as fixed bright points. Because they don't move, the time-series itself exposes them: real starlight varies smoothly; a bad pixel misbehaves.

ACT 5 · 1:15–1:35

The pipeline: six moves from archive to light curve

This is the exact route of the STScI notebook "Analyzing WFC3/UVIS G280 Exoplanet Transit Observations" (Alam 2025). Each step names the tool the notebook actually calls — by the end of the class, students can open the notebook and recognise every move.

STEP 1notebook §2

Fetch from the archive

Query MAST for program GO 15288, target HAT-P-41B, and download the calibrated _flt.fits frames. A direct image through a filter locates the star to a fraction of a pixel.

astroquery.mast · Observations.query_criteria(obs_id='idps01*')
STEP 2notebook §3

Subtract the background

Cut the matching patch from the master G280 sky frame, scale it by each exposure's median level, and subtract. The glow goes; the spectrum stays.

time_series_bkg_sub = time_series_grism − scaled_sky
STEP 3notebook §4

Remove cosmic rays — twice

First across time: a pixel that flares in one frame only is clipped (4σ, iterated). Then in space: sharp spikes inside a single frame are clipped (3σ). Corrected frames are saved as _c_flt.fits.

remove_cosmic_rays_time() · remove_cosmic_rays_space()
STEP 4notebook §5

Embed the subarray

The spectra live on a small subarray of UVIS2, but the trace mathematics needs full-frame coordinates. Each cleaned frame is pasted back into a full-frame canvas using the header's offset keywords.

g280_transit_tools.embedsub_uvis()
STEP 5notebook §6–8

Fit the trace, extract 1D spectra

GRISMCONF predicts exactly where each order's curved trace falls for the star's position. Sum the light in a ±30 px aperture along the +1 and −1 traces, exposure by exposure: 54 two-dimensional images become 54 one-dimensional spectra.

fit_spectral_trace() · GRISMCONF (Pirzkal & Ryan 2017)
STEP 6notebook §9

Build light curves

Add up each spectrum over all wavelengths for the white-light curve — or over a narrow colour slice for a spectroscopic one. Normalise by the first ten out-of-transit points, and the transit appears.

make_light_curve(wl_min, wl_max)
The notebook's own learning goals

By the end of the tutorial you can: perform a background subtraction · remove cosmic rays spatially and temporally · perform trace fitting to extract the 1D time-series of stellar spectra · produce light curves for transit fitting. This class walks the same four skills — conceptually here, in code in the notebook.

ACT 6 · 1:35–1:50 · HANDS-ON

One dip, many depths: the light curves

Sum a whole spectrum and you get the white-light curve — the notebook plots both the +1 and −1 orders this way, and they agree. Now slice the spectrum into colour bands and fit a transit in each. Try the bands: the ultraviolet dip is deeper. The planet genuinely looks bigger in blue light — its hazy upper atmosphere is doing that.

White light · 0.20–0.80 µm · both orders

Depth ≈ 1.06% — the planet's disc averaged over all colours. The two orders are independent measurements of the same event; their agreement is the first sanity check.

Teaching simulation with realistic noise, drawn in the style of the notebook's §9 figure (points: +1 order amber, −1 order teal; line: transit model). Relative band depths follow the published spectrum's shape; absolute values are illustrative.
Read it like an astronomer

The x-axis is hours from mid-transit, the y-axis is flux normalised so out-of-transit = 1.000. Nothing about the star changed during those hours — every wiggle at the 0.1% level is either the planet, the instrument, or noise. Telling those apart is the entire craft of the field, and why the cleaning steps in Act 5 matter.

ACT 7 · 1:35–1:50

Stack the depths: the transmission spectrum

Plot each band's fitted size ratio against wavelength and the light curves become a transmission spectrum — the closest thing we have to a photograph of an exoplanet's air. Here is the shape of HAT-P-41b's, from the G280 data of Wakeford et al. (2020) extended into the infrared.

Schematic redrawn for teaching from the published results (Wakeford et al. 2020; Lewis et al. 2020) — shapes and feature positions are faithful, exact values should be read from the papers. Amber: G280 (this class). Blue: WFC3 G141 infrared. Green ticks: Spitzer photometry points.

A steep ultraviolet slope Measured

Toward the blue and UV, the planet's apparent size climbs well above its white-light value. Something small-particle — haze or cloud aerosol high in the atmosphere — is scattering and absorbing the short wavelengths. This slope is the headline G280 result and the reason the UV window matters.

Metal-bearing absorbers in the optical Interpretation

Wakeford et al. (2020) found the optical spectrum best matched with absorption from titanium/vanadium oxides (TiO/VO) among other species — molecules that only survive in gas hotter than ~1,500 K. Which exact mix of absorbers is still argued over (see the debate below).

The H⁻ hypothesis Interpretation

Lewis et al. (2020), analysing the full 0.2–5.0 µm spectrum with several independent tools, found the most robust single explanation was opacity from the negative hydrogen ion, H⁻ — abundant far beyond equilibrium-chemistry predictions, plausibly supplied by photochemistry. A beautiful case of data forcing new chemistry.

Water in the infrared Measured

The G141 grism shows the planet swelling at 1.4 µm — the classic water-vapour band. HAT-P-41b's air is hydrogen-rich with detectable H₂O, consistent with a (possibly metal-enriched) hot-Jupiter atmosphere.

Science is an argument · the debate

Not everyone agrees. Fu et al. (2022), re-analysing Hubble data for this planet, found no need for H⁻ or heavy-element absorbers, favouring a dense hydrogen atmosphere with strong ionisation instead — and ground-based GTC spectra (Jiang et al. 2023) report TiO again. Same planet, same photons, different pipelines and models, different answers. Class discussion: what extra observation would you propose to settle it — and what would each side predict you'd see?

ACT 8 · 1:50–2:00

Check yourself: five questions

Tap an answer for instant feedback. No scores are recorded — this is for you and the person next to you to argue about.

Score: 0 / 5 answered

AFTER CLASS

Run the real thing

Everything in this class came from one public notebook and public archive data. The data are free, the code is free, and the planet transits every 2.69 days whether anyone watches or not.

Discussion prompts for the last ten minutes

  1. HAT-P-41b's transit is 1% deep. What is the shallowest transit you could detect if your photometry is good to 0.1%? What planet–star pair does that correspond to?
  2. The notebook removes cosmic rays in time and in space. Invent a contaminant that only one of the two passes can catch — and one that fools both.
  3. Two teams, same data, opposite conclusions about H⁻. List three places in the pipeline where their choices could diverge.
  4. G280 was never designed as an exoplanet instrument. What does its success here suggest about how astronomy gets done?