Skip to content

Commit

Permalink
Fix notebook cleaning for git in change_zonal_mean
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane SENESI committed Oct 1, 2020
1 parent 10294ce commit c0202a9
Showing 1 changed file with 19 additions and 122 deletions.
141 changes: 19 additions & 122 deletions notebooks/change_zonal_mean.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {},
"source": [
"# AR6/WGI Chapter 8\n",
"## Build a figure showing zonal mean of precipitation and P-E change and variability of precip for three SSPs\n",
"## Build a figure showing zonal mean of precipitation, evaporation and P-E change and variability of precip for three SSPs\n",
"### S.Sénési - sept 2019 to march 2021\n",
"### A few commands below are specific to the Notebook environment, and can be safely commented out\n"
]
Expand All @@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"tags": [
"parameters"
Expand Down Expand Up @@ -75,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -97,32 +97,19 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/html": [
"<style>.container { width:100% !important; }</style>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"from IPython.core.display import display, HTML, Image\n",
"display(HTML(\"<style>.container { width:100% !important; }</style>\"))"
]
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -141,34 +128,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"CliMAF version = 2.0.0\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"CliMAF install => /home/ssenesi/climaf_installs/climaf_running\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Cache directory set to : /data/ssenesi/climafcache (use $CLIMAF_CACHE if set) \n",
"Cache directory for remote data set to : /data/ssenesi/climafcache/remote_data (use $CLIMAF_REMOTE_CACHE if set) \n",
"No reachable lmdz_SE library\n",
"Available macros read from ~/.climaf.macros are : []\n"
]
}
],
"outputs": [],
"source": [
"import sys\n",
"import os.path\n",
Expand Down Expand Up @@ -197,7 +159,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -213,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -229,7 +191,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -280,68 +242,11 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Values below are field medians\n",
"exp. variable model reference projection change change_land\n",
"------------------------------------------------------------------------------------------------------------------------\n",
"ssp126 pr IPSL-CM6A-LR ssp126 pr IPSL-CM6A-LR "
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"warning : File 'out_ssp126_pr.nc' already existed and has been overwritten\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" 2.5e-05 2.5e-05 8.3e-07 5.6e-07 \n",
"\n",
"ssp245 pr IPSL-CM6A-LR ssp245 pr IPSL-CM6A-LR 2.5e-05 2.6e-05 1.7e-06 9.1e-07 \n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"warning : File 'out_ssp245_pr.nc' already existed and has been overwritten\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"ssp585 pr IPSL-CM6A-LR ssp585 pr IPSL-CM6A-LR 2.5e-05 2.7e-05 3e-06 1.7e-06 \n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"warning : File 'out_ssp585_pr.nc' already existed and has been overwritten\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Done\n"
]
}
],
"outputs": [],
"source": [
"# Put intermediate results in dictionnaries\n",
"all_anomalies=dict() # anomalies of piControl periods, for all models\n",
Expand Down Expand Up @@ -612,22 +517,14 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.15"
"pygments_lexer": "ipython2"
},
"kernelspec": {
"name": "python2",
"display_name": "Python 2",
"language": "python"
}
},
"nbformat": 4,
Expand Down

0 comments on commit c0202a9

Please sign in to comment.