easysnowdata.stations.networks.split_by_network#
- easysnowdata.stations.networks.split_by_network(stations: Any, *, network: str | None = None, lookup: Any = None) dict[str, list[str]][source]#
Group stations by network, as
{network_id: [station_id, …]}.- Parameters:
stations – A code or station id, a sequence of them, or a station frame carrying a
network/clientcolumn (whateasysnowdata.stations.inventory()returns) — in which case that column decides and nothing is guessed.network – Pin every station to this network instead of working it out.
lookup – Callable taking the codes that could not be told apart by shape and returning
{code: network}.easysnowdata.stations.load()passes the archive inventory’s lookup; without one, an ambiguous code raises.