Sql2Sitechan¶
This module contains all functions for getting sitechan information form the database and writing the to a file.
Functions and Classes¶
-
allSitechans2Stations(stations, db_conn=None)¶ Function for attaching all sitechans to stations in the stations dict
Parameters: - stations (Dictionary) – dictionary of stations where the key is the id of the station
- db_conn (psycopg2.connection) –
-
sitechans2stations(stations, station_date, db_conn=None)¶ Function for attaching all current sitechans to stations in the stations dict
Parameters: - stations (Dictionary) – dictionary of stations where the key is the id of the station
- station_date (datetime) – date for getting the right sitechan files
- db_conn (psycopg2.connection) –