From c1f205552e6f9bcec319dca3f4cb8ac2d621f066 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Tue, 10 May 2022 06:54:55 +0200 Subject: [PATCH] Zero SLR based on fitted distributions, not input data (diff is 2mm) --- inputs/distributions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inputs/distributions.py b/inputs/distributions.py index 9bb60f8..eeeb94d 100644 --- a/inputs/distributions.py +++ b/inputs/distributions.py @@ -40,9 +40,6 @@ dff = df.loc[838, 'total', 'medium', 'ssp585'].T dff.index.name = 'year' percentiles = dff.columns.values / 100 -# Make SLR relative to 2020 level (at the 50th percentile) -dff -= dff.loc[2020, 50] - for i, row in dff.iterrows(): values = row.values @@ -102,6 +99,9 @@ for i, row in dff.iterrows(): plt.show() +# Make SLR relative to 2020 level (at the 50th percentile) +dff -= dff.loc[2020, 'mode'] + # Save distribution parameters dff[['min', 'mode', 'max']].to_csv('triang-values.csv', float_format='%0.3f')