StationLookup#

class metpy.io.StationLookup[source]#

Look up station information from multiple sources.

This class follows the Mapping protocol with station ID as the key. This makes it possible to e.g. iterate over all locations and get all of a certain criteria:

>>> import metpy.io
>>> conus_stations = [s for s in metpy.io.station_info if s.startswith('K')]
>>> conus_stations[:3]
['KEET', 'K8A0', 'KALX']

Attributes Summary

tables

Return an iterable mapping combining all the tables.

Methods Summary

__init__()

get(k[,d])

items()

keys()

values()

Attributes Documentation

tables#

Return an iterable mapping combining all the tables.

Methods Documentation

__init__()#
get(k[, d]) D[k] if k in D, else d.  d defaults to None.[source]#
items() a set-like object providing a view on D's items[source]#
keys() a set-like object providing a view on D's keys[source]#
values() an object providing a view on D's values[source]#