Skip to content

Fix mast profile parsing - #56

Merged
pnuu merged 2 commits into
mainfrom
fix/mast-profile-parsing
Sep 8, 2026
Merged

pnuu merged 2 commits into
mainfrom
fix/mast-profile-parsing

Conversation

@pnuu

@pnuu pnuu commented Sep 8, 2026

Copy link
Copy Markdown
Owner

This fixes the mast profile data parsing. Closes #22

pnuu and others added 2 commits September 8, 2026 20:27
A gml:pos can carry an elevation after the latitude and longitude - the mast
stations do - and the station lookup key was built by unpacking the whole
position, so such a station raised "_location_key() takes 2 positional
arguments but 3 were given" from inside the parser.  Take the first two values.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014exvkg8KnHXXTw1hPzbFcq
Fixes #22.

fmi::observations::weather::mast::multipointcoverage is not a multipoint
coverage, whatever its name says: a mast measures the same parameters at
several heights, and the service describes one parameter of one mast at one
time per member, as an omso:ProfileObservation whose positions are the
measurement heights.  The multipoint parser it was routed to tried to read
those heights as latitude, longitude and time triples, and died reshaping the
values.

Give the profiles a parser of their own, keyed by time, mast and parameter,
each holding the heights, the values and the unit.  The label and unit are
described exactly as in a multipoint coverage, so that lookup is now shared.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014exvkg8KnHXXTw1hPzbFcq
@pnuu pnuu self-assigned this Sep 8, 2026
@pnuu pnuu added the enhancement New feature or request label Sep 8, 2026
@pnuu
pnuu merged commit e922d71 into main Sep 8, 2026
10 checks passed
@pnuu
pnuu deleted the fix/mast-profile-parsing branch September 8, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mast data parsing doesn't work

1 participant