Skip to main content

From radiance to surface reflectance

The same view of a city beside a bay, twice. On the left the whole image looks washed out and blue-grey, as if seen through haze. On the right the city is sharper and warmer in colour and the bay is darker green.
Geelong and Corio Bay, Victoria, from one Dragonette-003 acquisition. On the left is top-of-atmosphere reflectance calculated from the L1B product, and on the right is the L2A surface reflectance, both with the same colour stretch. The blue haze on the left is light scattered by the air, which atmospheric correction removes. Dragonette-003, March 19, 2025, from the Wyvern Open Data Program: L1B and L2A.

Processing levels introduced Wyvern's two products, L1B radiance and L2A surface reflectance. Between the two numbers are the spectrum of the Sun, the angle of the light, and two trips through the atmosphere. We'll follow one real Dragonette measurement from L1B radiance to L2A surface reflectance, see how much the difference changes a result as everyday as NDVI, and compare the atmosphere's share of the signal over water and over farmland.

What the sensor measures: radiance​

The L1B product records top-of-atmosphere radiance: how much light arrives at the sensor from each pixel, per unit area, per unit solid angle, and per unit wavelength. Its unit is W m⁻² sr⁻¹ µm⁻¹, and processing levels covers its data type and NoData value.

Radiance mixes together:

  • The surface's own spectrum, which is the part you're after.
  • The Sun's spectrum and angle. Sunlight is brightest in the blue. In Dragonette's bands it peaks at 464 nm and falls to less than half that by 869 nm, and a low Sun spreads the same light over more ground.
  • The atmosphere. Air and aerosols scatter some light into the sensor that never reached the surface, and gases absorb some light on the way down and back up: oxygen near 760 nm and water vapour near 820 nm.

So a radiance spectrum only roughly resembles the surface. Over vegetation, the blue reads high, and there are dips where oxygen absorbs (the 764 or 765 nm band, depending on the satellite) and where water vapour absorbs near 820 nm. None of them has anything to do with the leaves.

Step 1: divide by the sunlight​

Dividing the radiance by the sunlight arriving at the top of the atmosphere removes the Sun's spectrum and angle. The result is top-of-atmosphere (TOA) reflectance, the share of incoming sunlight that the surface and the air above it send back:

ρTOA = π L d² / (E cos θz)

SymbolWhat it is
LThe radiance in a band, from the L1B scene
EThe solar irradiance at the top of the atmosphere for that band, in W m⁻² µm⁻¹. It's the solar_illumination value in the eo:bands list of the STAC item's Cloud optimized GeoTiff asset
θzThe solar zenith angle, 90° minus the item's view:sun_elevation
dThe Earth-Sun distance in astronomical units on the acquisition date. The STAC item doesn't include it, so you calculate it from the date. Over a year it changes the sunlight by about 3% either side of the average

TOA reflectance has no units, and the Sun's spectrum is gone from it, but the atmosphere's effects are still there.

In Python, the conversion takes a few lines once you have the STAC item and the L1B GeoTIFF. This follows Wyvern's top-of-atmosphere-processing notebook, which uses the sine of the Sun's elevation (equal to cos θz) and a short approximation for d:

import math
from datetime import date

import numpy as np
import rasterio
import requests
from rasterio.windows import Window

item_id = "wyvern_dragonette-003_20250319T000402_d5ebab06_l1b"
item = requests.get(f"https://wyvern-odp.com/l1b/{item_id}/{item_id}.json", timeout=30).json()
cog = item["assets"]["Cloud optimized GeoTiff"]
e_sun = np.array([b["solar_illumination"] for b in cog["eo:bands"]]) # one value per band
sun_elevation = item["properties"]["view:sun_elevation"] # degrees
day = date.fromisoformat(item["properties"]["datetime"][:10]).timetuple().tm_yday
d = 1 - 0.01672 * math.cos(math.radians(0.9856 * (day - 4))) # astronomical units

# The L1B GeoTIFF is about 7 GB. Read one window over HTTP, retrying when the
# imagery host returns HTTP 429.
with rasterio.Env(GDAL_HTTP_MAX_RETRY=5, GDAL_HTTP_RETRY_DELAY=10):
with rasterio.open(cog["href"]) as src: # or the path to a downloaded copy
window = Window(src.width // 2 - 256, src.height // 2 - 256, 512, 512)
radiance = src.read(window=window).astype("float64")
radiance[radiance == src.nodata] = np.nan

toa = math.pi * radiance * d**2 / (e_sun[:, None, None] * math.sin(math.radians(sun_elevation)))

Our imagery host rate-limits range requests, so if reading over HTTP keeps failing, download the file and open it locally. File formats explains the retry settings.

For this scene, d is 0.996 (0.995 from the shorter approximation in the code) and the Sun was 39.6° above the horizon, so θz is 50.4°.

Step 2: remove the atmosphere​

Atmospheric correction models what the air did to the light and reverses it. Over most land, two effects matter most in the visible and near-infrared:

  • Scattering adds light. Molecules and aerosols scatter sunlight, most strongly in the blue, and some of it reaches the sensor without ever touching the surface. Correction subtracts that light, so blue reflectance drops.
  • Absorption and scattering remove light. Some of the light the surface reflects is absorbed or scattered away before it reaches the sensor. Correction adds it back, so near-infrared reflectance rises and the oxygen and water vapour dips fill in.

What happens to sunlight between the Sun and the sensor

The Sun at top left, a satellite sensor at top right, and a band of atmosphere above the ground. Path 1: sunlight passes down through the air, reflects off a field, and travels back up to the sensor, weakened on both passes. Path 2: sunlight scatters off the air itself and reaches the sensor without touching the ground. Path 3: sunlight is absorbed by a gas such as oxygen and never reaches the sensor.AtmosphereThe surface you want to measureSunSensor12O₂31Reflected by the surface,weakened on both passes2Scattered into the sensorby the air, mostly blue3Absorbed by gases, forexample oxygen near 760 nm
Schematic, not to scale. Top-of-atmosphere radiance is the sum of path 1 (the signal from the surface) and path 2 (light the air scatters into the sensor). Atmospheric correction estimates path 2 and the light lost along path 1, including the gas absorption shown as path 3, and removes them.

Wyvern's L2A product does this with a radiative transfer model, and atmospheric correction has the details. The result is surface reflectance: an estimate of what the surface would reflect with no atmosphere above it.

The figure follows a vegetated patch near Geelong through both steps, using the L1B and L2A versions of the scene in the hero image.

From light to reflectance

0204060801001200.00.10.20.30.40.50.6Radiance (W m⁻² sr⁻¹ µm⁻¹)Reflectance450550650750850Wavelength (nm)Oxygen, 764 nmWater vapourSurface reflectance (L2A)Top of atmosphere, NDVI 0.76Surface (L2A), NDVI 0.83Incoming sunlight445 nm869 nmW m⁻² µm⁻¹, from STACρ = π L d² / (E cos θ)L radiance, E sunlightd 0.996 AU, θ 50.4°A line chart for one vegetated patch near Geelong, Victoria, from 445 to 869 nm. First it shows top-of-atmosphere radiance from the L1B product, high in the blue, with absorption dips at 764 nm (oxygen) and at 814 and 832 nm (water vapour). Divided by the solar irradiance, it becomes top-of-atmosphere reflectance, and the dips remain. Atmospheric correction then lowers the blue, raises the near-infrared, and fills in the dips, matching the L2A surface reflectance. NDVI is 0.76 from top-of-atmosphere reflectance and 0.83 from surface reflectance.

Top-of-atmosphere reflectance overstates the blue and red and understates the near-infrared, so anything calculated from it is biased. The key gives the NDVI of each curve.

A 3 × 3 pixel patch (lon 144.426, lat -38.278) from the Dragonette-003 acquisition of March 19, 2025, published in the Open Data Program as both L1B and L2A. Top-of-atmosphere reflectance is calculated from the L1B radiance as π L d² / (E cos θ), with each band’s solar irradiance E from the STAC metadata, the Earth-Sun distance d, and the solar zenith angle θ. Surface reflectance is the L2A product. Hover over the chart for each band’s values.

Why it matters​

One field, two NDVIs​

For the patch in the figure, the atmosphere raised the red and lowered the near-infrared, which pulled NDVI down from 0.83 in surface reflectance to 0.76 in TOA reflectance, even though the vegetation was the same.

That gap depends on the atmosphere that day, the Sun's height, and the surface itself, so no single fixed adjustment removes it. Two scenes of the same field compared as TOA reflectance can differ because of haze rather than anything happening to the crop. Spectral libraries hold spectra measured in a lab or close to the target, with almost no air in the way, so they compare with surface reflectance and not with TOA reflectance.

The atmosphere's share over water​

The light the air scatters into the sensor doesn't depend much on what's underneath, so it makes up more of the signal over a dark surface such as water. The chart compares open water in Corio Bay with farmland near Geelong in the same scene. The farmland is a different place from the vegetated patch in the figure above.

How much of the signal comes from the surface

Two bar charts of reflectance at 480, 550, and 650 nm, one for open water in Corio Bay and one for farmland near Geelong, from the same Dragonette-003 acquisition. Each bar is the top-of-atmosphere reflectance, split into the L2A surface reflectance at the bottom and the part the atmosphere adds on top. The atmosphere adds a similar amount over both, about 0.06 at 480 nm and less at longer wavelengths. Because water is darker, the surface makes up a smaller share over water: 20%, 48%, and 63% at 480, 550, and 650 nm, against 52%, 78%, and 95% for farmland.Surface reflectance (L2A)Added by the atmosphere0.000.020.040.060.080.100.120.14ReflectanceOpen water, Corio Bay20% surface480 nm48% surface550 nm63% surface650 nmFarmland near Geelong52% surface480 nm78% surface550 nm95% surface650 nm

Water, 550 nm: top-of-atmosphere reflectance 0.065, surface reflectance 0.031. The surface accounts for 48% of what reaches the sensor, and the atmosphere adds the other 0.034.

Top-of-atmosphere reflectance calculated from the L1B radiance, and L2A surface reflectance, averaged over a 3 × 4 km box of open water (centred on lon 144.495, lat -38.108) and a 1.6 × 2.1 km box of farmland (lon 144.309, lat -38.083). They’re the same boxes as on the Atmospheric correction page, and the farmland isn’t the vegetated patch in the figure above. The full height of each bar is the top-of-atmosphere reflectance, and the hatched part is that minus the surface reflectance. Hover over a bar for its values.

At 550 nm, the water's surface reflectance is about 48% of its TOA reflectance and the farmland's about 78%, so the same error in the correction matters more over water. Atmospheric correction shows how much the L2A correction removed across the scene and what that means for water work.

Where to go next​

References​

[1] Wyvern Data Product Guide: processing levels and product specifications.

[2] Wyvern: top-of-atmosphere-processing.

[3] Wyvern Open Data Program: Dragonette-003 L1B and L2A, March 19, 2025.