A visual walkthrough of the WindBorne radiosonde pipeline — which fields we pull from the API, how raw levels are filtered into a clean cruise-band table, how relative humidity over liquid and over ice are derived, and the exact criteria that flag an ice-supersaturated region (ISSR).
Every balloon ascent and subsequent descent (referred to as legs) are a sounding: a time-ordered sequence of observations collected and transmitted as the balloon rises and falls. The WindBorne observations API (api.windbornesystems.com/observations/v1) exposes soundings through two calls, paired together: a paginated index that lists which soundings exist, and a per-sounding fetch that returns the full vertical column for one of them.
The index (GET soundings.json) is walked page by page, trusting the server's has_next_page flag as the authoritative loop terminator rather than stopping on a short page — a short page can still be followed by another page. Each index row is lightweight metadata: id, mission_id, start_time/end_time, and the min/max altitude the ascent reached. The heavy payload comes from following up with GET soundings/{sounding_id}.json, which returns {sounding_id, mission_id, data: [levels…]} — one dict per level.
latitude/longitude) is per observation, not per sounding — balloons drift horizontally while climbing, so each level carries its own fix.
Eight fields are read from each observation record. The client and the two downstream consumers (sounding.py's live analysis path and ingest.py's cache builder) both resolve field names through a small alias table rather than a hardcoded key, tolerant of schema variants (e.g. altitude_m vs. altitude) until the exact production schema is locked down:
| Field pulled | What it is |
|---|---|
| altitude_m | Geopotential height above mean sea level (m) |
| pressure_hpa | Ambient pressure (hPa) |
| temperature_c | Air temperature (°C) |
| dewpoint_c | Dewpoint temperature (°C) — the preferred route to compute RHi |
| relative_humidity_pct | Reported RH (%) — over liquid water, see §03 |
| specific_humidity_mg_kg | Kept for documentation / cross-check; not used to derive RHi |
| latitude, longitude | Lateral position (deg) — the balloon's drift track |
| time | Timestamp |
flying_missions and missions/{id}/flight_path exist in the same API family and would give a mission's live position/launch site directly — but under the key this pipeline uses they return a hard 401, unconditionally, whether the mission is still flying or already landed. The ISSR pipeline never depends on them: it only calls soundings/sounding, which work fine under the same key. WindBorne has been contacted about potentially granting access to mission-level data as well.
A sounding's data array is ordered by time, not altitude. It captures the balloon ascending and then descending (when negative lift is applied), such that both legs can potentially pass through nearly the same air if there was little drift involved. The same can of course be the case for the descent of a sounding followed by the ascent of the subsequent sounding. Filtering happens in three passes, in the following order.
1. Splitting into legs. The sounding's data array is split at its altitude argmax into an ascent leg (start through the peak) and a descent leg (peak to end). Both legs keep the parent sounding_id as a pairing key, since the two passes sample correlated, rather than independent air.
2. Restricting to the cruise band. Only levels between FL250 and FL450 (approximately 7620 to 13716 m above mean sea level or 375 to 150 hPa pressure altitude), representing the altitude band commercial aircraft actually fly, are kept. This is the band our contrail avoidance-relevant ISSR statistics are meant to be representative of.
3. Applying the QC mask. A n observation survives only if every one of the following conditions hold:
levels_to_frame)
The first block (altitude/pressure/position/time) is always required. The second block (temperature/RH range) is required for climatology work but can be relaxed — an ingest run for a position-only analysis (e.g. balloon movement) passes skip_temp_rh_requirement=True, since humidity is gated on temperature QC and has the lowest pass rate of any field WindBorne reports (see Spisak et al. preprint).
Observations that pass are then sorted by altitude within their leg, so every downstream array is monotone in altitude — the ISSR layer detection in §06 depends on that ordering. The sounding.py live-analysis path applies the same shape of filter (finite checks, 150 K < T < 330 K, 0 ≤ RH < 1.6, plausible pressure), and additionally requires at least 5 surviving samples before building a usable profile.
Relative humidity is always a ratio: the ambient water-vapour partial pressure divided by a saturation vapour pressure. That saturation pressure depends on which phase — liquid or ice — the air would be in equilibrium with, and below 0°C those two reference curves diverge. "RH = 80%" is a different amount of water vapour depending on which curve was used to compute it.
Saturation vapour pressure over (supercooled) liquid water is computed with the Murphy & Koop (2005) formulation, valid from 123 K to 332 K — comfortably covering the cirrus/UTLS temperature range:
$T$ in Kelvin; result in Pa. The same paper's ice formulation (§04) is used for the ice reference so both curves are internally consistent — the prior ERA5/GRUAN pipeline mixed Murphy & Koop liquid with a different ice formula (Sonntag 1994); the two ice curves differ by well under 1% across the cirrus range, so this pipeline uses Murphy & Koop for both.
Which reference phase does WindBorne's own relative_humidity_pct field use? This had to be checked empirically rather than assumed: comparing the reported RH against the over-liquid and over-ice readings implied by each observation's dewpoint shows the reported field matches the liquid reading to within 0.4%, at every observation, independent of Temperature. So the API's processed RH field is plain RH over liquid water at all temperatures — not WindBorne's onboard sensor-paper blend convention (that distinction matters a lot; see §05). Nonetheless, RH is always computed from the dewpoint temperature for our purposes:
Dewpoint is defined as the temperature at which ambient vapour pressure equals saturation over liquid, so $e = e_{\text{sat,liq}}(T_{\text{dew}})$ by construction — this ratio recomputes exactly what the reported field should read, and is the basis of the schema-drift check below.
Everything ISSR-related hinges on getting one number right: relative humidity with respect to ice, RHi. A region is ice-supersaturated when $RHi \ge 1$. The ice-side saturation curve uses the companion Murphy & Koop formula, valid above 110 K:
Because ice holds less water vapour at saturation than liquid does, $e_{\text{sat,liq}}(T) \ge e_{\text{sat,ice}}(T)$ at every temperature below 0°C — and the gap widens the colder it gets. That single fact is the entire reason ISSRs exist in clear air: a parcel can be sub-saturated with respect to liquid (so no cloud is visible) while simultaneously being super-saturated with respect to ice.
thermo.py. The two curves meet at 0°C and diverge below it — at −50°C the liquid curve sits 60% above the ice curve, which is exactly why a parcel reading sub-saturated over liquid can still be ice-supersaturated.
RHi is computed one of two ways, in strict preference order:
This is the route actually used for WindBorne soundings, since every observation should carry a dewpoint_c. It depends on no reporting convention and is immune to any clamp on the reported RH field, because it's built straight from the vapour pressure implied by the dewpoint, referenced onto the ice curve.
Converts the reported (over-liquid) RH onto the ice reference by multiplying by the liquid/ice saturation-pressure ratio — always $\ge 1$ below 0°C — as presented in Spisak et al. preprint. Used per-observation, only where the dewpoint route yields a non-finite result.
Both the live-analysis path (sounding.py) and the cache builder (ingest.py) apply exactly this preference: try the dewpoint formula first, and substitute the RH-conversion fallback only at the specific levels where it comes back non-finite — np.where(np.isfinite(rhi_dew), rhi_dew, rhi_from_rh). RHi is never read from the API; it is always derived.
Not every instrument reports RH the same way. WindBorne's sensors paper (arXiv:2602.02714 §3.1) describes the onboard sensor's raw telemetry as a liquid/ice/blend quantity — over liquid above 0°C, over ice below −23°C, and a squared blend in between (the same convention ECMWF's IFS model uses internally). The pipeline encodes this as a general-purpose RHConvention: a reported value is treated as a mixture of a liquid-referenced part and an ice-referenced part, with the liquid weight ramping from 1 (warm) to 0 (cold):
WindBorne's own onboard convention sets $T_0 = 273.16\,\text{K}$ (0°C), $T_{\text{ice}} = 250.16\,\text{K}$ (−23°C), $p = 2$ — matching ECMWF IFS formula 3.12.
relative_humidity_pct field is already plain RH over liquid at every temperature — not the onboard blend. Applying WindBorne's own liquid/ice blend on top of that field would be a double correction: below −23°C the blend treats the value as already-over-ice and passes it through unchanged, when it is in fact still over-liquid and needs the full liquid→ice conversion. The practical effect is severe — it cancels the real supersaturation and caps the computed RHi at roughly 100%, silently erasing every ice-supersaturated region the data actually contains. This is why §04 uses the convention-free dewpoint route, or (as a fallback) the plain WMO_LIQUID convention — never the WINDBORNE blend — against the API's RH field.
The convention machinery is kept general rather than hardcoded, because it also expresses the two simpler conventions the pipeline treats as reference points: WMO_LIQUID (report-over-liquid at every temperature — the classic radiosonde/GRUAN convention, and the correct one to apply to WindBorne's API field) and ALL_ICE (report-over-ice everywhere, the identity transform for an already-ice-referenced field). Making the reference phase an explicit, named object — rather than an implicit assumption baked into a formula — is what let the mismatch between "what the sensor telemetry uses" and "what the API field actually reports" be caught and named instead of silently miscomputing RHi.
An ISSR (ice-supersaturated region) is a purely thermodynamic definition — $RHi \ge 1$ — with no Schmidt-Appleman contrail-formation criterion applied. Per-sample, three conditions must all hold for an ice-supersaturated layer to be counted:
find_issr_layers)The third condition — the clear-sky screen — exists for a concrete sensor-behavior reason. WindBorne's capacitive humidity sensor has a 0–100% RH range and pins at the RH = 1.0 rail in and just after cloud. At that rail, dewpoint equals temperature by construction, which forces $RHi \approx 1.6$ — a sensor-ceiling artifact, not a measured clear-sky supersaturation. Dropping samples with $RH_{\text{liquid}} \ge 1.0$ removes exactly this artifact without discarding real ISSR: genuine clear-sky ice supersaturation stays below the homogeneous-freezing limit ($RHi \approx 1.5$ at −50°C, corresponding to $RH_{\text{liquid}} \approx 0.9$), so it always reads $RH_{\text{liquid}} < 1.0$ and survives the screen.
Per-sample flags aren't the final answer, though — a single noisy sample shouldn't count as a "layer," and a real layer shouldn't be split by one dropout reading. Two clean-up passes turn the flag mask into ISSR layers:
IssrConfig defaults| Knob | Default | What it does |
|---|---|---|
| rhi_threshold | 1.0 | RHi at/above this counts as supersaturated |
| rh_liquid_max | 1.0 | clear-sky screen — RH-liquid must be strictly below this |
| gap_merge_m | 30.0 m | dry layer gaps between two ISSR layers that narrower than this are merged into one layer |
| min_layer_thickness_m | 30.48 m (100 ft) | merged layers thinner than this are discarded |
| fl_min / fl_max | FL250 / FL450 | cruise-band restriction (7620–13716 m) |
Concretely, the merge-and-filter pass works on the boolean run structure of the mask: rising/falling edges mark layer boundaries, adjacent layers separated by a gap under gap_merge_m get their (lo, hi) altitude bounds combined into one, and any surviving layer — merged or not — thinner than min_layer_thickness_m is dropped. A layer whose bottom or top coincides with the edge of the sampled cruise-band range is also flagged edge-censored: the cruise-band cutoff ended the layer there, not a real return below threshold, so its reported thickness on that side is a lower bound rather than the layer's true physical extent.
gap_merge_m (30.0 m) and min_layer_thickness_m (30.48 m ≈ 100 ft) are "the same rule applied to both classes." They aren't:
gap_merge_m at the mask-merge step, before layers exist. The two runs become one ISSR layer; the gap is never separately evaluated against min_layer_thickness_m.min_layer_thickness_m after merging. It never becomes an ISSRLayer at all.find_dry_layers() — the separate function that reports the dry interval between two consecutive kept ISSRLayers — only rejects a candidate for poor sample density inside it (max_gap_m, default 500 m). It happens to never see a dry layer shorter than ~gap_merge_m, but only because anything shorter was already absorbed in the first bullet — that floor is a side effect, not a rule applied to dry layers directly.