Last active
March 9, 2021 11:13
-
-
Save jmalles/ca70090812e6499b34a22a3a7a7a8f2a to your computer and use it in GitHub Desktop.
Estimating sea-level rise from glacier mass loss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"scrolled": true | |
}, | |
"outputs": [], | |
"source": [ | |
"import pandas as pd\n", | |
"import numpy as np" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Read the data\n", | |
"First, we read in a data file containing an estimate of Earth's contemporary glacier volume, separated in above and below sea-level:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"data = pd.read_hdf('rgi62_era5_itmix_df.h5', 'df')" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"pd.options.display.float_format = '{:,.1f}'.format" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Farinotti et al. 2019\n", | |
"In the article \"A consensus estimate for the ice thickness distribution of all glaciers on Earth\" by [Farinotti et al. (2019)](https://www.nature.com/articles/s41561-019-0300-3) the potential sea-level rise ($h_{sl}$) by melting all the ice ($V_{tot}$) instantaneously was estimated as follows:" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"$$ h_{sl} = \\frac{V_{tot} - V_{bsl}}{A_{ocean}} \\frac{\\rho_{ice}}{\\rho_{ocean}}, \\text{with} $$\n", | |
"\n", | |
"$\\rho_{ice}$ : density of ice\n", | |
"\n", | |
"$\\rho_{ocean}$ : density of ocean water\n", | |
"\n", | |
"$V_{bsl}$: grounded volume below sea-level\n", | |
"\n", | |
"$A_{ocean}$: area of Earth's oceans" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Let us calculate the total sea-level rise this would give, and the potential sea-level rise, if we neglected the fact that part of the volume is below sea-level, which has to be replaced by meltwater before sea-level will actually rise:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>F2019</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>SLR (incl. V$_{bsl}$)</th>\n", | |
" <td>323.9</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>SLR (excl. V$_{bsl}$)</th>\n", | |
" <td>382.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>% difference</th>\n", | |
" <td>15.2</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" F2019\n", | |
"SLR (incl. V$_{bsl}$) 323.9\n", | |
"SLR (excl. V$_{bsl}$) 382.0\n", | |
"% difference 15.2" | |
] | |
}, | |
"execution_count": 4, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"def compute_slr(ice_vol_m3):\n", | |
" \"\"\"After Farinotti 2019\"\"\"\n", | |
" rho = 900\n", | |
" rho_oc = 1028\n", | |
" A_oc = 362.5 * 1e9\n", | |
" return ice_vol_m3 * rho / (A_oc * rho_oc)\n", | |
"\n", | |
"\n", | |
"v_asl = data.vol_itmix_m3 - data.vol_bsl_itmix_m3\n", | |
"\n", | |
"total_slr = compute_slr(v_asl.sum())\n", | |
"total_slr_bsl = compute_slr(data.vol_bsl_itmix_m3.sum())\n", | |
"total_slr_wo_bsl = compute_slr(data.vol_itmix_m3.sum())\n", | |
"\n", | |
"odf = pd.DataFrame(index=['F2019'])\n", | |
"odf['SLR (incl. V$_{bsl}$)'] = total_slr\n", | |
"odf['SLR (excl. V$_{bsl}$)'] = total_slr_wo_bsl\n", | |
"odf['% difference'] = 100*data.vol_bsl_itmix_m3.sum()/data.vol_itmix_m3.sum()\n", | |
"odf.T" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"It can be seen from this exercise that roughly 15 % of the global ice volume is situated below sea-level and neglecting that fact would therefore lead to a considerable overestimation of potential sea-level rise of about 58 mm!" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"We can do the same exercise for each region:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>SLR (incl. V$_{bsl}$)</th>\n", | |
" <th>SLR (excl. V$_{bsl}$)</th>\n", | |
" <th>% difference</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>01</th>\n", | |
" <td>43.2</td>\n", | |
" <td>45.8</td>\n", | |
" <td>5.7</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>02</th>\n", | |
" <td>2.5</td>\n", | |
" <td>2.5</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>03</th>\n", | |
" <td>64.8</td>\n", | |
" <td>68.4</td>\n", | |
" <td>5.3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>04</th>\n", | |
" <td>20.5</td>\n", | |
" <td>20.8</td>\n", | |
" <td>1.4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>05</th>\n", | |
" <td>33.6</td>\n", | |
" <td>37.9</td>\n", | |
" <td>11.3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>06</th>\n", | |
" <td>9.1</td>\n", | |
" <td>9.1</td>\n", | |
" <td>0.2</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>07</th>\n", | |
" <td>17.2</td>\n", | |
" <td>18.0</td>\n", | |
" <td>4.4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>08</th>\n", | |
" <td>0.7</td>\n", | |
" <td>0.7</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>09</th>\n", | |
" <td>32.0</td>\n", | |
" <td>35.4</td>\n", | |
" <td>9.6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>10</th>\n", | |
" <td>0.3</td>\n", | |
" <td>0.3</td>\n", | |
" <td>0.5</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>11</th>\n", | |
" <td>0.3</td>\n", | |
" <td>0.3</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>12</th>\n", | |
" <td>0.2</td>\n", | |
" <td>0.2</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>13</th>\n", | |
" <td>7.9</td>\n", | |
" <td>7.9</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>14</th>\n", | |
" <td>6.9</td>\n", | |
" <td>6.9</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>15</th>\n", | |
" <td>2.1</td>\n", | |
" <td>2.1</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>16</th>\n", | |
" <td>0.2</td>\n", | |
" <td>0.2</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>17</th>\n", | |
" <td>12.8</td>\n", | |
" <td>12.9</td>\n", | |
" <td>0.7</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>18</th>\n", | |
" <td>0.2</td>\n", | |
" <td>0.2</td>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>19</th>\n", | |
" <td>69.3</td>\n", | |
" <td>112.2</td>\n", | |
" <td>38.2</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" SLR (incl. V$_{bsl}$) SLR (excl. V$_{bsl}$) % difference\n", | |
"01 43.2 45.8 5.7\n", | |
"02 2.5 2.5 0.0\n", | |
"03 64.8 68.4 5.3\n", | |
"04 20.5 20.8 1.4\n", | |
"05 33.6 37.9 11.3\n", | |
"06 9.1 9.1 0.2\n", | |
"07 17.2 18.0 4.4\n", | |
"08 0.7 0.7 0.0\n", | |
"09 32.0 35.4 9.6\n", | |
"10 0.3 0.3 0.5\n", | |
"11 0.3 0.3 0.0\n", | |
"12 0.2 0.2 0.0\n", | |
"13 7.9 7.9 0.0\n", | |
"14 6.9 6.9 0.0\n", | |
"15 2.1 2.1 0.0\n", | |
"16 0.2 0.2 0.0\n", | |
"17 12.8 12.9 0.7\n", | |
"18 0.2 0.2 0.0\n", | |
"19 69.3 112.2 38.2" | |
] | |
}, | |
"execution_count": 5, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"def compute_slr_region(region):\n", | |
" \"\"\"slr2 regional\"\"\"\n", | |
" vol_region = np.nansum(data.where(data[\"O1Region\"]==region).iloc[:,-1])\n", | |
" vol_region_bsl = np.nansum(data.where(data[\"O1Region\"]==region).iloc[:,-2])\n", | |
" slr = compute_slr(vol_region- vol_region_bsl)\n", | |
" slr_bsl = compute_slr(vol_region_bsl)\n", | |
" slr_wo_bsl = compute_slr(vol_region)\n", | |
" return slr, slr_bsl, slr_wo_bsl\n", | |
"\n", | |
"odf_reg = pd.DataFrame()\n", | |
"for region in data.O1Region.unique():\n", | |
" slr_region = compute_slr_region(region)\n", | |
" \n", | |
" odf_reg.loc[region, 'SLR (incl. V$_{bsl}$)'] = slr_region[0]\n", | |
" odf_reg.loc[region, 'SLR (excl. V$_{bsl}$)'] = slr_region[2]\n", | |
" odf_reg.loc[region, '% difference'] = 100*slr_region[1]/slr_region[2]\n", | |
" \n", | |
"odf_reg" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Potential issues with the SLR equation in F2019 " | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Now we have an estimate of the glacier ice volume (in mm SLE) above and below sea-level. But concerning the estimation of potential sea-level rise melting that ice would cause, the equation above has two potential flaws:\n", | |
"\n", | |
"1. It removes the grounded volume below sea-level ($V_{bsl}$) in terms of the resulting ocean(!) water volume, which is $V_{bsl} \\frac{\\rho_{ice}}{\\rho_{ocean}}$ , while in reality it should be removed as $V_{bsl} \\frac{\\rho_{freshwater}}{\\rho_{ice}}$, because that is the volume of melted ice needed to replace the ocean water that was displaced by the ice below sea-level. The rest ($V_{tot} - V_{bsl} \\frac{\\rho_{freshwater}}{\\rho_{ice}}$) will add volume as freshwater and thus has to be multiplied with $\\frac{\\rho_{ice}}{\\rho_{freshwater}}$, resulting in the equation below. This is also equivalent to substracting $V_{bsl}$ from the total meltwater volume ($V_{tot} \\frac{\\rho_{ice}}{\\rho_{freshwater}}$), since $V_{bsl}$ needs to be replaced by meltwater before the melt volume can actually increase the sea-level.\n", | |
"\n", | |
"\n", | |
"2. It divides by the density of ocean water, although melted ice will contain (nearly) no salt and therefore have a lower density, i.e. higher volume, than ocean water." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## A different approach\n", | |
"With the reasoning above, we get following equation, which calculates the total sea-level height increase when all the ice volume is melted instantaneously, neglecting calving and submarine melt as well as the halosteric and thermosteric effects of melt occuring in the oceans:" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"$$ h_{sl} = \\frac{V_{tot} \\cdot f_1 - V_{bsl}}{A_{ocean}}$$<br>\n", | |
"\n", | |
"where $$f_1 = \\frac{\\rho_{ice}}{\\rho_{freshwater}} $$" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Now we calculate the regional potential sea-level rise, and the difference to the Farinotti et al. (2019) equation as well as the percentage difference:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>SLR (F2019)</th>\n", | |
" <th>SLR (New)</th>\n", | |
" <th>Diff</th>\n", | |
" <th>Diff (%)</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>01</th>\n", | |
" <td>43.2</td>\n", | |
" <td>44.1</td>\n", | |
" <td>0.9</td>\n", | |
" <td>2.1</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>02</th>\n", | |
" <td>2.5</td>\n", | |
" <td>2.6</td>\n", | |
" <td>0.1</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>03</th>\n", | |
" <td>64.8</td>\n", | |
" <td>66.2</td>\n", | |
" <td>1.4</td>\n", | |
" <td>2.2</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>04</th>\n", | |
" <td>20.5</td>\n", | |
" <td>21.1</td>\n", | |
" <td>0.5</td>\n", | |
" <td>2.6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>05</th>\n", | |
" <td>33.6</td>\n", | |
" <td>34.1</td>\n", | |
" <td>0.4</td>\n", | |
" <td>1.3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>06</th>\n", | |
" <td>9.1</td>\n", | |
" <td>9.3</td>\n", | |
" <td>0.3</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>07</th>\n", | |
" <td>17.2</td>\n", | |
" <td>17.6</td>\n", | |
" <td>0.4</td>\n", | |
" <td>2.3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>08</th>\n", | |
" <td>0.7</td>\n", | |
" <td>0.7</td>\n", | |
" <td>0.0</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>09</th>\n", | |
" <td>32.0</td>\n", | |
" <td>32.5</td>\n", | |
" <td>0.5</td>\n", | |
" <td>1.6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>10</th>\n", | |
" <td>0.3</td>\n", | |
" <td>0.3</td>\n", | |
" <td>0.0</td>\n", | |
" <td>2.7</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>11</th>\n", | |
" <td>0.3</td>\n", | |
" <td>0.3</td>\n", | |
" <td>0.0</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>12</th>\n", | |
" <td>0.2</td>\n", | |
" <td>0.2</td>\n", | |
" <td>0.0</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>13</th>\n", | |
" <td>7.9</td>\n", | |
" <td>8.1</td>\n", | |
" <td>0.2</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>14</th>\n", | |
" <td>6.9</td>\n", | |
" <td>7.1</td>\n", | |
" <td>0.2</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>15</th>\n", | |
" <td>2.1</td>\n", | |
" <td>2.2</td>\n", | |
" <td>0.1</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>16</th>\n", | |
" <td>0.2</td>\n", | |
" <td>0.2</td>\n", | |
" <td>0.0</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>17</th>\n", | |
" <td>12.8</td>\n", | |
" <td>13.2</td>\n", | |
" <td>0.3</td>\n", | |
" <td>2.7</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>18</th>\n", | |
" <td>0.2</td>\n", | |
" <td>0.2</td>\n", | |
" <td>0.0</td>\n", | |
" <td>2.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>19</th>\n", | |
" <td>69.3</td>\n", | |
" <td>66.4</td>\n", | |
" <td>-3.0</td>\n", | |
" <td>-4.3</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Global</th>\n", | |
" <td>323.9</td>\n", | |
" <td>326.4</td>\n", | |
" <td>2.4</td>\n", | |
" <td>0.8</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" SLR (F2019) SLR (New) Diff Diff (%)\n", | |
"01 43.2 44.1 0.9 2.1\n", | |
"02 2.5 2.6 0.1 2.8\n", | |
"03 64.8 66.2 1.4 2.2\n", | |
"04 20.5 21.1 0.5 2.6\n", | |
"05 33.6 34.1 0.4 1.3\n", | |
"06 9.1 9.3 0.3 2.8\n", | |
"07 17.2 17.6 0.4 2.3\n", | |
"08 0.7 0.7 0.0 2.8\n", | |
"09 32.0 32.5 0.5 1.6\n", | |
"10 0.3 0.3 0.0 2.7\n", | |
"11 0.3 0.3 0.0 2.8\n", | |
"12 0.2 0.2 0.0 2.8\n", | |
"13 7.9 8.1 0.2 2.8\n", | |
"14 6.9 7.1 0.2 2.8\n", | |
"15 2.1 2.2 0.1 2.8\n", | |
"16 0.2 0.2 0.0 2.8\n", | |
"17 12.8 13.2 0.3 2.7\n", | |
"18 0.2 0.2 0.0 2.8\n", | |
"19 69.3 66.4 -3.0 -4.3\n", | |
"Global 323.9 326.4 2.4 0.8" | |
] | |
}, | |
"execution_count": 6, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"def compute_slr2(v_tot, v_bsl):\n", | |
" \"\"\"slr2\"\"\"\n", | |
" rho = 900\n", | |
" rho_w = 1000\n", | |
" A_oc = 362.5 * 1e9\n", | |
" return (v_tot * (rho / rho_w) - v_bsl) / A_oc\n", | |
"\n", | |
"total_slr2 = compute_slr2(data.vol_itmix_m3.sum(), data.vol_bsl_itmix_m3.sum())\n", | |
"\n", | |
"def compute_slr_region2(region):\n", | |
" \"\"\"slr2 regional\"\"\"\n", | |
" vol_region = np.nansum(data.where(data[\"O1Region\"]==region).iloc[:,-1])\n", | |
" vol_region_bsl = np.nansum(data.where(data[\"O1Region\"]==region).iloc[:,-2])\n", | |
" slr = compute_slr2(vol_region, vol_region_bsl)\n", | |
" slr_bsl = compute_slr2(vol_region_bsl, vol_region_bsl)\n", | |
" slr_wo_bsl = compute_slr2(vol_region, 0)\n", | |
" return slr, slr_bsl, slr_wo_bsl\n", | |
"\n", | |
"odf_reg_comp = odf_reg[[odf_reg.columns[0]]].copy()\n", | |
"odf_reg_comp.columns = ['SLR (F2019)']\n", | |
"\n", | |
"for region in data.O1Region.unique():\n", | |
" slr_region2 = compute_slr_region2(region)\n", | |
" slr_region = compute_slr_region(region)\n", | |
" \n", | |
" odf_reg_comp.loc[region, 'SLR (New)'] = slr_region2[0]\n", | |
" \n", | |
"total = odf_reg_comp.sum()\n", | |
"total.name = 'Global'\n", | |
"odf_reg_comp = odf_reg_comp.append(total)\n", | |
"\n", | |
"odf_reg_comp['Diff'] = odf_reg_comp['SLR (New)'] - odf_reg_comp['SLR (F2019)']\n", | |
"odf_reg_comp['Diff (%)'] = 100 * odf_reg_comp['Diff'] / odf_reg_comp['SLR (F2019)']\n", | |
"\n", | |
"odf_reg_comp" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"It becomes evident that the global difference in estimated potential sea-level rise by melting all of Earth's glacier ice instantaneously is not very large (~0.8 %), but that there are considerable differences regionally. \n", | |
"\n", | |
"In regions without glacier ice volume below sea-level the estimate with the second equation is 2.8 % larger, because it divides by freshwater density, which is ~2.8 % lower than that of ocean water. In regions with much glacier ice below sea-level this is compensated for by the fact that the second equation removes the grounded volume below sea-level in terms of the meltwater needed to replace it, which is more than the ice that is situated below sea-level itself. This results in the second equation estimating less potential sea-level rise from the Antarctic periphery (region 19) where ~38 % of the glacier ice is located below sea-level." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## An expanded equation for sea-level rise due to glacier mass change\n", | |
"\n", | |
"As already indicated in the blog post, there are more processes at play; more than we can cover in a blog post. But in this formula, we try to take into account calving, and halosteric/thermosteric effects of oceanic ice melt on global mean sea-level rise. If all the parameters were known, we could calculate the direct and delayed sea-level rise from glacier ice melt as follows:" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"$$ h_{sl} = \\frac{V_{tot} \\cdot (f_c \\cdot f_2 + (1 - f_c - f_{sm}) \\cdot f_1 + f_{sm} \\cdot (f_1 - f_T) + f_c \\cdot f_2 \\cdot f_h - f_c \\cdot f_T) - V_{bsl}} {A_{ocean}}, \\text{with} $$\n", | |
"\n", | |
"$f_c$ : fraction of ice volume lost by calving\n", | |
"\n", | |
"$f_2 = \\frac{\\rho_{ice}}{\\rho_{saltwater}}$\n", | |
"\n", | |
"$f_{sm}$: fraction of ice volume lost by oceanic/submarine melt\n", | |
"\n", | |
"$f_h = \\frac{\\rho_{saltwater} - \\rho_{freshwater}}{\\rho_{freshwater}}$\n", | |
"\n", | |
"$f_T$: fraction of volume contraction caused in the ocean due to\n", | |
"cooling by the extraction of latent heat required for melting the ice volume<br>\n", | |
"\n", | |
"In this equation the last two terms in the large parentheses refer to the\n", | |
"delayed influence of glacier mass loss on sea-level rise induced by the\n", | |
"melting of floating ice (i.e. icebergs). This can be positive, zero, or negative,\n", | |
"depending on halosteric ($f_h$) vs. thermosteric ($f_T$) effect.\n", | |
"\n", | |
"One parameter in this equation that is not easily calculated is the one of the thermosteric process. Here, we just set it to be slightly lower than the halosteric effect (~2 %). We take the fraction of calved and submarine melt volume to be 10 % and 5 %, respectively, and calculate the total sea-level rise this would lead to, the difference to the Farinotti et al. (2019) equation, the difference to the previous equation, the percentage difference to the Farinotti et al. (2019) equation, and the sea-level change that would occur delayed." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": { | |
"pycharm": { | |
"name": "#%%\n" | |
} | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>SLR</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>Total</th>\n", | |
" <td>325.1</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Immediate</th>\n", | |
" <td>324.9</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Delayed</th>\n", | |
" <td>0.2</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Diff. to F19</th>\n", | |
" <td>1.1</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Diff. to Eq. 2</th>\n", | |
" <td>-1.3</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" SLR\n", | |
"Total 325.1\n", | |
"Immediate 324.9\n", | |
"Delayed 0.2\n", | |
"Diff. to F19 1.1\n", | |
"Diff. to Eq. 2 -1.3" | |
] | |
}, | |
"execution_count": 7, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"def compute_slr3(v_tot, v_bsl):\n", | |
" \"\"\"slr3\"\"\"\n", | |
" rho = 900\n", | |
" rho_w = 1000\n", | |
" rho_s = 1028\n", | |
" f2 = rho/rho_s\n", | |
" f1 = rho/rho_w\n", | |
" A_oc = 362.5 * 1e9\n", | |
" f_c = 0.10\n", | |
" f_sm = 0.05\n", | |
" f_t = 0.02\n", | |
" f_h = (rho_s - rho_w) / rho_w\n", | |
" total = (v_tot * (f_c * f2 + f1 * (1-f_c-f_sm) + f_sm * (f1 - f_t) + f_c * f2 * f_h - f_c * f_t) - v_bsl) / A_oc\n", | |
" immediate = (v_tot * (f_c * f2 + f1 * (1-f_c-f_sm) + f_sm * (f1 - f_t)) - v_bsl) / A_oc\n", | |
" delayed = (v_tot * (f_c * f2 * f_h - f_c * f_t)) / A_oc\n", | |
" return total, immediate, delayed\n", | |
"\n", | |
"total_slr3 = compute_slr3(data.vol_itmix_m3.sum(), data.vol_bsl_itmix_m3.sum())\n", | |
"\n", | |
"odf = pd.DataFrame(index=['SLR'])\n", | |
"odf['Total'] = total_slr3[0]\n", | |
"odf['Immediate'] = total_slr3[1]\n", | |
"odf['Delayed'] = total_slr3[2]\n", | |
"odf['Diff. to F19'] = total_slr3[0] - total_slr\n", | |
"odf['Diff. to Eq. 2'] = total_slr3[0] - total_slr2\n", | |
"odf.T" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"We see that this results in a slightly lower sea-level rise estimate than with the previous equation due to the thermosteric effect of submarine (and iceberg) melt. The delayed sea-level rise is very small, partly because the halosteric increase of melting an iceberg only affects the volume of the iceberg that is below sea-level, while the thermosteric effect affects the whole iceberg (neglecting atmospheric melt of the iceberg's part above sea-level). You can play around with the values of the parameters and look how that changes the results; e.g. put f_c = 1 and f_sm = 0 to see what would change if all the Earth's glacier ice would somehow calv at once." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"pycharm": { | |
"name": "#%% md\n" | |
} | |
}, | |
"source": [ | |
"## A simpler equation for (delayed) sea-level rise due to glacier mass change\n", | |
"\n", | |
"To make the previous equation a bit slimmer, we neglect submarine melt and the thermosteric ($f_T$)\n", | |
"effect. The equation then becomes:\n", | |
"\n", | |
"$$ h_{sl} = \\frac{V_{tot} \\cdot (f_c \\cdot f_2 + (1 - f_c) \\cdot f_1 + f_c \\cdot f_2 \\cdot f_h) - V_{bsl}} {A_{ocean}} $$\n", | |
"\n", | |
"This equation accounts for part of the ice mass being added to the oceans in the\n", | |
"form of icebergs. The last term in the large parentheses is the delayed increase\n", | |
"in ocean volume due to melting those via solely the halosteric effect. In this case we take the calved volume to be 15 %." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": { | |
"pycharm": { | |
"name": "#%%\n" | |
} | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>SLR</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>Total</th>\n", | |
" <td>326.4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Immediate</th>\n", | |
" <td>324.8</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Delayed</th>\n", | |
" <td>1.6</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Diff. to F19</th>\n", | |
" <td>2.4</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Diff. to Eq. 2</th>\n", | |
" <td>0.0</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" SLR\n", | |
"Total 326.4\n", | |
"Immediate 324.8\n", | |
"Delayed 1.6\n", | |
"Diff. to F19 2.4\n", | |
"Diff. to Eq. 2 0.0" | |
] | |
}, | |
"execution_count": 9, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"def compute_slr4(v_tot, v_bsl):\n", | |
" \"\"\"slr4\"\"\"\n", | |
" rho = 900\n", | |
" rho_w = 1000\n", | |
" rho_s = 1028\n", | |
" f2 = rho/rho_s\n", | |
" f1 = rho/rho_w\n", | |
" A_oc = 362.5 * 1e9\n", | |
" f_c = 0.15\n", | |
" f_h = (rho_s - rho_w) / rho_w\n", | |
" total = (v_tot * (f_c * f2 + f1 * (1-f_c) + f_c * f2 * f_h) - v_bsl) / A_oc\n", | |
" immediate = (v_tot * (f_c * f2 + f1 * (1-f_c)) - v_bsl) / A_oc\n", | |
" delayed = (v_tot * f_c * f2 * f_h) / A_oc\n", | |
" return total, immediate, delayed\n", | |
"\n", | |
"total_slr4 = compute_slr4(data.vol_itmix_m3.sum(), data.vol_bsl_itmix_m3.sum())\n", | |
"\n", | |
"odf = pd.DataFrame(index=['SLR'])\n", | |
"odf['Total'] = total_slr4[0]\n", | |
"odf['Immediate'] = total_slr4[1]\n", | |
"odf['Delayed'] = total_slr4[2]\n", | |
"odf['Diff. to F19'] = total_slr4[0] - total_slr\n", | |
"odf['Diff. to Eq. 2'] = total_slr4[0] - total_slr2\n", | |
"odf.T" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"pycharm": { | |
"name": "#%% md\n" | |
} | |
}, | |
"source": [ | |
"As we do not take the extraction of ocean heat for ice melt into account with this formula, there is no difference in total sea-level rise compared to the second equation in this Notebook, but we get a simple estimate of delayed sea-level rise due to the halosteric effect.\n", | |
"\n", | |
"## Ultimately, we see that the differences to Farinotti et al. (2019) are below 1 %, but up to 4 % regionally. They become even smaller when we account for thermosteric effects. But I hope it was fun to think about this topic and play around with some equations!" | |
] | |
} | |
], | |
"metadata": { | |
"hide_input": false, | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.6.8" | |
}, | |
"latex_envs": { | |
"LaTeX_envs_menu_present": true, | |
"autoclose": false, | |
"autocomplete": true, | |
"bibliofile": "biblio.bib", | |
"cite_by": "apalike", | |
"current_citInitial": 1, | |
"eqLabelWithNumbers": true, | |
"eqNumInitial": 1, | |
"hotkeys": { | |
"equation": "Ctrl-E", | |
"itemize": "Ctrl-I" | |
}, | |
"labels_anchors": false, | |
"latex_user_defs": false, | |
"report_style_numbering": false, | |
"user_envs_cfg": false | |
}, | |
"nbTranslate": { | |
"displayLangs": [ | |
"*" | |
], | |
"hotkey": "alt-t", | |
"langInMainMenu": true, | |
"sourceLang": "en", | |
"targetLang": "fr", | |
"useGoogleTranslate": true | |
}, | |
"toc": { | |
"base_numbering": 1, | |
"nav_menu": {}, | |
"number_sections": false, | |
"sideBar": true, | |
"skip_h1_title": true, | |
"title_cell": "Table of Contents", | |
"title_sidebar": "Contents", | |
"toc_cell": false, | |
"toc_position": {}, | |
"toc_section_display": true, | |
"toc_window_display": false | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment