DbArray

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

Bases: mss_dataserver.geometry.inventory.Array

The database Array.

Parameters

orm (mss_data_server.geometry.databaseFactory.GeomArray) – The sqlalchemy table mapper class for the array.

Keyword Arguments

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

Methods

__init__([orm])

Initialize the instance.

add_station(station, start_time, end_time[, …])

Add a station to the array.

from_inventory_instance(parent_inventory, …)

Create a DbArray instance from a mss_data_server.geometry.inventory.Array instance.

from_sqlalchemy_orm(parent_inventory, orm)

Create a DbArray instance from a mss_data_server.geometry.databaseFactory.GeomArray table mapper class.

get_station([start_time, end_time])

Get a station from the network.

merge(merge_array)

Merge an array with the existing one.

remove_station([start_time, end_time])

Remove a station from the array.

remove_station_by_instance(station_timebox)

Remove a station timebox instance.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.db_inventory.DbArray