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.

S-Pol Radar Reflectivity from the PRECIP Field Campaign

Authors
Affiliations
NSF NCAR
NSF NCAR
NSF NCAR
GDEX Cookbook logo

Overview

During the 2022 Prediction of Rainfall Extremes Campaign In the Pacific (PRECIP), NCAR’s S-Pol radar scanned precipitating systems over the western Pacific. GDEX hosts the radar moments as the ARCO dataset d694517, converted to analysis-ready Zarr stores following the CfRadial2 convention and served over OSDF.

S-Pol scans in two geometries: vertical Range–Height Indicator (RHI) slices and horizontal Plan Position Indicator (PPI) surveillance sweeps. We open one of each and plot reflectivity.

  1. Open S-Pol radar Zarr stores as a hierarchical DataTree

  2. Extract a single sweep

  3. Plot an RHI (vertical) reflectivity cross-section

  4. Georeference and map a PPI (horizontal) sweep

Prerequisites

ConceptsImportanceNotes
Introduction to ARCO/Zarr on GDEXHelpfulOpening Zarr stores on GDEX
xarrayNecessaryDataTree for hierarchical sweeps
xradarNecessaryRadar data structures & georeferencing
cmweatherNecessaryWeather colormaps
CartopyNecessaryMapping
  • Time to learn: 30 minutes

  • System requirements: zarr ≥ 3.1.6 and a recent xarray with DataTree support


Imports

Locating the data

S-Pol stores one Zarr per scan. We use two scans from 25 May 2022 — an RHI (vertical) scan and a PPI (horizontal surveillance) scan — streamed from GDEX over the OSDF director.

https://osdf-director.osg-htc.org/ncar-gdex/d694517/v2.0_zarr/cfrad.20220525_015443.665_to_20220525_015709.985_SPOL_PrecipRhi2_RHI.zarr

Opening the data

CfRadial2 organizes each scan’s sweeps as a hierarchy, so we open the stores with xr.open_datatree — every sweep (sweep_0, sweep_1, …) is a node in the tree.

Loading...

Visualizing the RHI (vertical) scan

We extract the first sweep, compute each gate’s altitude from its range and elevation angle (accounting for Earth’s curvature), and plot reflectivity as a range–altitude cross-section.

<Figure size 1600x400 with 2 Axes>

Visualizing the PPI (horizontal) scan

For the surveillance scan we use xradar to georeference the polar coordinates into Cartesian x/y/z, then map reflectivity onto a Cartopy projection for geographic context.

/home/runner/micromamba/envs/gdex-cookbook/lib/python3.12/site-packages/cartopy/mpl/geoaxes.py:1769: UserWarning: The input coordinates to pcolormesh are interpreted as cell centers, but are not monotonically increasing or decreasing. This may lead to incorrectly calculated cell edges, in which case, please supply explicit cell edges to pcolormesh.
  result = super().pcolormesh(*args, **kwargs)
/home/runner/micromamba/envs/gdex-cookbook/lib/python3.12/site-packages/cartopy/io/__init__.py:263: DownloadWarning: Downloading: https://naturalearth.s3.amazonaws.com/10m_physical/ne_10m_coastline.zip
  warnings.warn(f'Downloading: {url}', DownloadWarning)
<Figure size 1000x1000 with 2 Axes>

Summary

We opened NCAR S-Pol radar scans from the PRECIP campaign as CfRadial2 Zarr DataTrees over OSDF, extracted single sweeps, and plotted reflectivity as a vertical RHI cross-section and a georeferenced horizontal PPI map.

What’s next?

Continue to Data Fusion to combine multiple GDEX datasets in a single analysis.