-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stevenray Janke
committed
Apr 29, 2024
1 parent
fe5aeb5
commit bccd086
Showing
4 changed files
with
221 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,79 @@ | ||
from .geom import RasGeomHdf | ||
from .utils import * | ||
from .base import RasHdf | ||
from typing import Dict | ||
from geopandas import GeoDataFrame | ||
|
||
|
||
class RasPlanHdf(RasGeomHdf): | ||
class RasPlanHdf(RasHdf): | ||
|
||
def get_plan_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
def __init__(self, name: str): | ||
super().__init__(name) | ||
self.plan_info_path = "Plan Data/Plan Information" | ||
self.plan_params_path = "Plan Data/Plan Parameters" | ||
self.meteorology_precip_path = "Event Conditions/Meteorology/Precipitation" | ||
self.results_unsteady_path = "Results/Unsteady" | ||
self.results_summary_path = "Results/Unsteady/Summary" | ||
self.volume_accounting_path = "Results/Unsteady/Summary/Volume Accounting" | ||
|
||
def get_plan_info_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
"""Returns plan information attributes from a HEC-RAS HDF plan file. | ||
Returns | ||
------- | ||
dict | ||
Dictionary filled with plan information attributes. | ||
""" | ||
return self.get_attrs(self.plan_info_path) | ||
|
||
def get_plan_param_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
"""Returns plan parameter attributes from a HEC-RAS HDF plan file. | ||
Returns | ||
------- | ||
dict | ||
Dictionary filled with plan parameter attributes. | ||
""" | ||
return self.get_attrs(self.plan_params_path) | ||
|
||
def get_meteorology_precip_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
"""Returns precipitation attributes from a HEC-RAS HDF plan file. | ||
Returns | ||
------- | ||
dict | ||
Dictionary filled with precipitation attributes. | ||
""" | ||
return self.get_attrs(self.meteorology_precip_path) | ||
|
||
def get_results_unsteady_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
"""Returns unsteady attributes from a HEC-RAS HDF plan file. | ||
Returns | ||
------- | ||
dict | ||
Dictionary filled with unsteady attributes. | ||
""" | ||
return self.get_attrs(self.results_unsteady_path) | ||
|
||
def get_results_summary_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
"""Returns results summary attributes from a HEC-RAS HDF plan file. | ||
Returns | ||
------- | ||
dict | ||
Dictionary filled with results summary attributes. | ||
""" | ||
return self.get_attrs(self.results_summary_path) | ||
|
||
def get_results_volume_accounting_attrs(self) -> Dict: | ||
raise NotImplementedError | ||
"""Returns volume accounting attributes from a HEC-RAS HDF plan file. | ||
Returns | ||
------- | ||
dict | ||
Dictionary filled with volume accounting attributes. | ||
""" | ||
return self.get_attrs(self.volume_accounting_path) | ||
|
||
def enroachment_points(self) -> GeoDataFrame: | ||
raise NotImplementedError |
Oops, something went wrong.