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.
Size lineup
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).
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.
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.
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.
What one G280 frame looks like
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.
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.
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.
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.
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.
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.
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*')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_skyRemove 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()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()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)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)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.
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.
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.
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.
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.
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?
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.
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.
-
⬇ The lecture slides (PPTX)
The companion slide deck for this class: 10 slides timed across the same 2 hours and 8 acts, visual-first with the same HAT-P-41b story — cover, transit geometry, light curve, G280, pipeline, transmission spectrum, closing discussion.lecture-slides.pptx · 10 slides · download
-
The STScI notebook — this class's source
"Analyzing WFC3/UVIS G280 Exoplanet Transit Observations" by Munazza K. Alam (WFC3 & NIRSpec Instrument Teams). The full reduction, in runnable Python.spacetelescope.github.io/hst_notebooks/…/G280_Exoplanet_Transits.html
-
MAST — the Mikulski Archive
Download the actual GO 15288 frames: search target HAT-P-41B, observation IDs beginning idps01. The same files the notebook downloads.archive.stsci.edu
-
WFC3 instrument pages
Grism resources, the G280 sky frames used for background subtraction, and the Instrument & Data Handbooks (Ch. 8 covers slitless spectroscopy).stsci.edu/hst/instrumentation/wfc3
Discussion prompts for the last ten minutes
- 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?
- 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.
- Two teams, same data, opposite conclusions about H⁻. List three places in the pipeline where their choices could diverge.
- G280 was never designed as an exoplanet instrument. What does its success here suggest about how astronomy gets done?