Skip to content

Commit

Permalink
hydro inflow unit conversion corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
hailiangliu89 committed Sep 9, 2022
1 parent a0bd4b0 commit 95399d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlite/hydro.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def shift_and_aggregate_runoff_for_plants(
basins.meta.loc[ppl.upstream, "DIST_MAIN"]
- basins.meta.at[ppl.hid, "DIST_MAIN"]
)
nhours = (distances * (flowspeed * 3.6) + 0.5).astype(int)
nhours = (distances / (flowspeed * 3.6) + 0.5).astype(int)

for b in ppl.upstream:
inflow_plant += runoff.sel(hid=b).roll(time=nhours.at[b])
Expand Down

0 comments on commit 95399d5

Please sign in to comment.