We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12cc355 commit 400fd8cCopy full SHA for 400fd8c
src/troute-network/troute/nhd_io.py
@@ -2419,6 +2419,8 @@ def write_flowveldepth(
2419
# Drop the first column
2420
nudge = nudge[:, 1:]
2421
nudge_df = pd.DataFrame(data=nudge, index=usgs_positions_id).iloc[:,ind]
2422
+ nudge_df['Type'] = 'wb'
2423
+ nudge_df.set_index('Type', append=True, inplace=True)
2424
empty_ids = list(set(flowveldepth.index).difference(set(nudge_df.index)))
2425
empty_df = pd.DataFrame(index=empty_ids, columns=nudge_df.columns).fillna(-9999.0)
2426
nudge_df = pd.concat([nudge_df, empty_df]).loc[flowveldepth.index]
0 commit comments