ras-commander 0.50.0__py3-none-any.whl → 0.51.0__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.
- ras_commander/HdfBndry.py +8 -8
- {ras_commander-0.50.0.dist-info → ras_commander-0.51.0.dist-info}/METADATA +2 -2
- {ras_commander-0.50.0.dist-info → ras_commander-0.51.0.dist-info}/RECORD +6 -6
- {ras_commander-0.50.0.dist-info → ras_commander-0.51.0.dist-info}/WHEEL +1 -1
- {ras_commander-0.50.0.dist-info → ras_commander-0.51.0.dist-info}/LICENSE +0 -0
- {ras_commander-0.50.0.dist-info → ras_commander-0.51.0.dist-info}/top_level.txt +0 -0
ras_commander/HdfBndry.py
CHANGED
@@ -79,7 +79,7 @@ class HdfBndry:
|
|
79
79
|
|
80
80
|
# Get geometries
|
81
81
|
bc_line_data = hdf_file[bc_lines_path]
|
82
|
-
geoms =
|
82
|
+
geoms = HdfBase.get_polylines_from_parts(hdf_path, bc_lines_path)
|
83
83
|
|
84
84
|
# Get attributes
|
85
85
|
attributes = pd.DataFrame(bc_line_data["Attributes"][()])
|
@@ -94,7 +94,7 @@ class HdfBndry:
|
|
94
94
|
gdf = gpd.GeoDataFrame(
|
95
95
|
attributes,
|
96
96
|
geometry=geoms,
|
97
|
-
crs=
|
97
|
+
crs=HdfBase.get_projection(hdf_file)
|
98
98
|
)
|
99
99
|
|
100
100
|
# Add ID column if not present
|
@@ -134,11 +134,11 @@ class HdfBndry:
|
|
134
134
|
names = np.vectorize(HdfUtils.convert_ras_string)(
|
135
135
|
bl_line_data["Attributes"][()]["Name"]
|
136
136
|
)
|
137
|
-
geoms =
|
137
|
+
geoms = HdfBase.get_polylines_from_parts(hdf_path, breaklines_path)
|
138
138
|
return gpd.GeoDataFrame(
|
139
139
|
{"bl_id": bl_line_ids, "Name": names, "geometry": geoms},
|
140
140
|
geometry="geometry",
|
141
|
-
crs=
|
141
|
+
crs=HdfBase.get_projection(hdf_file),
|
142
142
|
)
|
143
143
|
except Exception as e:
|
144
144
|
logger.error(f"Error reading breaklines: {str(e)}")
|
@@ -186,7 +186,7 @@ class HdfBndry:
|
|
186
186
|
return gpd.GeoDataFrame(
|
187
187
|
{"rr_id": rr_ids, "Name": names, "geometry": geoms},
|
188
188
|
geometry="geometry",
|
189
|
-
crs=
|
189
|
+
crs=HdfBase.get_projection(hdf_file),
|
190
190
|
)
|
191
191
|
except Exception as e:
|
192
192
|
logger.error(f"Error reading refinement regions: {str(e)}")
|
@@ -229,7 +229,7 @@ class HdfBndry:
|
|
229
229
|
except ValueError:
|
230
230
|
types = np.array([""] * attributes.shape[0])
|
231
231
|
|
232
|
-
geoms =
|
232
|
+
geoms = HdfBase.get_polylines_from_parts(hdf_path, reference_lines_path)
|
233
233
|
|
234
234
|
gdf = gpd.GeoDataFrame(
|
235
235
|
{
|
@@ -240,7 +240,7 @@ class HdfBndry:
|
|
240
240
|
"geometry": geoms,
|
241
241
|
},
|
242
242
|
geometry="geometry",
|
243
|
-
crs=
|
243
|
+
crs=HdfBase.get_projection(hdf_file),
|
244
244
|
)
|
245
245
|
|
246
246
|
# Filter by mesh_name if provided
|
@@ -296,7 +296,7 @@ class HdfBndry:
|
|
296
296
|
"geometry": list(map(Point, points)),
|
297
297
|
},
|
298
298
|
geometry="geometry",
|
299
|
-
crs=
|
299
|
+
crs=HdfBase.get_projection(hdf_file),
|
300
300
|
)
|
301
301
|
|
302
302
|
# Filter by mesh_name if provided
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ras-commander
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.51.0
|
4
4
|
Summary: A Python library for automating HEC-RAS operations
|
5
5
|
Home-page: https://github.com/billk-FM/ras-commander
|
6
6
|
Author: William M. Katzenmeyer
|
@@ -61,7 +61,7 @@ Create a virtual environment with conda or venv (ask ChatGPT if you need help)
|
|
61
61
|
|
62
62
|
In your virtual environment, install ras-commander using pip:
|
63
63
|
```
|
64
|
-
pip install h5py numpy pandas requests tqdm scipy xarray geopandas matplotlib ras-commander ipython psutil shapely fiona pathlib rtree rasterstats
|
64
|
+
pip install h5py numpy pandas requests tqdm scipy xarray geopandas matplotlib ras-commander ipython tqdm psutil shapely fiona pathlib rtree rasterstats
|
65
65
|
pip install --upgrade ras-commander
|
66
66
|
```
|
67
67
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
ras_commander/Decorators.py,sha256=M5r5cHz_yy9YTHNEoytO9uwWbv_S-YYUk2QHNamJJJs,5848
|
2
2
|
ras_commander/HdfBase.py,sha256=bJtSWdDUP4MYJ8QgkcixBEDFMSlslUdmVFHZxWMGMDM,11603
|
3
|
-
ras_commander/HdfBndry.py,sha256=
|
3
|
+
ras_commander/HdfBndry.py,sha256=m81NdCu_ER-AAZpEkQPQka7pYv3sm7vEZevq3SIt2pw,12545
|
4
4
|
ras_commander/HdfFluvialPluvial.py,sha256=Bscvv0KBGnl05U7hH9RmsGqtPANDdTxgLwo7kXbTmTU,14281
|
5
5
|
ras_commander/HdfInfiltration.py,sha256=QVigQJjYeQNutbazGHhbTmEuIVCb9gIb2f4yM-wyUtQ,15269
|
6
6
|
ras_commander/HdfMesh.py,sha256=R_O8tMsQvzbepa3hy1psO9t7TmYyMndnyZSh3602rFY,18683
|
@@ -27,8 +27,8 @@ ras_commander/RasToGo.py,sha256=TKujfaV1xQhFaOddF4g2ogGy6ky-CLlfelSMPD2J3Nk,1223
|
|
27
27
|
ras_commander/RasUnsteady.py,sha256=NWZbmB3-HT0W00K4-zxFN9OF8H_HlOY64nM72sHicWg,31154
|
28
28
|
ras_commander/RasUtils.py,sha256=P2-aBL61kdRINsjnBpstZVD6VVc7hI_D3RUXqr6ldmc,34863
|
29
29
|
ras_commander/__init__.py,sha256=vhnZQaejmyFVFP5fcYxAc4A562o8KFcnZNkcY6J5xwY,2068
|
30
|
-
ras_commander-0.
|
31
|
-
ras_commander-0.
|
32
|
-
ras_commander-0.
|
33
|
-
ras_commander-0.
|
34
|
-
ras_commander-0.
|
30
|
+
ras_commander-0.51.0.dist-info/LICENSE,sha256=_pbd6qHnlsz1iQ-ozDW_49r86BZT6CRwO2iBtw0iN6M,457
|
31
|
+
ras_commander-0.51.0.dist-info/METADATA,sha256=LpWxjhvwKUGXtd6poHqNFyiIcLKPTb4NjtwY3dBFvuk,18328
|
32
|
+
ras_commander-0.51.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
33
|
+
ras_commander-0.51.0.dist-info/top_level.txt,sha256=i76S7eKLFC8doKcXDl3aiOr9RwT06G8adI6YuKbQDaA,14
|
34
|
+
ras_commander-0.51.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|