Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
thornoe committed Apr 16, 2024
1 parent 4b7d1f0 commit 3683375
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions gis/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@
plt.close(fig) # close figure to free up memory

# Overview using real prices and the same declining discount rate for all years
CWP_j.mean() # average yearly cost of water pollution
IV_j.mean() # average yearly investment value in better (or worse) water quality
for a, b in zip([CWP_j, IV_j], ["cost of pollution", "investment in water quality"]):
a["total"] = a.sum(axis=1) # sum of CWP or IV over all categories j (by year)
print("Average yearly", b, "(million DKK, 2018 prices)\n")
print(a.mean()) # average yearly CWP or IV over all years (by category j & total)

########################################################################################
# 5. Decompose development by holding everything else equal at 2018 level
Expand Down
6 changes: 4 additions & 2 deletions gis/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@
plt.close(fig) # close figure to free up memory

# Overview using real prices and the same declining discount rate for all years
CWP_j.mean() # average yearly cost of water pollution
IV_j.mean() # average yearly investment value in better (or worse) water quality
for a, b in zip([CWP_j, IV_j], ["cost of pollution", "investment in water quality"]):
a["total"] = a.sum(axis=1) # sum of CWP or IV over all categories j (by year)
print("Average yearly", b, "(million DKK, 2018 prices)\n")
print(a.mean()) # average yearly CWP or IV over all years (by category j & total)

########################################################################################
# 5. Decompose development by holding everything else equal at 2018 level
Expand Down

0 comments on commit 3683375

Please sign in to comment.