weatherdb 1.2.2__py3-none-any.whl → 1.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docker/docker-compose.yaml +3 -1
- weatherdb/_version.py +1 -1
- weatherdb/station/StationBases.py +1 -1
- weatherdb/station/StationP.py +3 -3
- {weatherdb-1.2.2.dist-info → weatherdb-1.2.3.dist-info}/METADATA +5 -5
- {weatherdb-1.2.2.dist-info → weatherdb-1.2.3.dist-info}/RECORD +10 -10
- {weatherdb-1.2.2.dist-info → weatherdb-1.2.3.dist-info}/WHEEL +1 -1
- {weatherdb-1.2.2.dist-info → weatherdb-1.2.3.dist-info}/LICENSE +0 -0
- {weatherdb-1.2.2.dist-info → weatherdb-1.2.3.dist-info}/entry_points.txt +0 -0
- {weatherdb-1.2.2.dist-info → weatherdb-1.2.3.dist-info}/top_level.txt +0 -0
docker/docker-compose.yaml
CHANGED
@@ -38,11 +38,13 @@ services:
|
|
38
38
|
target: /src/tests
|
39
39
|
|
40
40
|
db:
|
41
|
-
image:
|
41
|
+
image: timescale/timescaledb-ha:pg17 # about 1 minute faster for tests
|
42
|
+
# image: postgis/postgis:17-3.4
|
42
43
|
environment:
|
43
44
|
POSTGRES_DB: weatherdb
|
44
45
|
POSTGRES_USER: postgres
|
45
46
|
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
47
|
+
shm_size: '2g'
|
46
48
|
ports:
|
47
49
|
- 5454:5432
|
48
50
|
volumes:
|
weatherdb/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "1.2.
|
1
|
+
__version__ = "1.2.3"
|
@@ -595,7 +595,7 @@ class StationBase:
|
|
595
595
|
DROP TABLE IF EXISTS timeseries."{self.id}_{self._para}";
|
596
596
|
DELETE FROM meta_{self._para} WHERE station_id={self.id};
|
597
597
|
DELETE FROM station_ma_raster WHERE station_id={self.id} and parameter='{self._para}';
|
598
|
-
DELETE FROM
|
598
|
+
DELETE FROM station_ma_timeserie WHERE station_id={self.id} and parameter='{self._para}';
|
599
599
|
INSERT INTO dropped_stations(station_id, parameter, why, timestamp)
|
600
600
|
VALUES ('{self.id}', '{self._para}', '{why}', NOW())
|
601
601
|
ON CONFLICT (station_id, parameter)
|
weatherdb/station/StationP.py
CHANGED
@@ -240,8 +240,8 @@ class StationP(StationPBase):
|
|
240
240
|
@db_engine.deco_create_privilege
|
241
241
|
def _create_timeseries_table(self):
|
242
242
|
"""Create the timeseries table in the DB if it is not yet existing."""
|
243
|
-
sql_add_table = '''
|
244
|
-
CREATE TABLE IF NOT EXISTS timeseries."{
|
243
|
+
sql_add_table = f'''
|
244
|
+
CREATE TABLE IF NOT EXISTS timeseries."{self.id}_{self._para}" (
|
245
245
|
timestamp timestamp PRIMARY KEY,
|
246
246
|
raw int4,
|
247
247
|
qn smallint,
|
@@ -250,7 +250,7 @@ class StationP(StationPBase):
|
|
250
250
|
filled_by int2,
|
251
251
|
corr int4
|
252
252
|
);
|
253
|
-
'''
|
253
|
+
'''
|
254
254
|
with db_engine.connect() as con:
|
255
255
|
con.execute(sqltxt(sql_add_table))
|
256
256
|
con.commit()
|
@@ -1,9 +1,9 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: weatherdb
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.3
|
4
4
|
Summary: This is a package to work with and to create the Weather Database which handles, checks, fills and corrects DWD Weather Station data.
|
5
5
|
Author-email: Max Schmit <max.schmit@hydrology.uni-freiburg.de>
|
6
|
-
License:
|
6
|
+
License: GNU GENERAL PUBLIC LICENSE
|
7
7
|
Version 3, 29 June 2007
|
8
8
|
|
9
9
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
@@ -706,11 +706,11 @@ Requires-Dist: GeoAlchemy2
|
|
706
706
|
Requires-Dist: alembic
|
707
707
|
Requires-Dist: requests
|
708
708
|
Requires-Dist: keyring
|
709
|
+
Requires-Dist: keyrings.alt; sys_platform == "linux"
|
709
710
|
Requires-Dist: rasterstats
|
710
711
|
Requires-Dist: click
|
711
712
|
Requires-Dist: setuptools>=61.0
|
712
|
-
Requires-Dist:
|
713
|
-
Requires-Dist: keyrings.alt; sys_platform == "linux"
|
713
|
+
Requires-Dist: setuptools_scm
|
714
714
|
Provides-Extra: optionals
|
715
715
|
Requires-Dist: coloredlogs; extra == "optionals"
|
716
716
|
Requires-Dist: colorama; extra == "optionals"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
docker/Dockerfile,sha256=AmSjZsQHA3-XANZz8RiH0B5skIlF7MXCNiy8yIzZXr4,1051
|
2
|
-
docker/docker-compose.yaml,sha256=
|
2
|
+
docker/docker-compose.yaml,sha256=tnQoCLZk1VryR4i1x7TfV8B4nODGoD1Qaf6CWoj6hOs,1815
|
3
3
|
docker/docker-compose_test.yaml,sha256=LTCehPG6Oid-ri7kcPBMzXzeJBqYC-zXTs_i6XOkSyQ,931
|
4
4
|
docker/start-docker-test.sh,sha256=8ue4LfoUrZU8inEZhNjsSDqucoN73Kn1cC3--lUPqTo,222
|
5
5
|
docs/requirements.txt,sha256=gVqMWeiE0PAEz41NGrLwgzx1WUGuEIE7sfPLkFV4vU4,141
|
@@ -44,7 +44,7 @@ tests/test-data/regionalisation/DWD-grid_ma_1991_2020_DGM25_clipped.tif,sha256=8
|
|
44
44
|
tests/test-data/regionalisation/HYRAS_ma_1991_2020_DGM25_clipped.tif,sha256=HiSmi715dUpryQ1WSLSXR7GmGPHzK0rl6WOOrwjRwXw,2116377
|
45
45
|
tests/test-data/regionalisation/README.md,sha256=equFOPJVaESGKIK1ZPVEJHY4TEqkW3NpJOFQzjsBy7M,151
|
46
46
|
weatherdb/__init__.py,sha256=2BzziScTYzA65WS6nhtCRZOWSLfwHTCwvZdeyuHw79U,846
|
47
|
-
weatherdb/_version.py,sha256=
|
47
|
+
weatherdb/_version.py,sha256=U41WxbUOaQODXvEF16YxLPUtPZSDo9xzI0NA0DgmjLs,21
|
48
48
|
weatherdb/broker.py,sha256=qJaKVwo1zcTLKmP-sF_DMod6_7jVsdHEoiKEMvsPx9A,24842
|
49
49
|
weatherdb/cli.py,sha256=b5p9SRP5aqQ3w89MLErAjFj37aZMy9OsF23nCDC8NJY,11358
|
50
50
|
weatherdb/alembic/README.md,sha256=6hq24TPr8z3nqJCaqrmj6__kLikVG66kLGqfC_aFPWQ,440
|
@@ -66,9 +66,9 @@ weatherdb/db/views.py,sha256=DxY_IIonmiiRM-IhQrUMLwj12gIg6Q30rQAmR3wP3BE,6359
|
|
66
66
|
weatherdb/db/fixtures/RichterParameters.json,sha256=CKxrB5FBX_BRKqxegXNyNtn9DUKmgibUtdvHoE8E5JI,836
|
67
67
|
weatherdb/db/queries/get_quotient.py,sha256=9wVFmXE8tk8igGj-Xk5uSI0eiF_PQ9d-yRq7RJpvMAA,6787
|
68
68
|
weatherdb/station/GroupStation.py,sha256=mLDZIQ2fAxSQs_zQl1cFJgOHizVlTyUG1uoEzm6uYqo,30292
|
69
|
-
weatherdb/station/StationBases.py,sha256=
|
69
|
+
weatherdb/station/StationBases.py,sha256=0OwEl85220DI6MIffjf4KpS4UA5zCR4yE2DNzydOlKE,130329
|
70
70
|
weatherdb/station/StationET.py,sha256=hM6K8fCLC6mOLaE4cN92LHOyPGP01ifO6l2qO77I_bA,3621
|
71
|
-
weatherdb/station/StationP.py,sha256=
|
71
|
+
weatherdb/station/StationP.py,sha256=w_0l5cw8zTACIbmVFV4cdPwxuyP2Cnv97dnNrMElBDE,32691
|
72
72
|
weatherdb/station/StationPD.py,sha256=Bcg_uQTgIQPffsMGhNEwKAXhYs1Ii4VeB75afdFG-Kk,3367
|
73
73
|
weatherdb/station/StationT.py,sha256=-T1GKfUsvulm5c_-JufJ34H048fGlG21UF0_2z1dd9A,6012
|
74
74
|
weatherdb/station/__init__.py,sha256=v1sPfmhhLRMOr5DJ2c5BLIFY7GWkP5iMLA5vtZm-osg,591
|
@@ -87,9 +87,9 @@ weatherdb/utils/dwd.py,sha256=amEVVPLzXTSScBP5VAK35dBxuiy-Ua4hHyKnDGxD_4Q,12394
|
|
87
87
|
weatherdb/utils/geometry.py,sha256=Od-RDAW1MASVAsGBXpHti9osbVJDqUbumSKBSJPbQqc,1823
|
88
88
|
weatherdb/utils/get_data.py,sha256=62wV37fuzGhC2fLSCL7JyyMd3BAiRiimIhV95-mEROU,17294
|
89
89
|
weatherdb/utils/logging.py,sha256=iaWnzCdBYxFmzWgLq9a6VAeBMdwy-rnt2d9PSAQq4lA,4242
|
90
|
-
weatherdb-1.2.
|
91
|
-
weatherdb-1.2.
|
92
|
-
weatherdb-1.2.
|
93
|
-
weatherdb-1.2.
|
94
|
-
weatherdb-1.2.
|
95
|
-
weatherdb-1.2.
|
90
|
+
weatherdb-1.2.3.dist-info/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
91
|
+
weatherdb-1.2.3.dist-info/METADATA,sha256=Jza3CvJAIPtiQvlVeBM_NyRmw5XbjxUgFIZucFwaDIo,44286
|
92
|
+
weatherdb-1.2.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
93
|
+
weatherdb-1.2.3.dist-info/entry_points.txt,sha256=kJemTd9Cm_QWPZt03KUWhpn1aB0-l_5ce6Ms3EoS_NM,55
|
94
|
+
weatherdb-1.2.3.dist-info/top_level.txt,sha256=kLlRbXLn0GHvMWmciWRyvm0-FYEy56F6d0fGwfle9-g,28
|
95
|
+
weatherdb-1.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|