Repository navigation
Fix mast profile parsing - #56
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the mast profile data parsing. Closes #22