Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mheberger committed Sep 25, 2023
1 parent ae8575b commit a72feb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion delineate.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def plot_basins():
print("Reading catchment geodata in {}".format(catchments_shp))
catchments_gdf = gpd.read_file(catchments_shp)
catchments_gdf.set_index('COMID', inplace=True)
catchments_gdf.to_crs(crs, inplace=True)
catchments_gdf.set_crs(crs, inplace=True)
print(" Building spatial index for catchments geodata in basin {}".format(basin))
# TODO: I am not using this spatial index for anything. It is not clear to me that
# it is making a difference. I should benchmark this.
Expand Down
2 changes: 1 addition & 1 deletion py/merit_detailed.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_subdivided_merit_polygon(wid: str, basin: int, lat: float, lng: float, c
plt.title('Flow Accumulation Grid for watershed id = {}'.format(wid))
plt.xlabel('Longitude')
plt.ylabel('Latitude')
plt.savefig("plots/{}_raster_accum.pdf".format(wid))
plt.savefig("plots/{}_raster_accum.jpg".format(wid))
plt.close(fig)

# Snap the outlet to the nearest stream. This function depends entirely on the threshold
Expand Down

0 comments on commit a72feb5

Please sign in to comment.