earthscopestraintools.datasources_api_interact module

earthscopestraintools.datasources_api_interact.get_all_sessions_in_network(api_url: str, namespace: str, network: str, with_children_count=False, with_edid_only=False, with_parents=True, with_slugs=False, limit=1000, timeout: int = 10)

Returns a nested dictionary of each session and its parent station/network for a given namespace:network

earthscopestraintools.datasources_api_interact.get_all_stations_in_network(api_url: str, namespace: str, network: str, with_children_count=False, with_edid_only=False, with_parents=False, with_slugs=False, limit=1000, timeout: int = 10)

Returns a dictionary of station:edid for a given namespace:network

earthscopestraintools.datasources_api_interact.get_bnum_list(api_url: str, namespace='BSM', network='NOTA', timeout: int = 10)
earthscopestraintools.datasources_api_interact.get_network_edid(api_url: str, namespace: str, network: str, with_children_count=False, with_edid_only=True, with_parents=False, with_slugs=False, timeout: int = 10)

Returns a single network edid

earthscopestraintools.datasources_api_interact.get_session_edid(api_url: str, namespace: str, station: str, session: str, with_children_count=False, with_edid_only=True, with_parents=False, with_slugs=False, timeout: int = 10)

Returns a session edid in the specified station namespace

earthscopestraintools.datasources_api_interact.get_station_edid(api_url: str, namespace: str, station: str, with_children_count=False, with_edid_only=True, with_parents=False, with_slugs=False, timeout: int = 10)

Returns a station edid in the specified station namespace

earthscopestraintools.datasources_api_interact.lookup_fdsn_network_from_bnum(api_url: str, station: str, timeout: int = 10)