From d45dc101784188957a6b31bbbd58498a17803bbb Mon Sep 17 00:00:00 2001 From: Jemma Stachelek Date: Tue, 16 Apr 2024 10:24:04 -0600 Subject: [PATCH] compute basin overlay --- hydropop/dev/end_to_end_new.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hydropop/dev/end_to_end_new.py b/hydropop/dev/end_to_end_new.py index 3cc88ea..ba57583 100644 --- a/hydropop/dev/end_to_end_new.py +++ b/hydropop/dev/end_to_end_new.py @@ -166,11 +166,11 @@ def _export_hpus(path_gee_csvs, paths, datasets): # Export watershed/gage information - keep out of class since this is somewhat # external...for now - # path_watersheds = r"X:\Research\CIMMID\Data\Watersheds\Toronto\initial_basins.gpkg" - # hpus = gpd.read_file(paths["hpu_gpkg"]) - # watersheds = gpd.read_file(path_watersheds) - # df = hut.overlay_watersheds(hpus, watersheds) - # df.to_csv(paths["gages"], index=False) + path_watersheds = r"data/initial_basins.gpkg" + watersheds = gpd.read_file(path_watersheds) + hpus = gpd.read_file(paths["hpu_gpkg"]) + df = hut.overlay_watersheds(hpus, watersheds) + df.to_csv(paths["gages"], index=False) def end_to_end_new(