The radiosonde sounding product
In the viewer: the stations over the map with ?stations=snd (/gfs?stations=snd), the nearest ascent as a skew-T under a pinned point, and the model’s own sounding beside it in /workbench.
The .xue container is a raster container. A radiosonde ascent — a few
hundred levels of pressure, height, temperature, dew point and wind at one
point — is not a raster, so soundings are another, smaller product
published beside the runs: plain JSON, a few megabytes an hour, aggregated
by xue sounding-build (xuebuild/sounding/) from the TEMP bulletins the
world’s weather services exchange, and taken live by the same pointer →
immutable directory contract the runs and the tropical cyclone product
use. This document is the normative description of that product, schema
v1. The design it implements is in the project’s private notes; what is
here is the contract a reader can hold the publisher to.
1. Delivery
Everything is a static file under the data root, the same root as the run
pointers (latest.json, latest-<model>.json), latest-tc.json and
showcase.json.
latest-sounding.jsonis the one mutable object. Fetch it with caching disabled. It names the newest issue directory and the index inside it:pathis relative to the pointer and alwayssounding/<YYYY>/<MM>/<DD>/sounding.<issued hour>/index.json, the date being the issued hour’s. A pointer written before that layout names the flatsounding.<issued hour>/index.json, and a reader accepts both.byteLengthandcrc32(zlib CRC32 of the file’s bytes, eight lowercase hex digits) are the index’s, so it can be requested as<path>?v=<crc32>through an immutable cache.sounding/<YYYY>/<MM>/<DD>/sounding.<YYYYMMDDHH>/is one immutable directory per issue, filed under its UTC day so the archive can be kept for years without any listing level growing past a few dozen prefixes. The hour is the UTC hour the product was aggregated at, not any sounding’s nominal time. It holds the product’s two files,index.jsonandsoundings.jsonl, and beside themitem.json, the issue’s STAC Item — a pure function of the index, read by a catalog client and by nothing in the product (docs/stac.md§“Point products”). Once the pointer names it nothing in it changes; a manual rebuild of an hour (sounding-build --issue … --force) writes the directory again, and both files are addressed by their CRC, so a cache never serves one hour’s bytes under another’s key. Directories are pruned after seven days (make prune-r2-sounding).soundings.jsonlis every station’s soundings, one JSON object per line, sorted by station id.index.jsonspans it: thesoundingsdescriptor gives the whole file’sbyteLengthandcrc32, and eachstations[]row gives theoffsetandlengthof that station’s object. So there are two ways to read the product and both are cheap:- one station, the way the viewer reads it — fetch
soundings.jsonl?v=<crc32>withRange: bytes=<offset>-<offset+length-1>. The span excludes the trailing newline, so what comes back parses as JSON on its own. - all of it, the way an analyst reads it — fetch the one file and stream it line by line. No directory traversal, no thousand small objects.
One file per issue rather than one per station is deliberate: a bucket full of small objects is slow and expensive to traverse for anyone doing statistics over the archive, and it bills per object.
- one station, the way the viewer reads it — fetch
The publisher builds every hour at a quarter past (publish-sounding.yml).
A station with no new ascent this hour is carried forward from the
previous issue’s soundings.jsonl, so its content is unchanged even
though the file around it is rewritten. A source that is late or
unreachable is recorded (see sources) and the hour publishes without it.
The pointer is withheld only when no source contributed and there was nothing to
carry forward, in which case the previous hour stays live. An hour the
pointer already names is finished: a run that resolves to it builds
nothing, and the workflow’s force input is the manual rebuild.
Deployment is one-sided: the product is new files under a new pointer, so
a shell that does not know it never asks for it. A schemaVersion bump
follows the runs’ rule (ship the shell first); an added optional field
does not bump the version.
2. Units and fixed point
The scalar fields are SI, converted at the parser. The level arrays are
fixed-point integers — a sounding is a few hundred levels and JSON floats
would double the file for no precision — with -32768 for a value the
bulletin does not report:
| array | quantity | unit |
|---|---|---|
p | pressure | Pa |
z | geopotential height | gpm |
t | temperature | K × 100 |
td | dew-point temperature | K × 100 |
wd | wind direction, the direction the wind comes from | degrees |
ws | wind speed | m/s × 10 |
sig | extendedVerticalSoundingSignificance | the BUFR flag word, verbatim |
The seven arrays are parallel and all of length n. -32768 is the
missing value in every one of them, including sig; it is a JSON number,
not a 16-bit field, so a height of 35 000 gpm is written out in full.
Scaling is half-up on the magnitude (-0.5 and 0.5 both round away from
zero), so a second implementation does not have to know one language’s
rounding rule.
p is the vertical axis: it is present on every level, strictly
descending, and the levels are ordered by it. A level the bulletin
reports without a pressure has no place on that axis and is not published;
two levels reported at one pressure (a significant temperature level and a
significant wind level at the same height, as a few centres file them) are
folded into one, the first keeping its values, taking what it is missing
from the second, and the two sig words or-ed together.
sig is BUFR flag table 0 08 042, an 18-bit field numbered left to right,
so bit 1 is 1 << 17. The bits a reader is likely to want:
| bit | value | meaning |
|---|---|---|
| 1 | 131072 | surface |
| 2 | 65536 | standard level |
| 3 | 32768 | tropopause level |
| 4 | 16384 | maximum wind level |
| 5 | 8192 | significant temperature level |
| 6 | 4096 | significant humidity level |
| 7 | 2048 | significant wind level |
Thinning. The product publishes the classical TEMP set, not every sample. A modern sonde reports every second — seven thousand levels of an ascent whose mandatory-and-significant set is forty to a hundred and fifty — which is detail no skew-T or model-profile comparison draws, at two orders of magnitude of bytes. After the levels are ordered and levels at one pressure folded, a level is published when:
- its
sighas any of bits 1–7 set (surface, standard, tropopause, maximum wind, significant temperature, significant humidity, significant wind); or - the source sends its ascents unflagged (Météo-France, §6) and it is
the level nearest one of the standard surfaces — 1000, 925, 850, 700,
500, 400, 300, 250, 200, 150, 100, 70, 50, 30, 20 and 10 hPa — within
one hectopascal of it. It is kept as measured, at its own pressure,
and its
sigstays-32768: it is not a level the station reported as standard; or - it is the lowest or the highest level of the ascent; or
- its pressure is at least 3 % below the last published level’s
pressure —
p_last_published / p >= 1.03, walking upward, the last published level being whichever was kept, flagged or not.
A sig of -32768 counts as unflagged. A properly flagged ascent passes
through untouched; an unflagged run is capped at about 150 levels between
1000 and 10 hPa. n is the published level count and reported beside it
is what the bulletin held before thinning, so a reader can always see what
was left out — and the three sample bulletins in the fixture lose one
level between them.
Times are ISO 8601, UTC, Z suffix. Numbers outside the level arrays are
JSON numbers, and a value not reported is null. The files are written
compactly with ASCII escaping, and a file’s identity is its bytes: the
CRC32 in the index is of the file exactly as served.
3. Identity
A station has one id for its whole life in the product, and it is a WIGOS
identifier: <series>-<issuer>-<issue number>-<local identifier>, written
out, which is digits and hyphens and needs no escaping in a URL. It is
what soundings.jsonl is sorted by and what the index’s rows key on.
- Two soundings are the same station when they carry the same five-digit
WMO number,
block × 1000 + station. That number is the identity key, because a station that has migrated to a native WIGOS identifier is still filed under its WMO number by the centres that have not. - The published
idis the station’s native WIGOS identifier once any bulletin has carried one (China’s stations do:0-20001-0-51463), and otherwise the legacy form of the WMO number,0-20000-0-<wmo>. Sources disagree over it, so the identifier a previous issue published is kept through an hour whose bulletins carry only the legacy form, and the soundings published under either are one station’s. wmocarries the five-digit number whenever it is known, whichever form the id took.- A subset with neither a WMO number nor a usable WIGOS identifier — a
ship, a mobile station, a WIGOS local identifier that is not
URL-safe — is dropped and counted in its source’s
dropped.
Names. TEMP bulletins name no station (no subset of any source
carries stationOrSiteName), so name comes from
xuebuild/sounding/stations.json: WMO number → name, built from NOAA
NCEI’s IGRA2 station list (igra2-station-list.txt, the file’s date in
the table) for the WMO-numbered stations reporting since 2020. It is
checked in, not fetched, so no outage can cost an issue its names. The
list’s names are the WMO station records in capitals, cut at 30
characters; the table title-cases them (acronyms such as AFB and Roman
numerals kept, particles such as de and na lowered), drops the index
annotations ((47418-0)), the station-type tags ((RS), (AERO), a
Canadian UA) and a trailing US state or Canadian or Mexican province
code, and drops the last word of a name the 30-character cut may have
broken. Nothing is translated or added. name is a function of wmo
alone, applied to carried-forward lines too, and is null for a station
the table lacks, a WIGOS-only station among them.
A sounding’s nominal time is the synoptic hour it is filed under: the
<ddhhmm> of the bulletin’s WMO file name, dated by the month the
gateway’s arrival stamp puts it nearest. A national node’s object carries
no heading, so its subsets are filed by their own clock instead: the
six-hourly hour at or before three hours after it, which puts a launch
from 21:00 to 02:59 on the 00Z ascent (and a TEMP converted from text,
whose clock is the nominal hour, on itself). Météo-France’s files are
filed the same way, by their launch time: the hour in a file’s name is
its publication batch, and an 18Z ascent from Rapa is in the next day’s
00 file. It is not the launch time. The
launch time is the subset’s own clock (timeSignificance 18) and is
published as launched when it lies between 90 minutes before the nominal
hour and an hour after it — the window that covers both the Chinese
stations releasing at 23:15 for 00Z and the Japanese ones at 00:16.
Anything outside is a clock the product does not trust, and launched is
null.
Descents. A message whose template is Table D 3 09 056, the
radiosonde descent, is not a sounding of this product: its levels run
down from the burst, and its clock and position are the burst’s. It is
left out whole and counted in its source’s descents. Météo-France’s
node publishes only descents, and the gateways carry none of mainland
France’s ascents; those come from Météo-France’s own files (§6). A
Météo-France file holds an ascent and a descent side by side, each
labelled with its direction, but the label is not relied on: an object
is an ascent when the level at its lowest pressure was measured later
after launch than the level at its highest, and a descent otherwise, and
only an object whose levels cannot say (a single level, no clock column)
falls back on the label. An object of fewer than two levels is no
sounding and is counted in dropped.
Deduplication. The same station-hour arrives more than once: the
sources carry overlapping sets, a station may be filed in more than one
bulletin, and corrections (CCA, RRA…) repeat a bulletin outright. One
sounding survives per (station, nominal time): the one with the most
temperatures, then the most levels, and on a tie the one that
arrived last, which is the correction. The sounding a previous issue
published for the hour competes on the same terms.
Parts. Many centres send an ascent as the parts of a TEMP, or as its
two halves: A the standard levels and their heights up to 100 hPa (or the
whole ascent that far), B the significant levels of the same reach, C and
D the same two above it. They come under headings that do not say which
they are, some in IUK and some in IUS bulletins, so a part is told by
its levels: none above 100 hPa is A or B, none below it C or D, and of
each pair the one that reports a height on a level other than the surface
is A or C.
The parts of one station and nominal time, whatever source they came by,
are merged, and the merged ascent competes with the others; it wins only
with more temperatures or, at as many, more levels. Of each part the
best by the rule above counts. B is left out when A reports a height off
the standard surfaces, since A is then the full ascent to 100 hPa. A part
whose launch clock is more than 30 minutes from the lowest part’s is of
another flight and is left out, unless either clock is the nominal hour
itself, which is a converter’s stand-in. The levels are laid on one pressure axis,
where two at one pressure become one by the rule of §2, A first.
reported is the merged count plus what the parts’ own thinning dropped,
and bulletin names every part’s, joined by +.
In any sounding, a level under the surface level with no temperature, dew point or wind on it is left out: A gives every standard surface down to 1000 hPa a height, those under the ground included.
The parts go out over an hour and a half, across issues. A part that arrives later is merged onto what the previous issue published, where that was a part or was itself merged. C and D with neither A nor B are no ascent and are not published.
The United States’ node names each part’s object, TEMP_AA_<wmo>_… to
TEMP_DD_<wmo>_…. Part D’s pressures are tenths of a hectopascal in the
text, and it writes them as whole hectopascals, ten times too
large. A part D holding any pressure above 100 hPa, which none can have
measured, is read with every pressure divided by ten; one that holds none
is taken as it is.
4. index.json
The shape — every field, its type and range — is
schemas/sounding-index.schema.json;
the pointer’s is schemas/pointer.schema.json.
This section says what the fields mean and the rules across them.
issuedis the aggregation hour,generatedwhen the build ran.watermarkis per source: the newest object modification time that source’s listing held when the issue was built, which is where the next hour’s fetch starts.nullmeans the source has never been listed successfully. It is published because it is the product’s own account of how current it is; a reader may ignore it.soundingsdescribes the file beside the index:pathis alwayssoundings.jsonl,byteLengthits length andcrc32the zlib CRC32 of its bytes, which is its?v=.stations[]is sorted byid, and so issoundings.jsonl.offsetandlengthare the byte span of that station’s object in the file, excluding the newline after it. The spans are strictly increasing, do not overlap, and tile the file exactly:Σ(length + 1) == byteLength.lat,lonandelevcome from the newest sounding.elevis metres above mean sea level, the first of three heights the subset may carry, in this order: the ground under the station (heightOfStationGroundAboveMeanSeaLevel), the BUFR height of station (height), the barometer’s height;nullwhen the bulletin gives none.nameis the station’s name (§3, Names),nullwhen it has none.latestis the newest nominal time and equalstimes[0];timeslists the nominal times the station’s line carries, newest first, at most four.headlinesummarises the newest sounding for a marker layer that has not fetched the soundings file:t500andtd500are the 500 hPa temperature and dew point in °C to a tenth (nullwhen that level is absent),freezingLevelandpwrepeat the derived values (§7), andlevelsis that sounding’sn.sources[]is the build’s account of its sources (§6).
A station whose newest sounding is more than 48 hours older than the issue hour is not carried forward any further: it has stopped reporting, or its identifier has changed.
5. soundings.jsonl
Each line’s shape is schemas/sounding-line.schema.json.
One line per station, sorted by station id, each line the compact JSON
object below followed by \n. It carries no schemaVersion and no
sources: the index it hangs off has both, and repeating them once per
station would cost more than the stations do.
soundings is in strictly decreasing time, newest first, and holds at
most four nominal times — two days of the twice-daily cycle. Each hour’s
build merges what arrived into what the previous issue published for the
station, under the same rule §3 gives: for one nominal time, the most
levels wins, then the latest arrival. A station with nothing new this hour
is carried forward from the previous issue’s file, its line re-encoded
unchanged; the file around it is rewritten every hour, which at this size
costs nothing worth saving. A part C or D an earlier issue published alone
is the exception: it is not carried forward.
bulletin is the WMO abbreviated heading of the bulletin the sounding was
decoded from, verbatim, and arrived the gateway’s own timestamp for it.
A national node’s object has no heading: bulletin is its object name
(WIGOS_0-20000-0-82022_20261104T233000.bufr4) and arrived its
LastModified; a Météo-France sounding’s bulletin is its file name
(07145.2026111100.json) and arrived the modification time its
directory index gives. An ascent merged from its parts (§3) has the parts'
object names in bulletin, in the order A to D with a space between, and
the latest of their times in arrived.
Together they say exactly which message a value came from.
Size. Measured over one issue of the live feed, 491 stations: the
newest ascent held a median of 504 reported levels and a maximum of 7 553,
of which the thinning rule (§2) publishes a median of 169 and a maximum of
383 — 9.7 % of the samples. The median station line is 23 KB and the
largest 46 KB; the issue is 10.6 MB behind a 160 KB index, in two objects.
A client that wants a marker layer reads the index alone; opening one
station costs one range request of its length.
6. sources[]
One entry per source the build was asked for, in build order:
ok: false always carries error. listed is how many objects the
source’s listing held, objects how many were downloaded (the ones newer
than the previous watermark), reused how many were carried over from the
previous issue’s download instead, failed how many the cache would not
serve, bytes how many bytes the objects held, bulletins how many
decoded, nil how many were plain-text NIL bulletins, descents how
many were descent profiles (§3) and left out, unreadable how
many did not decode, subsets how many station subsets they held,
dropped how many of those carried no usable station identity and
soundings how many soundings the source contributed. The list lives in the index alone: a station’s line does not
repeat it, so it always describes the issue the reader is holding, even
for a station whose soundings were carried forward from an earlier one.
A source’s watermark only advances when its bulletins were read. A
listing that failed, and a download not one bulletin of which decoded,
both leave the previous hour’s watermark in place, so the next hour sees
those objects again rather than stepping past them for good.
Source ids are of four kinds. The first two are directories of the WMO WIS2 Global Cache, a public bucket that lists without credentials.
- The two GTS→WIS2 gateways, which keep an object for 24 hours:
jp-jma-gts-to-wis2(run by the Japan Meteorological Agency) andde-dwd-gts-to-wis2(run by the Deutscher Wetterdienst). Each republishes every country’s GTS bulletins under the WMO abbreviated heading tree, and the two carry different sets, which is why both are read. Two branches of the tree are:I/U/S/, andI/U/K/, the soundings up to 100 hPa, where the lower halves are. wis2:<centre>, a national WIS2 node’s TEMP topic,data/<centre>/data/core/weather/surface-based-observations/temp/. A centre that runs its own node stops sending its soundings to the gateways, so these are read too. The nodes are discovered every hour by listing the cache’sdata/(the gateways and the discovery catalogues excepted), and a node whose topic is empty is not a source of that issue: it has no entry insources[], and itswatermarkentry, once it has one, is kept. A node with no watermark is taken back 48 hours, the staleness limit, since its objects outlive the gateways’ day. Objects named as the parts of a TEMP (§3) modified in the last four hours are taken again behind the watermark, so that a part sent before the lower ones is there to be merged. A discovery that fails is the one entrywis2, withok: false.meteofrance, Météo-France’s own radiosonde files on data.gouv.fr (datasetradiosondages),https://files.data.gouv.fr/meteofrance/data/OBS/RS/<YYYY>/<MM>/<DD>/<wmo>.<YYYYMMDDHH>.json: every ascent of its fifteen stations, mainland France, overseas and the TAAF, at full resolution with no significance flags (§2). The days the last 48 hours touch are listed each hour from their directory index, and the files are kept for good, so the watermark is trusted however old it is. Files go out in two batches a day, at about 01:40 and 13:40 UTC.nws-tgftp, TEMP as text (FM 35) from the US National Weather Service’s gateway,https://tgftp.nws.noaa.gov/data/raw/: the parts A to D of Canada’s and India’s stations underus/,uk/,ul/andue/. Canada’s WIS2 node publishes no TEMP and India’s a part of its stations. A heading has one file there, overwritten by its next bulletin, so the parts modified in the last four hours are taken again behind the watermark.
The text form holds less than the BUFR, and is published so:
- Each report is a part (§3, Parts), with the flags of its levels: the surface, the standard surfaces, the tropopauses and the levels of maximum wind in A and C, the significant temperatures and winds in B and D. Pressures are whole hectopascals (tenths in C and D), dew-point depressions whole degrees above 5 °C, directions multiples of 5°.
- Heights are the standard surfaces’ alone, in tens of metres from 500 hPa up, and the surface’s, which is the station’s elevation.
- It is filed by the report’s own day and hour, by the rule a node’s clock
is; one later than the file’s modification time is mistyped, and the
heading’s is taken.
launchedandsondeTypearenull. - A report has no position. It comes with the elevation from
xuebuild/sounding/positions.json, from the same IGRA2 list as the names, except for the stations itsbulletinslists, whose own BUFR gave it. A station that is not there is counted indropped. - A part is read up to the first level out of order (a height below the one
under it, a pressure above), and a part A with fewer than four
temperatures is no ascent and is counted in
dropped.
bulletin is the report’s heading (USCN01 CYEV 250000), and arrived
the file’s modification time, to the minute.
The data is WMO core data under the WMO Unified Data Policy: free and
unrestricted, with attribution of the original source requested. The
originating national meteorological and hydrological services are the
source of every sounding; the WIS2 Global Cache, its two gateways and the
national nodes are the distribution. Météo-France’s files are published
by Météo-France under the Licence Ouverte 2.0 (Etalab), which asks that
the source and the date of its last update be named: a sounding whose
gateway is meteofrance is Météo-France’s, and its arrived is that
date. The text bulletins are of the GTS, distributed by the US National
Weather Service. Station names (§3) and the positions of the text bulletins'
stations are from the Integrated Global Radiosonde
Archive (IGRA) version 2 station list, NOAA National Centers for
Environmental Information, a US Government work in the public domain.
7. Derived quantities
derived holds four numbers computed from the published levels — not from
the BUFR floats — in a fixed operation order, so a second implementation
reading <station>.json reproduces them exactly. Heights are rounded to
whole geopotential metres, the other two to a tenth. Any of them is null
when the sounding does not support it.
A derived height is a published z, interpolated or picked out, so it
carries z’s range and may be negative: stations below sea level report
negative geopotential heights, and a bulletin that flags a tropopause at
one is reporting a bad height rather than breaking the contract. A reader
sanity-checks derived values; the product does not silently drop them.
freezingLevel (gpm). Walking up from the surface, the first pair of
consecutive levels that both carry a temperature and a height and that
straddle 273.15 K with the lower one at or above it. The height is linear
in temperature across that pair:
z = z_lower + (273.15 − t_lower) / (t_upper − t_lower) × (z_upper − z_lower).
null when the lowest level with a temperature is already below freezing
(there is no warm layer to leave) or when the profile never crosses.
pw (mm). The depth of the water-vapour column. Only levels carrying
both a pressure and a dew point take part, in descending pressure, up to
the last one at or above 300 hPa; the integral is not extrapolated to
exactly 300 hPa, so a sounding that stops early reports what it measured.
Per level, with p in hPa and the dew point in °C:
and the column is the trapezoidal integral of q over pressure in
pascals, summed from the surface upwards, divided by standard gravity
9.80665 m/s². null when fewer than two levels qualify. (Worked example:
two levels at 1000 and 900 hPa with a 10 °C dew point give e =
12.271696 hPa, q = 0.00766857 and 0.00852504, and pw = 8.3 mm.)
lapse850_500 (K/km, positive when the temperature falls with
height). (t850 − t500) / ((z500 − z850) / 1000), where the 850 and
500 hPa levels are levels the sounding actually reports, within one
hectopascal of their nominal pressure, each carrying a temperature and a
height. The product never interpolates a standard level that was not
reported, so null here means the ascent did not report one of them — a
high station whose surface is above 850 hPa, or a bulletin that carries
only significant levels.
tropopause (gpm). The height of the first level, in descending
pressure, whose sig has bit 3 (32768) set and which carries a height.
A sounding may flag a secondary tropopause above the first; the lowest is
published. null when no level is flagged (Météo-France’s ascents
never are), or when the flagged level reports no height — which several
centres’ bulletins do.
8. Validation
The JSON Schemas of §4 and §5 are normative for shape: a file that does
not match them is not a sounding file. tests/test_schemas.py holds
the committed golden (tests/fixtures/sounding/expected/, a build from the
fetched fixture tests/fixtures/sounding/sounding.2026091402/ by
tests/prepare_sounding_golden.py) to them, and the shell’s validators
are generated from them (web/src/schema/generated/).
xuebuild/sounding/schema.py validates every file as it is written, and
tests/test_sounding.py holds the build to the golden. A reader rejects a
schemaVersion above the one it implements.
Admission is structural, in the posture the manifests take: a station
identifier the reader has never seen, a radiosonde type code it does not
know and a source id that is not one of today’s two are all admitted. What
is checked is shape — the id pattern, coordinate ranges, the level
arrays’ ranges, timestamps in UTC, CRC32s, which the schemas carry — and
what a schema cannot say: the soundings descriptor’s name, the stations
sorted and unique, every level array n long, reported at least n,
pressure strictly descending, the times newest first with latest the
first of them, and the stations’ byte spans: in order, not overlapping,
and tiling soundings.jsonl exactly. Every line is validated
as it is written, so a span the index advertises always slices out
something that parses.
Part of the Xue specification, licensed under CC BY 4.0.