Update scripts/build_hydro_profile.py

This commit is contained in:
Fabian Neumann 2024-05-07 10:53:07 +02:00 committed by GitHub
parent 3b77b4a370
commit ff99db5cb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,9 +140,9 @@ def approximate_missing_eia_stats(eia_stats, runoff_fn, countries):
# fix outliers; exceptional floods in 1977-1979 in ES & PT
if "ES" in runoff:
runoff.loc[1978, ["ES"]] = runoff.loc[1979, ["ES"]]
runoff.loc[1978, "ES"] = runoff.loc[1979, "ES"]
if "PT" in runoff:
runoff.loc[1978, ["PT"]] = runoff.loc[1979, ["PT"]]
runoff.loc[1978, "PT"] = runoff.loc[1979, "PT"]
runoff_eia = runoff.loc[eia_stats.index]