rashdf 0.7.0__py3-none-any.whl → 0.7.2__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.
- rashdf/plan.py +6 -6
- {rashdf-0.7.0.dist-info → rashdf-0.7.2.dist-info}/METADATA +3 -3
- rashdf-0.7.2.dist-info/RECORD +12 -0
- {rashdf-0.7.0.dist-info → rashdf-0.7.2.dist-info}/WHEEL +1 -1
- rashdf-0.7.0.dist-info/RECORD +0 -12
- {rashdf-0.7.0.dist-info → rashdf-0.7.2.dist-info}/LICENSE +0 -0
- {rashdf-0.7.0.dist-info → rashdf-0.7.2.dist-info}/entry_points.txt +0 -0
- {rashdf-0.7.0.dist-info → rashdf-0.7.2.dist-info}/top_level.txt +0 -0
rashdf/plan.py
CHANGED
|
@@ -160,7 +160,7 @@ class RasPlanHdf(RasGeomHdf):
|
|
|
160
160
|
OBS_DATA_PATH = "Event Conditions/Observed Data"
|
|
161
161
|
RESULTS_UNSTEADY_PATH = "Results/Unsteady"
|
|
162
162
|
RESULTS_UNSTEADY_SUMMARY_PATH = f"{RESULTS_UNSTEADY_PATH}/Summary"
|
|
163
|
-
VOLUME_ACCOUNTING_PATH = f"{
|
|
163
|
+
VOLUME_ACCOUNTING_PATH = f"{RESULTS_UNSTEADY_SUMMARY_PATH}/Volume Accounting"
|
|
164
164
|
BASE_OUTPUT_PATH = f"{RESULTS_UNSTEADY_PATH}/Output/Output Blocks/Base Output"
|
|
165
165
|
SUMMARY_OUTPUT_2D_FLOW_AREAS_PATH = (
|
|
166
166
|
f"{BASE_OUTPUT_PATH}/Summary Output/2D Flow Areas"
|
|
@@ -1121,7 +1121,7 @@ class RasPlanHdf(RasGeomHdf):
|
|
|
1121
1121
|
"""
|
|
1122
1122
|
return self.reference_timeseries_output(reftype="lines")
|
|
1123
1123
|
|
|
1124
|
-
def observed_timeseries_input(self, vartype: str = "Flow") ->
|
|
1124
|
+
def observed_timeseries_input(self, vartype: str = "Flow") -> xr.DataArray:
|
|
1125
1125
|
"""Return observed timeseries input data for reference lines and points from a HEC-RAS HDF plan file.
|
|
1126
1126
|
|
|
1127
1127
|
Parameters
|
|
@@ -1132,8 +1132,8 @@ class RasPlanHdf(RasGeomHdf):
|
|
|
1132
1132
|
|
|
1133
1133
|
Returns
|
|
1134
1134
|
-------
|
|
1135
|
-
xr.
|
|
1136
|
-
An xarray
|
|
1135
|
+
xr.DataArray
|
|
1136
|
+
An xarray DataArray with observed timeseries input data for reference lines or reference points.
|
|
1137
1137
|
"""
|
|
1138
1138
|
if vartype == "Flow":
|
|
1139
1139
|
output_path = self.OBS_FLOW_OUTPUT_PATH
|
|
@@ -1511,7 +1511,7 @@ class RasPlanHdf(RasGeomHdf):
|
|
|
1511
1511
|
def _zmeta(self, ds: xr.Dataset) -> Dict:
|
|
1512
1512
|
"""Given a xarray Dataset, return kerchunk-style zarr reference metadata."""
|
|
1513
1513
|
from kerchunk.hdf import SingleHdf5ToZarr
|
|
1514
|
-
import
|
|
1514
|
+
from zarr.storage import MemoryStore
|
|
1515
1515
|
import base64
|
|
1516
1516
|
|
|
1517
1517
|
encoding = {}
|
|
@@ -1546,7 +1546,7 @@ class RasPlanHdf(RasGeomHdf):
|
|
|
1546
1546
|
chunk_meta[chunk_key] = [str(self._loc), value["offset"], value["size"]]
|
|
1547
1547
|
# "Write" the Dataset to a temporary in-memory zarr store (which
|
|
1548
1548
|
# is the same a Python dictionary)
|
|
1549
|
-
zarr_tmp =
|
|
1549
|
+
zarr_tmp = MemoryStore()
|
|
1550
1550
|
# Use compute=False here because we don't _actually_ want to write
|
|
1551
1551
|
# the data to the zarr store, we just want to generate the metadata.
|
|
1552
1552
|
ds.to_zarr(zarr_tmp, mode="w", compute=False, encoding=encoding)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: rashdf
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: Read data from HEC-RAS HDF files.
|
|
5
5
|
Project-URL: repository, https://github.com/fema-ffrd/rashdf
|
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -23,7 +23,7 @@ Requires-Dist: ruff; extra == "dev"
|
|
|
23
23
|
Requires-Dist: pytest; extra == "dev"
|
|
24
24
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
25
25
|
Requires-Dist: kerchunk; extra == "dev"
|
|
26
|
-
Requires-Dist: zarr; extra == "dev"
|
|
26
|
+
Requires-Dist: zarr==2.18.2; extra == "dev"
|
|
27
27
|
Requires-Dist: dask; extra == "dev"
|
|
28
28
|
Requires-Dist: fsspec; extra == "dev"
|
|
29
29
|
Requires-Dist: s3fs; extra == "dev"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
cli.py,sha256=yItWmCxnYLcuOpJVRpUsfv_NLS9IxLjojZB9GrxfKAU,6571
|
|
2
|
+
rashdf/__init__.py,sha256=XXFtJDgLPCimqAhfsFz_pTWYECJiRT0i-Kb1uflXmVU,156
|
|
3
|
+
rashdf/base.py,sha256=cAQJX1aeBJKb3MJ06ltpbRTUaZX5NkuxpR1J4f7FyTU,2507
|
|
4
|
+
rashdf/geom.py,sha256=2aTfj6mqZGP6rysflQ5L8FeItlYJsknO00sKHo-yaTw,26090
|
|
5
|
+
rashdf/plan.py,sha256=vGqxQssz6ObxIO48Vej-d7EtBJBZ90zCrt7gC5pHATE,59558
|
|
6
|
+
rashdf/utils.py,sha256=Cba6sULF0m0jg6CQass4bPm2oxTd_avoe1pRQxq082c,10896
|
|
7
|
+
rashdf-0.7.2.dist-info/LICENSE,sha256=L_0QaLpQVHPcglVjiaJPnOocwzP8uXevDRjUPr9DL1Y,1065
|
|
8
|
+
rashdf-0.7.2.dist-info/METADATA,sha256=KkdJpptV8_IoCQwIa9ErfEGIJIz8rLMUvBZkdXuhDAQ,5994
|
|
9
|
+
rashdf-0.7.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
10
|
+
rashdf-0.7.2.dist-info/entry_points.txt,sha256=LHHMR1lLy4wRyscMuW1RlYDXemtPgqQhNcILz0DtStY,36
|
|
11
|
+
rashdf-0.7.2.dist-info/top_level.txt,sha256=SrmLb6FFTJtM_t6O1v0M0JePshiQJMHr0yYVkHL7ztk,11
|
|
12
|
+
rashdf-0.7.2.dist-info/RECORD,,
|
rashdf-0.7.0.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
cli.py,sha256=yItWmCxnYLcuOpJVRpUsfv_NLS9IxLjojZB9GrxfKAU,6571
|
|
2
|
-
rashdf/__init__.py,sha256=XXFtJDgLPCimqAhfsFz_pTWYECJiRT0i-Kb1uflXmVU,156
|
|
3
|
-
rashdf/base.py,sha256=cAQJX1aeBJKb3MJ06ltpbRTUaZX5NkuxpR1J4f7FyTU,2507
|
|
4
|
-
rashdf/geom.py,sha256=2aTfj6mqZGP6rysflQ5L8FeItlYJsknO00sKHo-yaTw,26090
|
|
5
|
-
rashdf/plan.py,sha256=IjOdh95fCsLd7bUmHvjQ4fdoqgMjCh1L4MvKu6o2Lv0,59524
|
|
6
|
-
rashdf/utils.py,sha256=Cba6sULF0m0jg6CQass4bPm2oxTd_avoe1pRQxq082c,10896
|
|
7
|
-
rashdf-0.7.0.dist-info/LICENSE,sha256=L_0QaLpQVHPcglVjiaJPnOocwzP8uXevDRjUPr9DL1Y,1065
|
|
8
|
-
rashdf-0.7.0.dist-info/METADATA,sha256=DAmUtjj2amZAyyoQHbsNEf9pLm5DBLG6JY9xTypwjTc,5986
|
|
9
|
-
rashdf-0.7.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
10
|
-
rashdf-0.7.0.dist-info/entry_points.txt,sha256=LHHMR1lLy4wRyscMuW1RlYDXemtPgqQhNcILz0DtStY,36
|
|
11
|
-
rashdf-0.7.0.dist-info/top_level.txt,sha256=SrmLb6FFTJtM_t6O1v0M0JePshiQJMHr0yYVkHL7ztk,11
|
|
12
|
-
rashdf-0.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|