DbInventory¶
-
class
mss_dataserver.geometry.db_inventory.
DbInventory
(project, name='db_inventory')[source]¶ Bases:
mss_dataserver.geometry.inventory.Inventory
The database inventory.
- Parameters
project (
mss_dataserver.core.project.Project
) – The project used to get the database connection and database session.name (str) – The name of the inventory.
db_session (
sqlalchemy.orm.Session
) – The session used to communicate with the database.
Methods¶
|
Initialize the instance. |
|
Add a new array to the database inventory. |
|
Add a new network to the database inventory. |
|
Add a recorder to the inventory. |
|
Add a sensor to the inventory. |
|
Add a station to the inventory. |
|
Convert the inventory to a dictionary. |
|
Clear all elements in the inventory. |
|
Close the inventory database connection. |
|
Commit the database changes. |
Compute the UTM coordinates of all stations in the inventory. |
|
|
Not yet implemented. |
|
Create an inventory from a dictionary. |
|
Create a |
|
Get an array from the inventory. |
|
Get a chennel from the inventory. |
|
Get the channels to which a stream is assigned to. |
|
Get a component of a sensor from the inventory. |
|
Get a network from the inventory. |
|
Get a recorder from the inventory. |
|
Get a sensor from the inventory. |
|
Get a station from the inventory. |
|
Get a stream of a recorder from the inventory. |
Compute a the epsg code of the best fitting UTM coordinate system. |
|
Check if any element in the inventory has been changed. |
|
|
Read the inventory from a XML file. |
|
Load the inventory from the database. |
Load the arrays from the database. |
|
|
Load an inventory from the database. |
Load the networks from the database. |
|
Load the recorders from the database. |
|
Load the sensors from the database. |
|
|
Merge two inventories. |
Refresh the inventory recorders. |
|
|
Remove a network from the database inventory. |
|
Remove a network instance from the inventory. |
|
Remove a recorder from the inventory. |
|
Remove a sensor from the inventory. |
|
Remove a station from the inventory. |
Refresh the inventory networks. |