PyPSA / atlite

Atlite: A Lightweight Python Package for Calculating Renewable Power Potentials and Time Series
https://atlite.readthedocs.io
255 stars 87 forks source link

hydro inflow unit conversion corrected #254

Closed hailiangliu89 closed 1 year ago

hailiangliu89 commented 1 year ago

In hydro.py, line 103 nhours = (distances * (flowspeed * 3.6) + 0.5).astype(int) should be nhours = ((distances * 1000) / (flowspeed * 3600) + 0.5).astype(int) or nhours = (distances / (flowspeed * 3.6) + 0.5).astype(int)

FabianHofmann commented 1 year ago

@hailiangliu89 thanks! I was so free to add a release note.