|
| __init__ (self, engine_or_url) |
|
| get_connection (self) |
|
| psql_invalidate (self, dbapi_conn, connection_rec, exception) |
|
| create (self) |
| Creates the tables if they don't exist.
|
|
| drop (self) |
| Drops the database tables if they exist.
|
|
| add (self, obj) |
| Adds an object to the associated table.
|
|
| merge (self, obj) |
|
| get_session (self) |
|
| get_observations_in_bbox (self, ullon, ullat, lrlon, lrlat, startdt=None, enddt=None) |
|
| get_observations_in_interval (self, startdt, enddt, stations=[]) |
|
| delete_observations_in_interval (self, startdt, enddt) |
|
| get_station (self, stationid) |
|
| get_stations_in_bbox (self, ullon, ullat, lrlon, lrlat) |
|
| delete_all_stations (self) |
|
| get_gra_coefficient (self, dt) |
|
| get_newest_gra_coefficient (self, dt, dtmax=None) |
| Return the most recent gra coefficient since dt.
|
|
| get_grapoints (self, dt, edt=None) |
|
| delete_grapoints (self, dt, edt=None) |
|
| purge_grapoints (self) |
|
| get_latest_melting_layer (self, nod, hours=None, ct=datetime.datetime.utcnow()) |
|
| remove_old_melting_layers (self, ct=None) |
|
Class for connecting with the database.