wolfhece 2.1.77__py3-none-any.whl → 2.1.79__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.
- wolfhece/PyDraw.py +8 -1
- wolfhece/acceptability/acceptability.py +563 -551
- wolfhece/acceptability/acceptability_gui.py +331 -328
- wolfhece/acceptability/func.py +1597 -1637
- wolfhece/apps/hydrometry.py +28 -0
- wolfhece/apps/version.py +1 -1
- wolfhece/cli.py +5 -0
- wolfhece/hydrometry/kiwis.py +131 -16
- wolfhece/hydrometry/kiwis_gui.py +38 -3
- {wolfhece-2.1.77.dist-info → wolfhece-2.1.79.dist-info}/METADATA +1 -1
- {wolfhece-2.1.77.dist-info → wolfhece-2.1.79.dist-info}/RECORD +14 -14
- {wolfhece-2.1.77.dist-info → wolfhece-2.1.79.dist-info}/WHEEL +1 -1
- {wolfhece-2.1.77.dist-info → wolfhece-2.1.79.dist-info}/entry_points.txt +2 -0
- wolfhece/hydrometry/kiwispie.py +0 -379
- {wolfhece-2.1.77.dist-info → wolfhece-2.1.79.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
"""
|
2
|
+
Author: HECE - University of Liege, Pierre Archambeau
|
3
|
+
Date: 2024
|
4
|
+
|
5
|
+
Copyright (c) 2024 University of Liege. All rights reserved.
|
6
|
+
|
7
|
+
This script and its content are protected by copyright law. Unauthorized
|
8
|
+
copying or distribution of this file, via any medium, is strictly prohibited.
|
9
|
+
"""
|
10
|
+
|
11
|
+
import wx
|
12
|
+
from ..PyTranslate import _
|
13
|
+
|
14
|
+
from ..hydrometry.kiwis_gui import hydrometry_gui
|
15
|
+
|
16
|
+
import ctypes
|
17
|
+
myappid = 'wolf_hece_uliege' # arbitrary string
|
18
|
+
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
|
19
|
+
|
20
|
+
def main():
|
21
|
+
|
22
|
+
app = wx.App()
|
23
|
+
frame = hydrometry_gui()
|
24
|
+
app.MainLoop()
|
25
|
+
|
26
|
+
|
27
|
+
if __name__=='__main__':
|
28
|
+
main()
|
wolfhece/apps/version.py
CHANGED
wolfhece/cli.py
CHANGED
@@ -46,6 +46,11 @@ def wolf2d():
|
|
46
46
|
from .apps.wolf2D import main
|
47
47
|
main()
|
48
48
|
|
49
|
+
def hydrometry():
|
50
|
+
""" Application for 2D simuations """
|
51
|
+
from .apps.hydrometry import main
|
52
|
+
main()
|
53
|
+
|
49
54
|
def digitizer():
|
50
55
|
""" Application for digitizing curves """
|
51
56
|
from .apps.curvedigitizer import main
|
wolfhece/hydrometry/kiwis.py
CHANGED
@@ -209,22 +209,61 @@ class kiwis_site_fields(Enum):
|
|
209
209
|
site_id = 'site_id'
|
210
210
|
|
211
211
|
KIWIS_GROUP_TS = {'rain': \
|
212
|
-
{'
|
212
|
+
{'highres': {'name': 'DGH-TS-Export-Pluie5min', 'id': 1332286 }, \
|
213
|
+
'5min': {'name': 'DGH-TS-Export-Pluie5min', 'id': 1332286 }, \
|
213
214
|
'1h': {'name': 'DGH-TS-Export-PluieHoraire', 'id': 5716546 }, \
|
214
215
|
'1d': {'name': 'DGH-TS-Export-PluieJourn', 'id': 5728245 }, \
|
215
216
|
'1m': {'name': 'DGH-TS-Export-PluieMensuelle', 'id': 7254396 }}, \
|
216
217
|
'flowrate': \
|
217
|
-
{'
|
218
|
+
{'highres': {'name': 'SPW-WS-DebitHR', 'id': 7256917 }, \
|
219
|
+
'5or10min': {'name': 'SPW-WS-DebitHR', 'id': 7256917 }, \
|
218
220
|
'1h': {'name': 'SPW-WS-DebitHoraire', 'id': 7256918 }, \
|
219
221
|
'1d': {'name': 'SPW-WS-DebitJourn', 'id': 7256919 }, \
|
220
222
|
'1m': {'name': 'SPW-WS-DebitMensuel', 'id': 7256920 }}, \
|
221
223
|
'waterdepth': \
|
222
|
-
{'
|
224
|
+
{'highres': {'name': 'SPW-WS-HauteurHR', 'id': 7255523 }, \
|
225
|
+
'5or10min': {'name': 'SPW-WS-HauteurHR', 'id': 7255523 }, \
|
223
226
|
'1h': {'name': 'SPW-WS-HauteurHoraire', 'id': 7255522 }, \
|
224
227
|
'1d': {'name': 'SPW-WS-HauteurJourn', 'id': 7255151 }, \
|
225
228
|
'1m': {'name': 'SPW-WS-HauteurMensuelle', 'id': 7255524 }} \
|
226
229
|
}
|
227
230
|
|
231
|
+
KIWIS_GROUP_TS_WATERINFO = {'rain': \
|
232
|
+
{'highres': {'name': WaterInfo_GroupdID.Rain_1m.name, 'id': WaterInfo_GroupdID.Rain_1m.value[1] }, \
|
233
|
+
'1min': {'name': WaterInfo_GroupdID.Rain_1m.name, 'id': WaterInfo_GroupdID.Rain_1m.value[1] }, \
|
234
|
+
'15min': {'name': WaterInfo_GroupdID.Rain_15m.name, 'id': WaterInfo_GroupdID.Rain_15m.value[1] }, \
|
235
|
+
'1h': {'name': WaterInfo_GroupdID.Rain_hourly.name, 'id': WaterInfo_GroupdID.Rain_hourly.value[1] }, \
|
236
|
+
'1d': {'name': WaterInfo_GroupdID.Rain_daily.name, 'id': WaterInfo_GroupdID.Rain_daily.value[1] }, \
|
237
|
+
'1m': {'name': WaterInfo_GroupdID.Rain_monthly.name, 'id': WaterInfo_GroupdID.Rain_monthly.value[1] }}, \
|
238
|
+
'flowrate': \
|
239
|
+
{'highres': {'name': WaterInfo_GroupdID.Flowrate_15m.name, 'id': WaterInfo_GroupdID.Flowrate_15m.value[1] }, \
|
240
|
+
'15min': {'name': WaterInfo_GroupdID.Flowrate_15m.name, 'id': WaterInfo_GroupdID.Flowrate_15m.value[1] }, \
|
241
|
+
'1h': {'name': WaterInfo_GroupdID.Flowrate_hourly.name, 'id': WaterInfo_GroupdID.Flowrate_hourly.value[1] }, \
|
242
|
+
'1d': {'name': WaterInfo_GroupdID.Flowrate_daily.name, 'id': WaterInfo_GroupdID.Flowrate_daily.value[1] }, \
|
243
|
+
'1m': {'name': WaterInfo_GroupdID.Flowrate_monthly.name, 'id': WaterInfo_GroupdID.Flowrate_monthly.value[1] }}, \
|
244
|
+
'waterdepth': \
|
245
|
+
{'highres': {'name': WaterInfo_GroupdID.Water_Level_15m.name, 'id': WaterInfo_GroupdID.Water_Level_15m.value[1] }, \
|
246
|
+
'15min': {'name': WaterInfo_GroupdID.Water_Level_15m.name, 'id': WaterInfo_GroupdID.Water_Level_15m.value[1] }, \
|
247
|
+
'1h': {'name': WaterInfo_GroupdID.Water_Level_hourly.name, 'id': WaterInfo_GroupdID.Water_Level_hourly.value[1] }, \
|
248
|
+
'1d': {'name': WaterInfo_GroupdID.Water_Level_daily.name, 'id': WaterInfo_GroupdID.Water_Level_daily.value[1] }, \
|
249
|
+
'1m': {'name': WaterInfo_GroupdID.Water_Level_monthly.name, 'id': WaterInfo_GroupdID.Water_Level_monthly.value[1] }} \
|
250
|
+
}
|
251
|
+
|
252
|
+
KIWIS_GROUP_TS_HIC = {'rain': \
|
253
|
+
{'highres': {'name': HICWS_GroupID.Precipitation_high_res.name, 'id': HICWS_GroupID.Precipitation_high_res.value[1] }, \
|
254
|
+
'1h': {'name': HICWS_GroupID.Precipitation_hourly.name, 'id': HICWS_GroupID.Precipitation_hourly.value[1] }, \
|
255
|
+
'1m': {'name': HICWS_GroupID.Precipitation_monthly.name, 'id': HICWS_GroupID.Precipitation_monthly.value[1] }}, \
|
256
|
+
'flowrate': \
|
257
|
+
{'highres': {'name': HICWS_GroupID.FlowRate_hig_res.name, 'id': HICWS_GroupID.FlowRate_hig_res.value[1] }, \
|
258
|
+
'1h': {'name': HICWS_GroupID.FlowRate_hourly.name, 'id': HICWS_GroupID.FlowRate_hourly.value[1] }, \
|
259
|
+
'1d': {'name': HICWS_GroupID.FlowRate_daily.name, 'id': HICWS_GroupID.FlowRate_daily.value[1] }}, \
|
260
|
+
'waterdepth': \
|
261
|
+
{'highres': {'name': HICWS_GroupID.Water_Level_high_res.name, 'id': HICWS_GroupID.Water_Level_high_res.value[1] }, \
|
262
|
+
'1h': {'name': HICWS_GroupID.Water_Level_hourly.name, 'id': HICWS_GroupID.Water_Level_hourly.value[1] }, \
|
263
|
+
'1d': {'name': HICWS_GroupID.Water_Level_daily.name, 'id': HICWS_GroupID.Water_Level_daily.value[1] }} \
|
264
|
+
}
|
265
|
+
|
266
|
+
|
228
267
|
class kiwis_keywords_horq(Enum):
|
229
268
|
V5_10MIN = 'complet'
|
230
269
|
V1H = '1h.moyen'
|
@@ -248,12 +287,51 @@ class kiwis_default_q(Enum):
|
|
248
287
|
Q_1H = '10-Debit.1h.Moyen'
|
249
288
|
Q_1H_Ultra = '10-Debit ultrason.1h.Moyen'
|
250
289
|
|
290
|
+
def __str__(self):
|
291
|
+
return self.value
|
292
|
+
|
251
293
|
class kiwis_default_h(Enum):
|
252
294
|
H_FULL = '05-Hauteur.Complet'
|
253
295
|
H_1H = '10-Hauteur.1h.Moyen'
|
254
296
|
H_1J = '20-Hauteur.Jour.Moyen'
|
255
297
|
Z_1H = '10-Hauteur_absolue.1h.Moyen'
|
256
298
|
|
299
|
+
def __str__(self):
|
300
|
+
return self.value
|
301
|
+
|
302
|
+
class kiwis_default_rain(Enum):
|
303
|
+
R_FULL = '05-Precipitation.Complete'
|
304
|
+
R_PROD = '02b-Precipitation.5min.Production'
|
305
|
+
R_1H = '10-Precipitation.1h.Total'
|
306
|
+
R_1J = '20-Precipitation.Jour.Total'
|
307
|
+
R_1M = '40-Precipitation.Mois.Total'
|
308
|
+
|
309
|
+
def __str__(self):
|
310
|
+
return self.value
|
311
|
+
|
312
|
+
class kiwis_default_rain_Waterinfo(Enum):
|
313
|
+
R_FULL = 'P.1'
|
314
|
+
R_10 = 'P.10'
|
315
|
+
R_5 = 'P.5'
|
316
|
+
R_15 = 'P.15'
|
317
|
+
R_1H = 'P.60'
|
318
|
+
R_1J = 'DagTotaal'
|
319
|
+
R_1M = 'MaandTotaal'
|
320
|
+
|
321
|
+
def __str__(self):
|
322
|
+
return self.value
|
323
|
+
|
324
|
+
class kiwis_default_rain_HIC(Enum):
|
325
|
+
R_FULL = 'Base'
|
326
|
+
R_15 = '15Tot'
|
327
|
+
R_1H = '60Tot'
|
328
|
+
R_1J = 'DagTot'
|
329
|
+
R_1M = 'MaandTot'
|
330
|
+
|
331
|
+
def __str__(self):
|
332
|
+
return self.value
|
333
|
+
|
334
|
+
|
257
335
|
"""
|
258
336
|
Code qualité Validation Qualité
|
259
337
|
40 Oui Mesure ou calcul de qualité standard
|
@@ -690,7 +768,7 @@ class hydrometry():
|
|
690
768
|
else:
|
691
769
|
return self.realstations.iloc[index[0]]
|
692
770
|
|
693
|
-
def get_timeseries_group(self, rfw:Literal['rain','waterdepth','flowrate'], time:Literal['5min','5or10min','1h','1d','1m']):
|
771
|
+
def get_timeseries_group(self, rfw:Literal['rain','waterdepth','flowrate'], time:Literal['highres','5min','5or10min','15min','1h','1d','1m']):
|
694
772
|
"""Obtention des stations pour le groupe souhaité.
|
695
773
|
|
696
774
|
Temps retourné en UTC
|
@@ -701,11 +779,28 @@ class hydrometry():
|
|
701
779
|
|
702
780
|
if self.url!='':
|
703
781
|
stations=None
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
782
|
+
|
783
|
+
if self.url == URL_SPW:
|
784
|
+
locdict = KIWIS_GROUP_TS
|
785
|
+
returnFields = ''
|
786
|
+
elif self.url == URL_WATERINFO:
|
787
|
+
locdict = KIWIS_GROUP_TS_WATERINFO
|
788
|
+
returnFields = '&metadata=true&custattr_returnfields=dataprovider,dataowner&md_returnfields=custom_attributes,station_id,station_no,station_name,ts_id,ts_name,stationparameter_name,ts_unitsymbol,parametertype_name'
|
789
|
+
elif self.url == URL_HICWS:
|
790
|
+
locdict = KIWIS_GROUP_TS_HIC
|
791
|
+
returnFields = '&metadata=true&custattr_returnfields=dataprovider,dataowner&md_returnfields=custom_attributes,station_id,station_no,station_name,ts_id,ts_name,stationparameter_name,ts_unitsymbol,parametertype_name'
|
792
|
+
|
793
|
+
if rfw in locdict.keys():
|
794
|
+
if time in locdict[rfw].keys():
|
795
|
+
group_id = locdict[rfw][time]['id']
|
796
|
+
json_data = requests.get(self._get_commandstr(kiwis_command.getTimeseriesList) +
|
797
|
+
'×eriesgroup_id='+str(group_id)+
|
798
|
+
'&orderby=station_no'+
|
799
|
+
returnFields,
|
800
|
+
verify=True, headers=self._header).json()
|
708
801
|
stations = pd.DataFrame(json_data[1:], columns = json_data[0])
|
802
|
+
else:
|
803
|
+
logging.error(f'{time} not found in Enum')
|
709
804
|
|
710
805
|
return stations
|
711
806
|
|
@@ -726,7 +821,8 @@ class hydrometry():
|
|
726
821
|
stations=None
|
727
822
|
group_id = group.value[1]
|
728
823
|
returnFields = '&metadata=true&custattr_returnfields=dataprovider,dataowner&md_returnfields=custom_attributes,station_id,station_no,station_name,ts_id,ts_name,stationparameter_name,ts_unitsymbol,parametertype_name'
|
729
|
-
json_data = requests.get(self._get_commandstr(kiwis_command.getTimeseriesValueLayer) +
|
824
|
+
# json_data = requests.get(self._get_commandstr(kiwis_command.getTimeseriesValueLayer) +
|
825
|
+
json_data = requests.get(self._get_commandstr(kiwis_command.getTimeseriesList) +
|
730
826
|
'×eriesgroup_id='+str(group_id)+
|
731
827
|
'&orderby=station_no'+
|
732
828
|
returnFields,
|
@@ -814,7 +910,14 @@ class hydrometry():
|
|
814
910
|
+'&format=json'
|
815
911
|
,verify=True, headers=self._header).json()
|
816
912
|
|
817
|
-
|
913
|
+
try:
|
914
|
+
if json_data[0] == 'No matches.':
|
915
|
+
return id, None
|
916
|
+
|
917
|
+
return id, pd.DataFrame(json_data[1:], columns = json_data[0])
|
918
|
+
except Exception as e:
|
919
|
+
logging.error('Error in timeseries_list :', e)
|
920
|
+
return id, None
|
818
921
|
|
819
922
|
def save_all_lists(self, dir:str):
|
820
923
|
"""Sauveragde des listes pour toutes les stations
|
@@ -841,7 +944,7 @@ class hydrometry():
|
|
841
944
|
return stationname.replace('/','-') + '_' + stationcode + '_' + str(id) + '.csv'
|
842
945
|
|
843
946
|
def _get_filename_series(self,stationname:str='',stationcode:str='',
|
844
|
-
which:kiwis_default_q | kiwis_default_h | kiwis_keywords_horq |
|
947
|
+
which:kiwis_default_q | kiwis_default_h | kiwis_keywords_horq | kiwis_default_rain = kiwis_default_q.Q_FULL):
|
845
948
|
"""retourne un nom de fichier avec la station et le code et le type de données
|
846
949
|
|
847
950
|
Utile car dans certains noms de la BDD KIWIS il y a un caractère '/' qui ne peut être utilisé comme nom de fichier
|
@@ -895,6 +998,8 @@ class hydrometry():
|
|
895
998
|
|
896
999
|
"""
|
897
1000
|
|
1001
|
+
ts_name = str(ts_name)
|
1002
|
+
|
898
1003
|
if timezone=='Europe/Brussels' or timezone=='local':
|
899
1004
|
timezone=''
|
900
1005
|
|
@@ -921,28 +1026,38 @@ class hydrometry():
|
|
921
1026
|
if len(json_data)==1:
|
922
1027
|
return None
|
923
1028
|
|
1029
|
+
elif len(json_data)>2:
|
1030
|
+
logging.warning('More than one timeseries found for station {0} with name {1}'.format(stationname,ts_name))
|
1031
|
+
logging.warning('We are using the first one - Please check if it is the right one')
|
1032
|
+
|
924
1033
|
ts_id = str(int(pd.DataFrame(json_data[1:], columns = json_data[0])[timeseries_fields.TS_ID.value].iloc[0]))
|
925
1034
|
else:
|
926
1035
|
filename = self._get_filename_list(stationname,stationcode)
|
927
1036
|
curlist=pd.read_csv(join(dir,filename),index_col=0)
|
928
1037
|
ts_id = str(int(curlist.loc(curlist[timeseries_fields.TS_NAME.value==ts_name])[timeseries_fields.TS_ID.value]))
|
929
1038
|
|
930
|
-
if "1h" in ts_name:
|
1039
|
+
if "1h" in ts_name or "60" in ts_name:
|
931
1040
|
nb = (todate - fromdate).days*24
|
932
1041
|
cursec = 3600
|
933
1042
|
elif "5min" in ts_name:
|
934
1043
|
nb = (todate - fromdate).days*24*12
|
935
1044
|
cursec = 300
|
1045
|
+
elif "15" in ts_name:
|
1046
|
+
nb = (todate - fromdate).days*24*4
|
1047
|
+
cursec = 300
|
936
1048
|
elif "10min" in ts_name:
|
937
1049
|
nb = (todate - fromdate).days*24*6
|
938
1050
|
cursec = 600
|
939
1051
|
elif "2min" in ts_name:
|
940
1052
|
nb = (todate - fromdate).days*24*30
|
941
1053
|
cursec = 120
|
942
|
-
elif "
|
1054
|
+
elif "1min" in ts_name:
|
1055
|
+
nb = (todate - fromdate).days*24*60
|
1056
|
+
cursec = 120
|
1057
|
+
elif "jour" in ts_name or "day in ts_name":
|
943
1058
|
nb = (todate - fromdate).days*24
|
944
1059
|
cursec = 24*3600
|
945
|
-
elif "mois" in ts_name:
|
1060
|
+
elif "mois" in ts_name or "month" in ts_name:
|
946
1061
|
nb = (todate - fromdate).days/30
|
947
1062
|
cursec = 24*30*3600
|
948
1063
|
|
@@ -1078,7 +1193,7 @@ class hydrometry():
|
|
1078
1193
|
return df.squeeze()
|
1079
1194
|
|
1080
1195
|
def fromcsv(self, dir:str='spw', stationname:str='', stationcode:str='',
|
1081
|
-
which:kiwis_default_q | kiwis_default_h | kiwis_keywords_horq |
|
1196
|
+
which:kiwis_default_q | kiwis_default_h | kiwis_keywords_horq | kiwis_default_rain = kiwis_default_q.Q_FULL,
|
1082
1197
|
fromdate:datetime=None, todate:datetime=None):
|
1083
1198
|
"""
|
1084
1199
|
Lecture depuis un fichier csv créé depuis un import précédent.
|
@@ -1112,7 +1227,7 @@ class hydrometry():
|
|
1112
1227
|
return mydata[fromdate:todate]
|
1113
1228
|
|
1114
1229
|
def saveas(self, flow:pd.Series, dir:str, stationname='', stationcode='',
|
1115
|
-
which:kiwis_default_q | kiwis_default_h | kiwis_keywords_horq |
|
1230
|
+
which:kiwis_default_q | kiwis_default_h | kiwis_keywords_horq | kiwis_default_rain = kiwis_default_q.Q_FULL):
|
1116
1231
|
"""Sauvegarde d'une series pandas dans un fichier .csv
|
1117
1232
|
|
1118
1233
|
:param flow: série pandas
|
wolfhece/hydrometry/kiwis_gui.py
CHANGED
@@ -33,7 +33,7 @@ import gettext
|
|
33
33
|
|
34
34
|
_=gettext.gettext
|
35
35
|
|
36
|
-
from .kiwis import hydrometry, kiwis_keywords_horq, kiwis_keywords_rain, quality_code
|
36
|
+
from .kiwis import hydrometry, kiwis_keywords_horq, kiwis_keywords_rain, quality_code, kiwis_default_rain, kiwis_default_rain_HIC, kiwis_default_rain_Waterinfo
|
37
37
|
|
38
38
|
class hydrometry_gui(wx.Frame):
|
39
39
|
"""
|
@@ -279,12 +279,16 @@ class hydrometry_gui(wx.Frame):
|
|
279
279
|
|
280
280
|
id,self.timeseries = self.hydro.timeseries_list(stationcode=stationcode)
|
281
281
|
|
282
|
+
if self.timeseries is None:
|
283
|
+
logging.warning(_('No timeseries for this station'))
|
284
|
+
return
|
285
|
+
|
282
286
|
self.timeseries.sort_values('ts_name', inplace=True)
|
283
287
|
|
284
288
|
self.listbox3.Clear()
|
285
289
|
|
286
290
|
for curkey in kiwis_keywords_horq:
|
287
|
-
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value)]['ts_name'].to_list()
|
291
|
+
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value.lower())]['ts_name'].to_list()
|
288
292
|
if len(eltoadd)>0:
|
289
293
|
for i, curel in reversed(list(enumerate(eltoadd))):
|
290
294
|
for curexc in to_exclude:
|
@@ -294,7 +298,17 @@ class hydrometry_gui(wx.Frame):
|
|
294
298
|
self.listbox3.Append(eltoadd)
|
295
299
|
|
296
300
|
for curkey in kiwis_keywords_rain:
|
297
|
-
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value)]['ts_name'].to_list()
|
301
|
+
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value.lower())]['ts_name'].to_list()
|
302
|
+
if len(eltoadd)>0:
|
303
|
+
for i, curel in reversed(list(enumerate(eltoadd))):
|
304
|
+
for curexc in to_exclude:
|
305
|
+
if curexc in curel.lower():
|
306
|
+
eltoadd.pop(i)
|
307
|
+
break
|
308
|
+
self.listbox3.Append(eltoadd)
|
309
|
+
|
310
|
+
for curkey in kiwis_default_rain:
|
311
|
+
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value.lower())]['ts_name'].to_list()
|
298
312
|
if len(eltoadd)>0:
|
299
313
|
for i, curel in reversed(list(enumerate(eltoadd))):
|
300
314
|
for curexc in to_exclude:
|
@@ -303,6 +317,27 @@ class hydrometry_gui(wx.Frame):
|
|
303
317
|
break
|
304
318
|
self.listbox3.Append(eltoadd)
|
305
319
|
|
320
|
+
for curkey in kiwis_default_rain_Waterinfo:
|
321
|
+
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value.lower())]['ts_name'].to_list()
|
322
|
+
if len(eltoadd)>0:
|
323
|
+
for i, curel in reversed(list(enumerate(eltoadd))):
|
324
|
+
for curexc in to_exclude:
|
325
|
+
if curexc in curel.lower():
|
326
|
+
eltoadd.pop(i)
|
327
|
+
break
|
328
|
+
self.listbox3.Append(eltoadd)
|
329
|
+
|
330
|
+
for curkey in kiwis_default_rain_HIC:
|
331
|
+
eltoadd = self.timeseries[self.timeseries['ts_name'].str.lower().str.contains(curkey.value.lower())]['ts_name'].to_list()
|
332
|
+
if len(eltoadd)>0:
|
333
|
+
for i, curel in reversed(list(enumerate(eltoadd))):
|
334
|
+
for curexc in to_exclude:
|
335
|
+
if curexc in curel.lower():
|
336
|
+
eltoadd.pop(i)
|
337
|
+
break
|
338
|
+
self.listbox3.Append(eltoadd)
|
339
|
+
|
340
|
+
|
306
341
|
self.listbox3.Append('--')
|
307
342
|
|
308
343
|
self.listbox3.Append(self.timeseries['ts_name'].tolist())
|
@@ -7,7 +7,7 @@ wolfhece/ManageParams.py,sha256=EeuUI5Vvh9ixCvYf8YShMC1s1Yacc7OxOCN7q81gqiQ,517
|
|
7
7
|
wolfhece/Model1D.py,sha256=SI4oNF_J3MdjiWZoizS8kuRXLMVyymX9dYfYJNVCQVI,476989
|
8
8
|
wolfhece/PyConfig.py,sha256=FB8u0belXOXTb03Ln6RdVWvMgjzi3oGPCmw2dWa3lNg,8332
|
9
9
|
wolfhece/PyCrosssections.py,sha256=FnmM9DWY_SAF2EDH9Gu2PojXNtSTRF4-aYQuAAJXBh4,112771
|
10
|
-
wolfhece/PyDraw.py,sha256=
|
10
|
+
wolfhece/PyDraw.py,sha256=ta1-9DW_wYzE32DxTg-uHCV0PHCR3mRZkkGwB7Lg4Jo,422523
|
11
11
|
wolfhece/PyGui.py,sha256=oBIBpgBQRR_XXucKE5-RFrtqKj0DRg9VlUCRo8Mzalc,105009
|
12
12
|
wolfhece/PyGuiHydrology.py,sha256=f60E8K9eGTnRq5RDF6yvt-ahf2AYegwQ9t25zZ2Mk1A,14946
|
13
13
|
wolfhece/PyHydrographs.py,sha256=jwtSNMMACwarxrtN1UeQYth99UNrhwPx1IGgUwcooHA,3774
|
@@ -25,7 +25,7 @@ wolfhece/ReadDataDCENN.py,sha256=vm-I4YMryvRldjXTvRYEUCxZsjb_tM7U9yj6OaPyD0k,153
|
|
25
25
|
wolfhece/Results2DGPU.py,sha256=P42XCqKQVFMkUt6ZTbNeIT7CV6aRqAIcBQLmRbsj4Cs,23336
|
26
26
|
wolfhece/__init__.py,sha256=FRDE8PiJAWxX9PMXsShRMZ8YADAY4WIgKMRh52rmhiw,23
|
27
27
|
wolfhece/_add_path.py,sha256=nudniS-lsgHwXXq5o626XRDzIeYj76GoGKYt6lcu2Nc,616
|
28
|
-
wolfhece/cli.py,sha256=
|
28
|
+
wolfhece/cli.py,sha256=rTZj0vJehKA6Ej0fn_jFpeXuKBiDqqGFK3xrhHJyEz0,3030
|
29
29
|
wolfhece/color_constants.py,sha256=Snc5RX11Ydi756EkBp_83C7DiAQ_Z1aHD9jFIBsosAU,37121
|
30
30
|
wolfhece/drawing_obj.py,sha256=7vY04B6r08nurTTFmBXHyR5tVIF1YzAEw_uz4pqTDIw,4233
|
31
31
|
wolfhece/flow_SPWMI.py,sha256=XDAelwAY-3rYOR0WKW3fgYJ_r8DU4IP6Y5xULW421tk,20956
|
@@ -58,10 +58,10 @@ wolfhece/wolfresults_2D.py,sha256=1rzkcZtS6Y8bn8izX-kTePpstrPi9TiOkw9XBueG1fk,16
|
|
58
58
|
wolfhece/xyz_file.py,sha256=Se4nCPwYAYLSA5i0zsbnZUKoAMAD0mK1FJea5WSZUkk,5755
|
59
59
|
wolfhece/acceptability/Parallels.py,sha256=h4tu3SpC_hR5Hqa68aruxhtAyhs8u666YuZ40_fR5zg,3979
|
60
60
|
wolfhece/acceptability/__init__.py,sha256=hfgoPKLDpX7drN1Vpvux-_5Lfyc_7feT2C2zQr5v-Os,258
|
61
|
-
wolfhece/acceptability/acceptability.py,sha256=
|
62
|
-
wolfhece/acceptability/acceptability_gui.py,sha256=
|
61
|
+
wolfhece/acceptability/acceptability.py,sha256=9hKkzHG6_eB_IQz4aT5mfd2E0manvpH5LBScaL_3NzA,24038
|
62
|
+
wolfhece/acceptability/acceptability_gui.py,sha256=OvJIovypnvWTewESvVxBxskDNNat6kvUiD_UwKSvk4s,12106
|
63
63
|
wolfhece/acceptability/cli.py,sha256=WVyEtse0vh6PSCBNhT7x6wwdJI9D5iy5H-AkWov-vxs,7386
|
64
|
-
wolfhece/acceptability/func.py,sha256=
|
64
|
+
wolfhece/acceptability/func.py,sha256=XxBDs1Gs61ijxVzP-etYU0YFi2rhpWI3_UJdyZp2imU,57984
|
65
65
|
wolfhece/apps/ManageParams.py,sha256=9okXHGHKEayA9iKTnv8jsVYCP2up5kr6hDaKO_fMCaQ,748
|
66
66
|
wolfhece/apps/Optimisation_hydro.py,sha256=ySIaVsFNEx4PaHFLlT2QW9BiwChVcTNd2TBnW1aICsI,810
|
67
67
|
wolfhece/apps/WolfPython.png,sha256=K3dcbeZUiJCFNwOAAlGMaRGLJ56yM8WD2I_0bk0xT1g,104622
|
@@ -70,9 +70,10 @@ wolfhece/apps/WolfPython3.png,sha256=3G84zx14HnlB9YXMY4VUAO7IB3eu7JFvi4Kpmc_4zBE
|
|
70
70
|
wolfhece/apps/__init__.py,sha256=OzzKItATWV0mDkz_LC2L3w5sgT2rt8ExXXCbR_FwvlY,24
|
71
71
|
wolfhece/apps/check_install.py,sha256=Xoi_d8MzKzNAy2xqEpERdsqgRPu0hbBWukI0WkIYzD0,1701
|
72
72
|
wolfhece/apps/curvedigitizer.py,sha256=Yps4bcayzbsz0AoVc_dkSk35dEhhn_esIBy1Ziefgmk,5334
|
73
|
+
wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
|
73
74
|
wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
|
74
75
|
wolfhece/apps/splashscreen.py,sha256=SrustmIQeXnsiD-92OzjdGhBi-S7c_j-cSvuX4T6rtg,2929
|
75
|
-
wolfhece/apps/version.py,sha256=
|
76
|
+
wolfhece/apps/version.py,sha256=20SNkZLII_Z9vtEHLrNJvzuFQsXBm86gVjh6SHLAiSc,388
|
76
77
|
wolfhece/apps/wolf.py,sha256=j_CgvsL8rwixbVvVD5Z0s7m7cHZ86gmFLojKGuetMls,729
|
77
78
|
wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
|
78
79
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -126,10 +127,9 @@ wolfhece/hydrology/read.py,sha256=itMat6MMn4Y14C3SMU_9JMBtpXFjG4mLNMfXXd5U6Ns,93
|
|
126
127
|
wolfhece/hydrology/slope_manager.py,sha256=vlek0z8qcqB61eleiksyOe3QR1vpbtwfeowy6ms7_Fg,5580
|
127
128
|
wolfhece/hydrology/wolfMap_treatment.py,sha256=eAxr24zJGwmDof1aZpcxewVvv_bWDvoO8t9Wwf99Mlo,10606
|
128
129
|
wolfhece/hydrometry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
129
|
-
wolfhece/hydrometry/kiwis.py,sha256=
|
130
|
-
wolfhece/hydrometry/kiwis_gui.py,sha256=
|
130
|
+
wolfhece/hydrometry/kiwis.py,sha256=Y_rAEgnBFwGL7VY2nEAZ2_buoO4gDplMprRaB27-7RE,62665
|
131
|
+
wolfhece/hydrometry/kiwis_gui.py,sha256=xubayI3ijq87l47pcVtP-D9mOGurOSu9rKz511oa7n0,24898
|
131
132
|
wolfhece/hydrometry/kiwis_wolfgui.py,sha256=GPa5YNp2V2ZlxYQjPiCXERgPuWB_zij4ec2yHpRvoFA,4027
|
132
|
-
wolfhece/hydrometry/kiwispie.py,sha256=akOaV46WwzISVlCcPz_phjsBrI_rDACUzdELtjx-xNg,13498
|
133
133
|
wolfhece/icons/folder_open.png,sha256=ykBlU2FtGcpjAu1YO4_eGlDg2svgs_IAs-4d5O2e3AM,2329
|
134
134
|
wolfhece/icons/folder_plus.png,sha256=Z1Jcs87Z6pNcudxGDTNhC_hgolSSaXe6_fmQE_n-ero,1963
|
135
135
|
wolfhece/icons/image.png,sha256=jomOPNO4HBArBZe8Ya189Iar5nzhO8c0S9JW-6iaErk,2684
|
@@ -283,8 +283,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
|
|
283
283
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
|
284
284
|
wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
285
285
|
wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
|
286
|
-
wolfhece-2.1.
|
287
|
-
wolfhece-2.1.
|
288
|
-
wolfhece-2.1.
|
289
|
-
wolfhece-2.1.
|
290
|
-
wolfhece-2.1.
|
286
|
+
wolfhece-2.1.79.dist-info/METADATA,sha256=wFUA0yYPFc_-u_3WBOoxlxS6LQLo3zYZDUCPtZFwzlI,2570
|
287
|
+
wolfhece-2.1.79.dist-info/WHEEL,sha256=nCVcAvsfA9TDtwGwhYaRrlPhTLV9m-Ga6mdyDtuwK18,91
|
288
|
+
wolfhece-2.1.79.dist-info/entry_points.txt,sha256=JzPffdR7HHEMbYNX9QIBUeBPvG7b8Ag20QaIsF5JiuI,478
|
289
|
+
wolfhece-2.1.79.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
290
|
+
wolfhece-2.1.79.dist-info/RECORD,,
|
@@ -2,6 +2,7 @@
|
|
2
2
|
wolf_accept = wolfhece.cli:accept
|
3
3
|
wolf_check = wolfhece.cli:check
|
4
4
|
wolf_gui = wolfhece.cli:wolf
|
5
|
+
wolf_hydrometry = wolfhece.cli:hydrometry
|
5
6
|
wolf_license = wolfhece.cli:license
|
6
7
|
|
7
8
|
[gui_scripts]
|
@@ -10,5 +11,6 @@ wolf2d = wolfhece.cli:wolf2d
|
|
10
11
|
wolfcompare = wolfhece.cli:compare
|
11
12
|
wolfdigitizer = wolfhece.cli:digitizer
|
12
13
|
wolfhydro = wolfhece.cli:hydro
|
14
|
+
wolfhydrometry = wolfhece.cli:hydrometry
|
13
15
|
wolfoptimhydro = wolfhece.cli:optihydro
|
14
16
|
wolfparam = wolfhece.cli:params
|