Skip to content

Commit

Permalink
Merge pull request #275 from Dewberry/feature/update-xs-naming
Browse files Browse the repository at this point in the history
Feature/update xs naming
  • Loading branch information
sclaw authored Dec 20, 2024
2 parents 6548746 + 7e316ba commit 3a189b0
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 372 deletions.
3 changes: 1 addition & 2 deletions ripple1d/ops/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,13 @@ def compute_conflation_metrics(source_model_directory: str, source_network: dict
src_gpkg_path = os.path.join(source_model_directory, f"{model_name}.gpkg")
conflation_json = os.path.join(source_model_directory, f"{model_name}.conflation.json")
conflation_parameters = json.load(open(conflation_json))
rgs = RippleGeopackageSubsetter(src_gpkg_path, conflation_json, "")

for network_id in conflation_parameters["reaches"].keys():
try:
if conflation_parameters["reaches"][network_id]["eclipsed"] == True:
continue

rgs.set_nwm_id(network_id)
rgs = RippleGeopackageSubsetter(src_gpkg_path, conflation_json, network_id)
layers = {}
for layer, gdf in rgs.subset_gdfs.items():
layers[layer] = gdf.to_crs(HYDROFABRIC_CRS)
Expand Down
Loading

0 comments on commit 3a189b0

Please sign in to comment.