DbStation

class mss_dataserver.geometry.db_inventory.DbStation(orm=None, **kwargs)[source]

Bases: mss_dataserver.geometry.inventory.Station

The database station.

Parameters

orm (mss_data_server.geometry.databaseFactory.GeomStation) – The sqlalchemy table mapper class for the network.

Keyword Arguments

**kwargs – The keyword arguments passed to the __init__ method of the parent class mss_dataserver.geoemetry.inventory.Station.

Properties

assigned_recorders

list of Recorder: The unique recorders assigned to the station.

assigned_recorders_string

str: The string representation of the unique recorders assigned to the station.

assigned_sensors_string

str: The string representation of the assigned sensor components.

available_channels_string

str: The string representatin of the available channels.

id

int: The database id.

location_string

str: The string representation of the location.

network

Network: The network to which the station is assigend to.

nsl

tuple of str: The Network:Station:Location code.

nsl_string

str: the Network:Station:Location code.

parent_inventory

Inventory: The inventory which contains the station.

Methods

__init__([orm])

Initialize self.

add_channel(cur_channel)

Add a channel to the station.

as_dict([style])

Get a dictionary representation of the instance.

from_dict(d)

Create a station from a dictionary.

from_inventory_instance(parent_network, instance)

Create a DbStation instance from a mss_data_server.geometry.inventory.Station instance.

from_sqlalchemy_orm(parent_network, orm)

Create a DbStation instance from a mss_data_server.geometry.databaseFactory.GeomStation table mapper class.

get_channel(**kwargs)

Get a channel from the stream.

get_lon_lat()

Get the coordinates as WGS84 longitude latitude tuples.

get_nslc()

DEPRECATED.

get_unique_channel_names()

Get a list of unique channel names.

merge(merge_station)

Merge a station into the existing one.

remove_channel_by_instance(channel)

Remove a channel instance from the station.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.db_inventory.DbStation