Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

GOES-19 mesoscale — a hurricane in four RGBs

Open In Colab

You turn one GOES-19 one-minute mesoscale scan into the four standard RGB composites, a cloud mask and a parallax-corrected cloud field. The scan is sector M2 on 8 October 2026 at 18:00 UTC, centred on a hurricane in the Gulf of Mexico. Everything comes anonymously from NOAA’s public noaa-goes19 bucket.

What you’ll learn:

  1. Find and download ABI files with geoproducts.goes.aws.

  2. Read three L2 products with goes.L2Reader: imagery (MCMIP), clear sky mask (ACM) and cloud-top height (ACHA).

  3. Put them on one 2 km grid with geoproducts.stack.

  4. Build the four RGB presets and a custom gz.viz.RGBRecipe.

  5. Mask clouds with goes.MaskClouds and correct parallax with goes.ParallaxCorrect.

File formats, calibration and every product the readers handle are on the GOES-R ABI page.

Setup

On Colab the next cell installs geotoolz-products[goes,operators]; locally, use the workspace environment (make install).

Python implementation: CPython
Python version       : 3.13.16
IPython version      : 9.13.0

numpy      : 2.4.5
matplotlib : 3.10.9
h5py       : 3.16.0
georeader  : unknown
geotoolz   : 0.9.0
geoproducts: 0.3.0
geocloud   : 0.3.0

Compiler    : GCC 13.3.0
OS          : Linux
Release     : 6.18.44-fc-v80
Machine     : x86_64
Processor   : x86_64
CPU cores   : 4
Architecture: 64bit

1. Find the scan

aws.list_files lists every ABI file whose scan starts in a time window, filtered by product and sector. Mesoscale L2 products end in M (ABI-L2-MCMIPM), and sector="M2" keeps the second mesoscale box. No AWS account is needed.

MCMIP 18:00:55   4.72 MB  OR_ABI-L2-MCMIPM2-M6_G19_s20262811800558_e20262811801021_c20262811801085.nc
ACM   18:00:55   0.26 MB  OR_ABI-L2-ACMM2-M6_G19_s20262811800558_e20262811801015_c20262811801121.nc
ACHA  18:00:55   0.24 MB  OR_ABI-L2-ACHAM2-M6_G19_s20262811800558_e20262811801015_c20262811801295.nc

aws.download streams each file into a directory and reuses one that is already there. Use a temporary directory, so nothing lands in your project.

 4.72 MB  OR_ABI-L2-MCMIPM2-M6_G19_s20262811800558_e20262811801021_c20262811801085.nc
 0.26 MB  OR_ABI-L2-ACMM2-M6_G19_s20262811800558_e20262811801015_c20262811801121.nc
 0.24 MB  OR_ABI-L2-ACHAM2-M6_G19_s20262811800558_e20262811801015_c20262811801295.nc

2. Read three L2 products

goes.L2Reader opens any L2 file lazily on its +proj=geos fixed grid. Opening reads metadata only; pixels are decoded on load() or a window read. Note that ACHA comes on a 4 km grid, twice as coarse as the other two.

MCMIP (16, 500, 500) float32  2004 m  ('C01', 'C02', 'C03')
ACM   (2, 500, 500) uint8  2004 m  ('BCM', 'ACM')
ACHA  (1, 250, 250) float32  4008 m  ('HT',)
satellite longitude: -75.2°
{0: 'clear', 1: 'probably_clear', 2: 'probably_cloudy', 3: 'cloudy'}

3. Put them on one grid

geoproducts.stack warps every reader onto the first one’s grid. ACHA’s 4 km heights are interpolated bilinearly; the integer masks are resampled with mode, so they stay class codes. The stack is float32 with NaN fill because it mixes float and integer bands.

(19, 500, 500) float32
('C01', 'C02', 'C03', 'C04', 'C05', 'C06', 'C07', 'C08', 'C09', 'C10', 'C11', 'C12', 'C13', 'C14', 'C15', 'C16', 'BCM', 'ACM', 'HT')

Two of the nineteen bands, now on one grid: the longwave brightness temperature and the cloud-top height.

<Figure size 1100x450 with 4 Axes>

4. RGB recipes

Each preset turns the stack into a display RGB in [0, 1], reading its channels by name. The recipes themselves are plain data in goes.recipes; the RGB recipes table says which channels each one reads.

true_color        R=C02  G=0.45 * C02 + 0.1 * C03 + 0.45 * C01 B=C01
natural_color     R=C05  G=C03                              B=C02
day_cloud_phase   R=C13  G=C02                              B=C05
fire_temperature  R=C07  G=C06                              B=C05
<Figure size 1600x450 with 4 Axes>

Day cloud phase shows the hurricane’s cold, glaciated tops in red and yellow and the low liquid clouds around it in cyan. Fire temperature stays dark: no fires are burning in this box.

A preset is a configured operator, so get_config() shows the recipe behind it:

{'red': 'C13', 'green': 'C02', 'blue': 'C05', 'vmin': [280.65, 0.0, 0.01], 'vmax': [219.65, 0.78, 0.59], 'gamma': [1.0, 1.0, 1.0], 'axis': -3}

A custom recipe

Any other composite is one gz.viz.RGBRecipe. The CIRA simple water vapour RGB inverts three infrared channels (vmin > vmax), so cold, moist air is bright. Dry air wrapping into the storm shows up dark.

<Figure size 500x500 with 1 Axes>

5. Mask clouds

goes.MaskClouds() returns True where the clear sky mask says cloudy. conservative=True also drops probably clear pixels.

cloudy 84.0% · conservative 85.0%

gz.mask.ApplyMask blanks the masked pixels in every band. Select the bands you need first: a pixel with NaN in any band counts as no data, and HT is NaN under clear sky. A Sequential chains the three steps:

<Figure size 1000x500 with 2 Axes>

6. Correct parallax

goes.ParallaxCorrect moves each cloud top back over the ground it sits above. A geostationary satellite sees a high cloud displaced away from the sub-satellite point (75.2°W on the equator). For a 15 km hurricane top at 25°N that is several pixels.

The operator works on an EPSG:4326 grid and takes the cloud-top height per pixel. Reproject the stack first, then pick C13 and the height:

(19, 546, 616) EPSG:4326

The difference image lights up the cloud edges that moved. Clouds shift towards the satellite, to the south-east here.

<Figure size 1100x450 with 4 Axes>

Summary

  • goes.aws.list_files and download fetch any ABI product from NOAA’s anonymous buckets.

  • goes.L2Reader opens L2 products lazily; geoproducts.stack puts different resolutions on one grid and keeps mask codes intact.

  • The four presets build the operational RGBs; gz.viz.RGBRecipe builds any other.

  • goes.MaskClouds and goes.ParallaxCorrect turn the ACM and ACHA products into a cloud mask and a parallax correction.

Next: the same workflow on Himawari-9 in Himawari-9 over Japan, and the reader reference on the GOES-R ABI page.