Skip to content

Commit 400fd8c

Browse files
committed
update creation of nudge_df in output
1 parent 12cc355 commit 400fd8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/troute-network/troute/nhd_io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,8 @@ def write_flowveldepth(
24192419
# Drop the first column
24202420
nudge = nudge[:, 1:]
24212421
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)
24222424
empty_ids = list(set(flowveldepth.index).difference(set(nudge_df.index)))
24232425
empty_df = pd.DataFrame(index=empty_ids, columns=nudge_df.columns).fillna(-9999.0)
24242426
nudge_df = pd.concat([nudge_df, empty_df]).loc[flowveldepth.index]

0 commit comments

Comments
 (0)