From a471dd4b30994c60ee598f32a5478f7732d1bfaa Mon Sep 17 00:00:00 2001 From: Amy Defnet Date: Wed, 13 Sep 2023 17:31:51 -0400 Subject: [PATCH] remove utility function, move information to documentation instead --- src/hf_point_data/utilities.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/hf_point_data/utilities.py diff --git a/src/hf_point_data/utilities.py b/src/hf_point_data/utilities.py deleted file mode 100644 index 943515f..0000000 --- a/src/hf_point_data/utilities.py +++ /dev/null @@ -1,29 +0,0 @@ -import sqlite3 -import pandas as pd - -HYDRODATA = '/hydrodata' -DB_PATH = f'{HYDRODATA}/national_obs/point_obs.sqlite' - - -def list_available_sources(): - """ - List in Shell the data sources that are available on HydroData. - - Parameters - ---------- - None - - Returns - ------- - None - """ - # Create database connection - conn = sqlite3.connect(DB_PATH) - - query = """ - SELECT * - FROM variables - """ - df = pd.read_sql_query(query, conn) - print(df[['variable_name', 'units', 'data_source', 'variable', 'temporal_resolution', 'aggregation']]) - conn.close()