wolfhece 2.2.24__py3-none-any.whl → 2.2.26__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/PyVertex.py +14 -1
- wolfhece/PyVertexvectors.py +13 -4
- wolfhece/apps/version.py +1 -1
- wolfhece/pypolygons_scen.py +12 -7
- wolfhece/report/tools.py +1929 -0
- wolfhece/wolf_array.py +27 -6
- {wolfhece-2.2.24.dist-info → wolfhece-2.2.26.dist-info}/METADATA +1 -1
- {wolfhece-2.2.24.dist-info → wolfhece-2.2.26.dist-info}/RECORD +11 -10
- {wolfhece-2.2.24.dist-info → wolfhece-2.2.26.dist-info}/WHEEL +0 -0
- {wolfhece-2.2.24.dist-info → wolfhece-2.2.26.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.2.24.dist-info → wolfhece-2.2.26.dist-info}/top_level.txt +0 -0
wolfhece/wolf_array.py
CHANGED
@@ -5780,14 +5780,31 @@ class WolfArray(Element_To_Draw, header_wolf):
|
|
5780
5780
|
mapviewer.add_object('array', newobj = newarray, ToCheck = True, id = self.idx + '_extracted')
|
5781
5781
|
|
5782
5782
|
def crop_array(self, bbox:list[list[float],list[float]], setnull_trx_try:bool = False) -> "WolfArray":
|
5783
|
-
""" Crop the data based on the bounding box
|
5783
|
+
""" Crop the data based on the bounding box.
|
5784
5784
|
|
5785
|
-
|
5786
|
-
|
5785
|
+
Beware of the grid:
|
5786
|
+
- If the cropped region is smaller than a cell, then the cropped array
|
5787
|
+
will be empty.
|
5788
|
+
- If the cropped region doesn't align with the source array grid, it
|
5789
|
+
will be forced to do so.
|
5790
|
+
|
5791
|
+
:param bbox: bounding box [[xmin, xmax], [ymin, ymax]].
|
5792
|
+
:param setnull_trx_try: set the translation to 0 if True, origx and
|
5793
|
+
origy will be set to the lower left corner of the bbox. Default is
|
5794
|
+
`False`.
|
5787
5795
|
"""
|
5788
5796
|
|
5789
|
-
|
5790
|
-
|
5797
|
+
xmin, xmax = bbox[0]
|
5798
|
+
ymin, ymax = bbox[1]
|
5799
|
+
|
5800
|
+
# Make sure the bounding box can be used.
|
5801
|
+
if xmin > xmax:
|
5802
|
+
xmin, xmax = xmax, xmin
|
5803
|
+
if ymin > ymax:
|
5804
|
+
ymin, ymax = ymax, ymin
|
5805
|
+
|
5806
|
+
imin, jmin = self.get_ij_from_xy(xmin, ymin)
|
5807
|
+
imax, jmax = self.get_ij_from_xy(xmax, ymax)
|
5791
5808
|
|
5792
5809
|
imin = int(imin)
|
5793
5810
|
jmin = int(jmin)
|
@@ -5811,7 +5828,11 @@ class WolfArray(Element_To_Draw, header_wolf):
|
|
5811
5828
|
|
5812
5829
|
newarray = WolfArray(srcheader=newheader)
|
5813
5830
|
|
5814
|
-
|
5831
|
+
if imin < imax and jmin < jmax:
|
5832
|
+
newarray.array[:,:] = self.array[imin:imax, jmin:jmax]
|
5833
|
+
else:
|
5834
|
+
# One of the dimensions has 0 size => the array is empty
|
5835
|
+
pass
|
5815
5836
|
|
5816
5837
|
return newarray
|
5817
5838
|
|
@@ -16,8 +16,8 @@ wolfhece/PyPalette.py,sha256=k9b_95GYD0USQ8DS5zGXeZ577712U6772kmhEbJtlXw,35406
|
|
16
16
|
wolfhece/PyParams.py,sha256=BgTAwxxq831rYEq_KLcFBX_upjiSUpVtfoQnCxCNWUI,100443
|
17
17
|
wolfhece/PyPictures.py,sha256=m1kY0saW6Y9Q0bDCo47lW6XxDkBrbQG-Fd8uVn8G5ic,2514
|
18
18
|
wolfhece/PyTranslate.py,sha256=4appkmNeHHZLFmUtaA_k5_5QL-5ymxnbVN4R2OblmtE,622
|
19
|
-
wolfhece/PyVertex.py,sha256=
|
20
|
-
wolfhece/PyVertexvectors.py,sha256=
|
19
|
+
wolfhece/PyVertex.py,sha256=a56oY1NB45QnwARg96Tbnq-z-mhZKFkYOkFOO1lNtlk,51056
|
20
|
+
wolfhece/PyVertexvectors.py,sha256=V4YQDIN69yj1SZvYWxXXa3sUomyAeJq74c2xrHCkrhc,337191
|
21
21
|
wolfhece/PyWMS.py,sha256=-wU-oWS5il1z702gYd90xHx5O7PvGNr9nb693oue_cI,31412
|
22
22
|
wolfhece/RatingCurve.py,sha256=bUjIrQjvIjkD4V-z8bZmA6pe1ILtYNM0-3fT6YUY1RU,22498
|
23
23
|
wolfhece/RatingCurveData.py,sha256=5UvnIm89BwqjnEbLCcY3CA8WoFd_xHJbooNy62fX5iY,57660
|
@@ -52,7 +52,7 @@ wolfhece/pyGui1D.py,sha256=9g7OS3YiKsqy--6y0cBD7x2gaqTTYFXWkxImpgnTA20,121937
|
|
52
52
|
wolfhece/pybridges.py,sha256=bFAqjL4ColeJtwvyCPGQ8VllWoq1RbVWXxFrdfrvqm8,65954
|
53
53
|
wolfhece/pydike.py,sha256=dRb6qGkqoTXjf107KcajcIk1F_FuMPaOZLSwixT3dgA,11196
|
54
54
|
wolfhece/pylogging.py,sha256=4TI8hgBB65z-zpvU5Rfa2jkPXPhJaqXjHVPwbcdzTNc,4528
|
55
|
-
wolfhece/pypolygons_scen.py,sha256=
|
55
|
+
wolfhece/pypolygons_scen.py,sha256=dG4zyJL_t5wgDqRfe-OqSH-fnxUt-su1H-tM3K3wHnc,46339
|
56
56
|
wolfhece/pyshields.py,sha256=ymH393EQys2aZmh41ccJnWmmlF7dVa-eTY32jFgwK08,25269
|
57
57
|
wolfhece/pyviews.py,sha256=zuZjWUptRDm1MTE1PN4Xj_qSITnojgDMG0LlFIBH3SE,13739
|
58
58
|
wolfhece/pywalous.py,sha256=mWB7UxlYMIbPxNUDlONQEjcOOy9VSaRU9aYWZ5IFLu8,19164
|
@@ -60,7 +60,7 @@ wolfhece/rain_SPWMI.py,sha256=qCfcmF7LajloOaCwnTrrSMzyME03YyilmRUOqrPrv3U,13846
|
|
60
60
|
wolfhece/textpillow.py,sha256=map7HsGYML_o5NHRdFg2s_TVQed_lDnpYNDv27MM0Vw,14130
|
61
61
|
wolfhece/tools2d_dll.py,sha256=TfvvmyZUqEZIH0uHwUCJf0bdmCks_AiidDt23Unsp5w,13550
|
62
62
|
wolfhece/tools_mpl.py,sha256=gQ3Jg1iuZiecmMqa5Eli2ZLSkttu68VXL8YmMDBaEYU,564
|
63
|
-
wolfhece/wolf_array.py,sha256=
|
63
|
+
wolfhece/wolf_array.py,sha256=zPyJhWFkbwYpPndfIDiul0rX2tdOjVhv3ZU1Nf77_X8,519285
|
64
64
|
wolfhece/wolf_hist.py,sha256=fTEb60Q4TEwobdZsRU4CFXAId1eOKdWAqF8lnF1xEWc,3590
|
65
65
|
wolfhece/wolf_texture.py,sha256=8BcVSezLEogTHYmtA4yfSPzaw6UpAeYYySVaAowIKtQ,20858
|
66
66
|
wolfhece/wolf_tiles.py,sha256=v-HohqaWuMYdn75XLnA22dlloAG90iwnIqrgnB0ASQ4,10488
|
@@ -88,7 +88,7 @@ wolfhece/apps/curvedigitizer.py,sha256=lEJJwgAfulrrWQc-U6ij6sj59hWN3SZl4Yu1kQxVz
|
|
88
88
|
wolfhece/apps/hydrometry.py,sha256=lhhJsFeb4zGL4bNQTs0co85OQ_6ssL1Oy0OUJCzhfYE,656
|
89
89
|
wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
|
90
90
|
wolfhece/apps/splashscreen.py,sha256=EdGDN9NhudIiP7c3gVqj7dp4MWFB8ySizM_tpMnsgpE,3091
|
91
|
-
wolfhece/apps/version.py,sha256=
|
91
|
+
wolfhece/apps/version.py,sha256=ywl1rGt9d5UlGmLPuCEKV0NQSzDV2Zum80Gbo1pTZqs,388
|
92
92
|
wolfhece/apps/wolf.py,sha256=mRnjYsUu4KIsRuamdQWAINFMuwN4eJgMo9erG-hkZ70,729
|
93
93
|
wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
|
94
94
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -268,6 +268,7 @@ wolfhece/report/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
268
268
|
wolfhece/report/pdf.py,sha256=zrSSY1JPk59FxK9pFWQfhVKIQAoc_wjeTrXO3tSiEHo,1959
|
269
269
|
wolfhece/report/reporting.py,sha256=JUEXovx_S4jpYkJEBU0AC-1Qw2OkkWyV3VAp6iOfSHc,19494
|
270
270
|
wolfhece/report/simplesimgpu.py,sha256=kx9IMCr9afPwv9B3G5ADQfaIuHXuqTkgSjg-5bXVuqo,60738
|
271
|
+
wolfhece/report/tools.py,sha256=8veLJr-vWmO56Y73c1fowCOum9IAiWYygC7gEZEBeFk,90875
|
271
272
|
wolfhece/report/wolf_report.png,sha256=NoSV58LSwb-oxCcZScRiJno-kxDwRdm_bK-fiMsKJdA,592485
|
272
273
|
wolfhece/scenario/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
273
274
|
wolfhece/scenario/check_scenario.py,sha256=d-LWa_FxmPxTSc_H1lDHwqLB6TCqj1IUrRJhatfPMMA,5623
|
@@ -300,8 +301,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
|
|
300
301
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
|
301
302
|
wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
302
303
|
wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
|
303
|
-
wolfhece-2.2.
|
304
|
-
wolfhece-2.2.
|
305
|
-
wolfhece-2.2.
|
306
|
-
wolfhece-2.2.
|
307
|
-
wolfhece-2.2.
|
304
|
+
wolfhece-2.2.26.dist-info/METADATA,sha256=F6COfsHmlgTZoUOckJarKwQJFDwXPD7t0Q6bK66pMgg,2729
|
305
|
+
wolfhece-2.2.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
306
|
+
wolfhece-2.2.26.dist-info/entry_points.txt,sha256=Jr187pyvA3EeJiQLjZK9yo6mJX7IAn6ygZU9T8qF_gQ,658
|
307
|
+
wolfhece-2.2.26.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
308
|
+
wolfhece-2.2.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|