Skip to content

Issue 4044 - two fixes - #4152

Open
bvmcode wants to merge 3 commits into
Unidata:mainfrom
bvmcode:issue_4044
Open

bvmcode wants to merge 3 commits into
Unidata:mainfrom
bvmcode:issue_4044

Conversation

@bvmcode

@bvmcode bvmcode commented Oct 11, 2026 •

Copy link
Copy Markdown

Description Of Changes

Closes #4044

airport-codes.csv is now read as station records keyed by airport id. Those records participate in StationLookup, including airports that do not appear in the other station tables. A missing elevation stays missing.

Station-id lookup is unchanged: station_info['FYOW'] still returns the highest-priority definition. Two new methods search the individual source tables. lookup_all returns every definition of a station id, and find(synop_id=...) finds records by WMO/SYNOP id, including a lower-priority definition such as 68004 on the master.txt record for FYOW. Integer, string, and whole-number float ids match. add_station_lat_lon(df, lookup='synop_id') uses that search. The default lookup still resolves station ids only, and placeholder SYNOP values ('', 99999, and 999999) stay unresolved.

Checklist

@bvmcode
bvmcode requested a review from a team as a code owner October 11, 2026 01:13
@bvmcode
bvmcode requested review from dopplershift and removed request for a team October 11, 2026 01:13
@CLAassistant

CLAassistant commented Oct 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@bvmcode
bvmcode force-pushed the issue_4044 branch 2 times, most recently from 82599eb to 01c99d8 Compare October 14, 2026 00:42
Airport stations now resolve to coordinates, so fewer reports share missing latitude and longitude and get dropped as duplicates. Document the lookup argument as a string, with the accepted values described in the parameter text.
…okup change.

Newly located stations change which observations survive point thinning, so the existing images no longer match.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StationLookup: static data inconsistency & API limitations

2 participants