Commit 9734e2d1 authored by Martin Bergemann's avatar Martin Bergemann
Browse files

Add install instructions

parent ffced4ba
notebooks/.ipynb_checkpoints/*
# CodeSnippets
A collection of Algorithms/Architectures in Jupyter Notebooks.
\ No newline at end of file
A collection of Algorithms/Architectures in Jupyter Notebooks.
You can clone this repository:
```bash
git clone https://gitlab.dkrz.de/k204230/codesnippets.git
```
## Installation:
To be able to run all notebooks install the kernel specs in your home on mistral:
```bash
/work/ch1187/regiklim-ces/freva/xarray/bin/python -m ipykernel install --user --name python3_codesnippets --display-name=python3_codesnippets
```
......@@ -10,18 +10,20 @@
"\n",
"The first example will demonstrate the application on global data. This example uses the country boundaries for Argentina as an example and calculates spatial and time averages of Era5 data over Argentina. \n",
"\n",
"Parts of the code is with courtesy of https://www.guillaumedueymes.com/post/shapefiles_country/. \n",
"Parts of the code is with courtesy of https://www.guillaumedueymes.com/post/shapefiles_country/ and https://regionmask.readthedocs.io/en/stable/ \n",
"\n",
"The second part will apply masking across German municipalities using high resolution model output on rotated grids. \n",
"\n",
"The shape files were downloaded at the following locations:\n",
"* Argentina : https://map.igismap.com/share-map/export-layer/Argentina_AL2-AL2/c0e190d8267e36708f955d7ab048990d\n",
"* Germany : https://opendata-esri-de.opendata.arcgis.com/datasets/affd8ace4c204981b5d32070f9547eb9_0/data?geometry=-31.338%2C46.270%2C52.246%2C55.886"
"* Germany : https://opendata-esri-de.opendata.arcgis.com/datasets/affd8ace4c204981b5d32070f9547eb9_0/data?geometry=-31.338%2C46.270%2C52.246%2C55.886\n",
"\n",
"* The notebook can be view on the [Notebook Viewer](https://nbviewer.jupyter.org/urls/gitlab.dkrz.de/k204230/codesnippets/-/raw/master/notebooks/MaskRegionFromShapeFile.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": 148,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
......@@ -45,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
......@@ -57,7 +59,7 @@
},
{
"cell_type": "code",
"execution_count": 115,
"execution_count": 3,
"metadata": {},
"outputs": [
{
......@@ -68,7 +70,7 @@
" '/work/ch1187/regiklim-ces/data4freva/reanalysis/reanalysis/ECMWF/IFS/ERA5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20200101-20201231.nc']"
]
},
"execution_count": 115,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
......@@ -79,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": 116,
"execution_count": 4,
"metadata": {},
"outputs": [
{
......@@ -159,7 +161,7 @@
"0 MULTIPOLYGON (((-66.54668 -55.06064, -66.54654... "
]
},
"execution_count": 116,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
......@@ -179,16 +181,16 @@
},
{
"cell_type": "code",
"execution_count": 118,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<cartopy.mpl.feature_artist.FeatureArtist at 0x2ba7699aec70>"
"<cartopy.mpl.feature_artist.FeatureArtist at 0x2b193cee1ca0>"
]
},
"execution_count": 118,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
},
......@@ -227,7 +229,7 @@
},
{
"cell_type": "code",
"execution_count": 120,
"execution_count": 6,
"metadata": {},
"outputs": [
{
......@@ -603,7 +605,7 @@
" tracking_id: d5b13485-16f3-5f65-8dfd-cf03615bcc01\n",
" creation_date: 2020-10-10T01:10:54Z\n",
" CDO: Climate Data Operators version 1.9.6 (http://mpimet.mpg.d...\n",
" license: Contains modified Copernicus Atmosphere Monitoring Servic...</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-c9bd0fcf-53ef-4d6b-88a2-1acea92944be' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c9bd0fcf-53ef-4d6b-88a2-1acea92944be' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>bnds</span>: 2</li><li><span class='xr-has-index'>lat</span>: 640</li><li><span class='xr-has-index'>lon</span>: 1280</li><li><span class='xr-has-index'>time</span>: 29</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-4910a62f-48ab-46d6-93f0-0f24b197065c' class='xr-section-summary-in' type='checkbox' checked><label for='section-4910a62f-48ab-46d6-93f0-0f24b197065c' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2018-01-01 ... 2020-05-01</div><input id='attrs-526dd87d-2c4f-49a8-83b0-d9bcd9ac624b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-526dd87d-2c4f-49a8-83b0-d9bcd9ac624b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-006e15f8-d9b7-4cae-a830-ce8da8b52840' class='xr-var-data-in' type='checkbox'><label for='data-006e15f8-d9b7-4cae-a830-ce8da8b52840' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>time</dd><dt><span>axis :</span></dt><dd>T</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2018-01-01T00:00:00.000000000&#x27;, &#x27;2018-02-01T00:00:00.000000000&#x27;,\n",
" license: Contains modified Copernicus Atmosphere Monitoring Servic...</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-11b96d69-7671-4d9a-b081-4076652de6e1' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-11b96d69-7671-4d9a-b081-4076652de6e1' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>bnds</span>: 2</li><li><span class='xr-has-index'>lat</span>: 640</li><li><span class='xr-has-index'>lon</span>: 1280</li><li><span class='xr-has-index'>time</span>: 29</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-665781c7-e494-45ec-845b-b9a091c9234f' class='xr-section-summary-in' type='checkbox' checked><label for='section-665781c7-e494-45ec-845b-b9a091c9234f' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2018-01-01 ... 2020-05-01</div><input id='attrs-db7914ab-55e2-4439-bad2-f5534c0ded36' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-db7914ab-55e2-4439-bad2-f5534c0ded36' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ce98c38c-c9c7-4ec9-b9d0-45b64b105fa8' class='xr-var-data-in' type='checkbox'><label for='data-ce98c38c-c9c7-4ec9-b9d0-45b64b105fa8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>time</dd><dt><span>axis :</span></dt><dd>T</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2018-01-01T00:00:00.000000000&#x27;, &#x27;2018-02-01T00:00:00.000000000&#x27;,\n",
" &#x27;2018-03-01T00:00:00.000000000&#x27;, &#x27;2018-04-01T00:00:00.000000000&#x27;,\n",
" &#x27;2018-05-01T00:00:00.000000000&#x27;, &#x27;2018-06-01T00:00:00.000000000&#x27;,\n",
" &#x27;2018-07-01T00:00:00.000000000&#x27;, &#x27;2018-08-01T00:00:00.000000000&#x27;,\n",
......@@ -617,9 +619,9 @@
" &#x27;2019-11-01T00:00:00.000000000&#x27;, &#x27;2019-12-01T00:00:00.000000000&#x27;,\n",
" &#x27;2020-01-01T00:00:00.000000000&#x27;, &#x27;2020-02-01T00:00:00.000000000&#x27;,\n",
" &#x27;2020-03-01T00:00:00.000000000&#x27;, &#x27;2020-04-01T00:00:00.000000000&#x27;,\n",
" &#x27;2020-05-01T00:00:00.000000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.2812 0.5625 ... 359.4 359.7</div><input id='attrs-45b37373-f0a9-4e7e-9f03-703e53d3eb8b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-45b37373-f0a9-4e7e-9f03-703e53d3eb8b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a36ec7a5-d75c-4802-9809-c192d0370a12' class='xr-var-data-in' type='checkbox'><label for='data-a36ec7a5-d75c-4802-9809-c192d0370a12' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>long_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>axis :</span></dt><dd>X</dd><dt><span>bounds :</span></dt><dd>lon_bnds</dd></dl></div><div class='xr-var-data'><pre>array([0.000000e+00, 2.812500e-01, 5.625000e-01, ..., 3.591562e+02,\n",
" 3.594375e+02, 3.597188e+02])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-89.78 -89.51 ... 89.51 89.78</div><input id='attrs-8c36c8a1-a44a-49e3-bb76-56091766e6b8' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8c36c8a1-a44a-49e3-bb76-56091766e6b8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4161042b-398e-49f5-a72b-c6d5b97cbbb3' class='xr-var-data-in' type='checkbox'><label for='data-4161042b-398e-49f5-a72b-c6d5b97cbbb3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>axis :</span></dt><dd>Y</dd><dt><span>bounds :</span></dt><dd>lat_bnds</dd></dl></div><div class='xr-var-data'><pre>array([-89.784877, -89.506203, -89.225883, ..., 89.225883, 89.506203,\n",
" 89.784877])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-8dbffd9f-f541-4e23-a393-466b776102d1' class='xr-section-summary-in' type='checkbox' checked><label for='section-8dbffd9f-f541-4e23-a393-466b776102d1' class='xr-section-summary' >Data variables: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>lon_bnds</span></div><div class='xr-var-dims'>(time, lon, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 1280, 2), meta=np.ndarray&gt;</div><input id='attrs-6f1b7131-e5bc-4fc9-a965-b4febf75dade' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6f1b7131-e5bc-4fc9-a965-b4febf75dade' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-67efdb44-fd60-4bd7-b1b4-cf72c3b14e8f' class='xr-var-data-in' type='checkbox'><label for='data-67efdb44-fd60-4bd7-b1b4-cf72c3b14e8f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
" &#x27;2020-05-01T00:00:00.000000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.2812 0.5625 ... 359.4 359.7</div><input id='attrs-b710d5fe-b3a8-49a9-b763-b42cc72feb91' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b710d5fe-b3a8-49a9-b763-b42cc72feb91' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0d3b7760-5aca-4b0f-aee2-7567948bb40d' class='xr-var-data-in' type='checkbox'><label for='data-0d3b7760-5aca-4b0f-aee2-7567948bb40d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>long_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>axis :</span></dt><dd>X</dd><dt><span>bounds :</span></dt><dd>lon_bnds</dd></dl></div><div class='xr-var-data'><pre>array([0.000000e+00, 2.812500e-01, 5.625000e-01, ..., 3.591562e+02,\n",
" 3.594375e+02, 3.597188e+02])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-89.78 -89.51 ... 89.51 89.78</div><input id='attrs-0e58c60b-6735-4aaf-b60d-ed7357e6cd44' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-0e58c60b-6735-4aaf-b60d-ed7357e6cd44' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f205bbcd-656a-4cb9-aa94-bbe423ad1911' class='xr-var-data-in' type='checkbox'><label for='data-f205bbcd-656a-4cb9-aa94-bbe423ad1911' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>axis :</span></dt><dd>Y</dd><dt><span>bounds :</span></dt><dd>lat_bnds</dd></dl></div><div class='xr-var-data'><pre>array([-89.784877, -89.506203, -89.225883, ..., 89.225883, 89.506203,\n",
" 89.784877])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-1847d17d-2969-4193-b9d2-297c50cf5a4b' class='xr-section-summary-in' type='checkbox' checked><label for='section-1847d17d-2969-4193-b9d2-297c50cf5a4b' class='xr-section-summary' >Data variables: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>lon_bnds</span></div><div class='xr-var-dims'>(time, lon, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 1280, 2), meta=np.ndarray&gt;</div><input id='attrs-6e8c8dc4-6748-4e98-80b4-f17f82e60675' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6e8c8dc4-6748-4e98-80b4-f17f82e60675' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a092c46d-469a-4e52-9855-75e963c6dde0' class='xr-var-data-in' type='checkbox'><label for='data-a092c46d-469a-4e52-9855-75e963c6dde0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
"<tr>\n",
"<td>\n",
"<table>\n",
......@@ -681,7 +683,7 @@
"</svg>\n",
"</td>\n",
"</tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_bnds</span></div><div class='xr-var-dims'>(time, lat, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 2), meta=np.ndarray&gt;</div><input id='attrs-d6b3a96f-96b0-40db-bec4-7b7dd3e68b9b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d6b3a96f-96b0-40db-bec4-7b7dd3e68b9b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cbce00f1-6c9b-4a95-ad73-90aaad1cb3b2' class='xr-var-data-in' type='checkbox'><label for='data-cbce00f1-6c9b-4a95-ad73-90aaad1cb3b2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_bnds</span></div><div class='xr-var-dims'>(time, lat, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 2), meta=np.ndarray&gt;</div><input id='attrs-982ec663-fbdf-45b7-954b-b48a5f9202c7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-982ec663-fbdf-45b7-954b-b48a5f9202c7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f6f5afd7-f058-4468-9ea9-e44c7e32442e' class='xr-var-data-in' type='checkbox'><label for='data-f6f5afd7-f058-4468-9ea9-e44c7e32442e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
"<tr>\n",
"<td>\n",
"<table>\n",
......@@ -743,7 +745,7 @@
"</svg>\n",
"</td>\n",
"</tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>prw</span></div><div class='xr-var-dims'>(time, lat, lon)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 1280), meta=np.ndarray&gt;</div><input id='attrs-80e2cc7f-9d01-4484-88be-bde3ac2e3c4d' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-80e2cc7f-9d01-4484-88be-bde3ac2e3c4d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-df79ea9d-4994-4be3-a88b-24e61718724d' class='xr-var-data-in' type='checkbox'><label for='data-df79ea9d-4994-4be3-a88b-24e61718724d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>atmosphere_water_vapor_content</dd><dt><span>long_name :</span></dt><dd>Water Vapor Path</dd><dt><span>units :</span></dt><dd>kg m-2</dd><dt><span>code :</span></dt><dd>137</dd><dt><span>table :</span></dt><dd>128</dd><dt><span>original_name :</span></dt><dd>var137</dd></dl></div><div class='xr-var-data'><table>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>prw</span></div><div class='xr-var-dims'>(time, lat, lon)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 1280), meta=np.ndarray&gt;</div><input id='attrs-d9419421-4a71-40b2-beb1-6c503bbd5de1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-d9419421-4a71-40b2-beb1-6c503bbd5de1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6bd6a27c-c6e8-4df9-b66a-dd6937b096c6' class='xr-var-data-in' type='checkbox'><label for='data-6bd6a27c-c6e8-4df9-b66a-dd6937b096c6' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>atmosphere_water_vapor_content</dd><dt><span>long_name :</span></dt><dd>Water Vapor Path</dd><dt><span>units :</span></dt><dd>kg m-2</dd><dt><span>code :</span></dt><dd>137</dd><dt><span>table :</span></dt><dd>128</dd><dt><span>original_name :</span></dt><dd>var137</dd></dl></div><div class='xr-var-data'><table>\n",
"<tr>\n",
"<td>\n",
"<table>\n",
......@@ -805,7 +807,7 @@
"</svg>\n",
"</td>\n",
"</tr>\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-4b30ef9d-ad8b-45c5-b533-c4045a75cc9d' class='xr-section-summary-in' type='checkbox' checked><label for='section-4b30ef9d-ad8b-45c5-b533-c4045a75cc9d' class='xr-section-summary' >Attributes: <span>(8)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>CDI :</span></dt><dd>Climate Data Interface version 1.9.6 (http://mpimet.mpg.de/cdi)</dd><dt><span>history :</span></dt><dd>Mon Oct 12 15:04:04 2020: cdo -f nc4 -s -mergetime era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20180131.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180201-20180228.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180301-20180331.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180401-20180430.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180501-20180531.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180601-20180630.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180701-20180731.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180801-20180831.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180901-20180930.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181001-20181031.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181101-20181130.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181201-20181231.nc years_era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20181231.nc\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-cd80488a-5cf6-402a-b186-2b32419c14c6' class='xr-section-summary-in' type='checkbox' checked><label for='section-cd80488a-5cf6-402a-b186-2b32419c14c6' class='xr-section-summary' >Attributes: <span>(8)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>CDI :</span></dt><dd>Climate Data Interface version 1.9.6 (http://mpimet.mpg.de/cdi)</dd><dt><span>history :</span></dt><dd>Mon Oct 12 15:04:04 2020: cdo -f nc4 -s -mergetime era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20180131.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180201-20180228.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180301-20180331.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180401-20180430.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180501-20180531.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180601-20180630.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180701-20180731.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180801-20180831.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180901-20180930.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181001-20181031.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181101-20181130.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181201-20181231.nc years_era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20181231.nc\n",
"Sat Oct 10 04:38:10 2020: cdo -s -setday,1 -settime,000000 -timmean /scratch/k/k204229/work/ERA5l/era5proc_1/work-getSFC-sf00/era5dkrz/ecmwf/ifs/era5/1hr/atmos/prw/r1i1p1/prw_1hr_reanalysis_era5_r1i1p1_20180101-20180131.nc monmean-era5/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20180131.nc\n",
"Sat Oct 10 01:10:54 2020: cdo -s -f nc4 -z zip_9 --cmor -invertlat -setgridtype,regular -cmorlite,cmorlite_table.rc E5sf00_1H_2018-01_137 era5dkrz/ecmwf/ifs/era5/1hr/atmos/prw/r1i1p1/prw_1hr_reanalysis_era5_r1i1p1_20180101-20180131.nc</dd><dt><span>institution :</span></dt><dd>European Centre for Medium-Range Weather Forecasts</dd><dt><span>Conventions :</span></dt><dd>CF-1.6</dd><dt><span>tracking_id :</span></dt><dd>d5b13485-16f3-5f65-8dfd-cf03615bcc01</dd><dt><span>creation_date :</span></dt><dd>2020-10-10T01:10:54Z</dd><dt><span>CDO :</span></dt><dd>Climate Data Operators version 1.9.6 (http://mpimet.mpg.de/cdo)</dd><dt><span>license :</span></dt><dd>Contains modified Copernicus Atmosphere Monitoring Service information [2020]. Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains.</dd></dl></div></li></ul></div></div>"
],
......@@ -832,7 +834,7 @@
" license: Contains modified Copernicus Atmosphere Monitoring Servic..."
]
},
"execution_count": 120,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
......@@ -851,7 +853,7 @@
},
{
"cell_type": "code",
"execution_count": 121,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
......@@ -860,7 +862,7 @@
},
{
"cell_type": "code",
"execution_count": 122,
"execution_count": 8,
"metadata": {},
"outputs": [
{
......@@ -1236,7 +1238,7 @@
" tracking_id: d5b13485-16f3-5f65-8dfd-cf03615bcc01\n",
" creation_date: 2020-10-10T01:10:54Z\n",
" CDO: Climate Data Operators version 1.9.6 (http://mpimet.mpg.d...\n",
" license: Contains modified Copernicus Atmosphere Monitoring Servic...</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-439b3837-db7a-40b7-bd89-58eb0bf3c20b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-439b3837-db7a-40b7-bd89-58eb0bf3c20b' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>bnds</span>: 2</li><li><span class='xr-has-index'>lat</span>: 640</li><li><span class='xr-has-index'>lon</span>: 1280</li><li><span class='xr-has-index'>time</span>: 29</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-0fa06a39-89a4-49bd-8300-98190ed8105a' class='xr-section-summary-in' type='checkbox' checked><label for='section-0fa06a39-89a4-49bd-8300-98190ed8105a' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2018-01-01 ... 2020-05-01</div><input id='attrs-fc529147-070f-425e-aa78-17e2b36b5368' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-fc529147-070f-425e-aa78-17e2b36b5368' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c1de1521-4c38-4e19-a3ef-3d9bdff75c5b' class='xr-var-data-in' type='checkbox'><label for='data-c1de1521-4c38-4e19-a3ef-3d9bdff75c5b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>time</dd><dt><span>axis :</span></dt><dd>T</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2018-01-01T00:00:00.000000000&#x27;, &#x27;2018-02-01T00:00:00.000000000&#x27;,\n",
" license: Contains modified Copernicus Atmosphere Monitoring Servic...</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-a35555b6-d21f-450e-b729-0ba257a0ad5d' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-a35555b6-d21f-450e-b729-0ba257a0ad5d' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>bnds</span>: 2</li><li><span class='xr-has-index'>lat</span>: 640</li><li><span class='xr-has-index'>lon</span>: 1280</li><li><span class='xr-has-index'>time</span>: 29</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-1fc6f714-5801-4d66-b215-af7f1c462a5e' class='xr-section-summary-in' type='checkbox' checked><label for='section-1fc6f714-5801-4d66-b215-af7f1c462a5e' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2018-01-01 ... 2020-05-01</div><input id='attrs-5b1201f2-42f2-4c90-911d-dd6948490fbc' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5b1201f2-42f2-4c90-911d-dd6948490fbc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-161fbe48-8fb8-4722-b61b-3beef5921684' class='xr-var-data-in' type='checkbox'><label for='data-161fbe48-8fb8-4722-b61b-3beef5921684' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>time</dd><dt><span>axis :</span></dt><dd>T</dd></dl></div><div class='xr-var-data'><pre>array([&#x27;2018-01-01T00:00:00.000000000&#x27;, &#x27;2018-02-01T00:00:00.000000000&#x27;,\n",
" &#x27;2018-03-01T00:00:00.000000000&#x27;, &#x27;2018-04-01T00:00:00.000000000&#x27;,\n",
" &#x27;2018-05-01T00:00:00.000000000&#x27;, &#x27;2018-06-01T00:00:00.000000000&#x27;,\n",
" &#x27;2018-07-01T00:00:00.000000000&#x27;, &#x27;2018-08-01T00:00:00.000000000&#x27;,\n",
......@@ -1250,9 +1252,9 @@
" &#x27;2019-11-01T00:00:00.000000000&#x27;, &#x27;2019-12-01T00:00:00.000000000&#x27;,\n",
" &#x27;2020-01-01T00:00:00.000000000&#x27;, &#x27;2020-02-01T00:00:00.000000000&#x27;,\n",
" &#x27;2020-03-01T00:00:00.000000000&#x27;, &#x27;2020-04-01T00:00:00.000000000&#x27;,\n",
" &#x27;2020-05-01T00:00:00.000000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-180.0 -179.7 ... 179.4 179.7</div><input id='attrs-6911e46d-6fa7-4b91-92d6-cfc6e752230f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6911e46d-6fa7-4b91-92d6-cfc6e752230f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-dd3a6a4e-3e84-4ec0-b589-625a93eece85' class='xr-var-data-in' type='checkbox'><label for='data-dd3a6a4e-3e84-4ec0-b589-625a93eece85' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-180. , -179.71875, -179.4375 , ..., 179.15625, 179.4375 ,\n",
" 179.71875])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-89.78 -89.51 ... 89.51 89.78</div><input id='attrs-960c8213-6421-45d4-aad8-06631ebdc776' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-960c8213-6421-45d4-aad8-06631ebdc776' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1b66dd23-7a0c-4d32-9857-b09f69cccc5a' class='xr-var-data-in' type='checkbox'><label for='data-1b66dd23-7a0c-4d32-9857-b09f69cccc5a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>axis :</span></dt><dd>Y</dd><dt><span>bounds :</span></dt><dd>lat_bnds</dd></dl></div><div class='xr-var-data'><pre>array([-89.784877, -89.506203, -89.225883, ..., 89.225883, 89.506203,\n",
" 89.784877])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-cf0566ae-6f58-487a-acaf-2b06e4da48e6' class='xr-section-summary-in' type='checkbox' checked><label for='section-cf0566ae-6f58-487a-acaf-2b06e4da48e6' class='xr-section-summary' >Data variables: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>lon_bnds</span></div><div class='xr-var-dims'>(time, lon, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 1280, 2), meta=np.ndarray&gt;</div><input id='attrs-863879ac-6cba-45ea-8267-30139fb5defa' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-863879ac-6cba-45ea-8267-30139fb5defa' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a4d75b08-f170-441e-964f-7601e54f0b6a' class='xr-var-data-in' type='checkbox'><label for='data-a4d75b08-f170-441e-964f-7601e54f0b6a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
" &#x27;2020-05-01T00:00:00.000000000&#x27;], dtype=&#x27;datetime64[ns]&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-180.0 -179.7 ... 179.4 179.7</div><input id='attrs-23adecc8-a1f0-44bf-b7b9-d036163e7c5a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-23adecc8-a1f0-44bf-b7b9-d036163e7c5a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4daba40f-37b0-4313-be5d-51909c2f17ef' class='xr-var-data-in' type='checkbox'><label for='data-4daba40f-37b0-4313-be5d-51909c2f17ef' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-180. , -179.71875, -179.4375 , ..., 179.15625, 179.4375 ,\n",
" 179.71875])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-89.78 -89.51 ... 89.51 89.78</div><input id='attrs-fa22d0dd-4c63-44e2-81da-5331ac2c98c8' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-fa22d0dd-4c63-44e2-81da-5331ac2c98c8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ed0c523e-b713-4c6e-b9a4-8aa5e86afd04' class='xr-var-data-in' type='checkbox'><label for='data-ed0c523e-b713-4c6e-b9a4-8aa5e86afd04' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>axis :</span></dt><dd>Y</dd><dt><span>bounds :</span></dt><dd>lat_bnds</dd></dl></div><div class='xr-var-data'><pre>array([-89.784877, -89.506203, -89.225883, ..., 89.225883, 89.506203,\n",
" 89.784877])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-74343849-e9cc-410c-9474-bc4dd8f920c7' class='xr-section-summary-in' type='checkbox' checked><label for='section-74343849-e9cc-410c-9474-bc4dd8f920c7' class='xr-section-summary' >Data variables: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>lon_bnds</span></div><div class='xr-var-dims'>(time, lon, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 1280, 2), meta=np.ndarray&gt;</div><input id='attrs-8b65dcdd-73a4-4708-8b83-a0085dc6dee7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8b65dcdd-73a4-4708-8b83-a0085dc6dee7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b64fb2d2-27cc-4ccf-88ad-0632213fdb0f' class='xr-var-data-in' type='checkbox'><label for='data-b64fb2d2-27cc-4ccf-88ad-0632213fdb0f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
"<tr>\n",
"<td>\n",
"<table>\n",
......@@ -1314,7 +1316,7 @@
"</svg>\n",
"</td>\n",
"</tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_bnds</span></div><div class='xr-var-dims'>(time, lat, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 2), meta=np.ndarray&gt;</div><input id='attrs-7284f8c9-6958-47a0-b58c-1e0ce561ba17' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7284f8c9-6958-47a0-b58c-1e0ce561ba17' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-32d782f0-f498-4091-b29b-c142a0cf50a4' class='xr-var-data-in' type='checkbox'><label for='data-32d782f0-f498-4091-b29b-c142a0cf50a4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_bnds</span></div><div class='xr-var-dims'>(time, lat, bnds)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 2), meta=np.ndarray&gt;</div><input id='attrs-38a2e2bc-004a-4ed3-9254-5ca2c75c279f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-38a2e2bc-004a-4ed3-9254-5ca2c75c279f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-901f0619-ab64-4cf6-b247-2cfb303bf072' class='xr-var-data-in' type='checkbox'><label for='data-901f0619-ab64-4cf6-b247-2cfb303bf072' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><table>\n",
"<tr>\n",
"<td>\n",
"<table>\n",
......@@ -1376,7 +1378,7 @@
"</svg>\n",
"</td>\n",
"</tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>prw</span></div><div class='xr-var-dims'>(time, lat, lon)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 1280), meta=np.ndarray&gt;</div><input id='attrs-164912be-5724-4102-a144-49c111621e05' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-164912be-5724-4102-a144-49c111621e05' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-31c84853-7529-462d-b390-c5c42aeae322' class='xr-var-data-in' type='checkbox'><label for='data-31c84853-7529-462d-b390-c5c42aeae322' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>atmosphere_water_vapor_content</dd><dt><span>long_name :</span></dt><dd>Water Vapor Path</dd><dt><span>units :</span></dt><dd>kg m-2</dd><dt><span>code :</span></dt><dd>137</dd><dt><span>table :</span></dt><dd>128</dd><dt><span>original_name :</span></dt><dd>var137</dd></dl></div><div class='xr-var-data'><table>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>prw</span></div><div class='xr-var-dims'>(time, lat, lon)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(12, 640, 1280), meta=np.ndarray&gt;</div><input id='attrs-da94a349-3878-4c23-ba1c-1e962f7966ff' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-da94a349-3878-4c23-ba1c-1e962f7966ff' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-55f9f5c6-59c0-4d86-99b1-ad842ba2fb25' class='xr-var-data-in' type='checkbox'><label for='data-55f9f5c6-59c0-4d86-99b1-ad842ba2fb25' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>atmosphere_water_vapor_content</dd><dt><span>long_name :</span></dt><dd>Water Vapor Path</dd><dt><span>units :</span></dt><dd>kg m-2</dd><dt><span>code :</span></dt><dd>137</dd><dt><span>table :</span></dt><dd>128</dd><dt><span>original_name :</span></dt><dd>var137</dd></dl></div><div class='xr-var-data'><table>\n",
"<tr>\n",
"<td>\n",
"<table>\n",
......@@ -1438,7 +1440,7 @@
"</svg>\n",
"</td>\n",
"</tr>\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-87a57527-875c-48fd-9fea-7eec72281663' class='xr-section-summary-in' type='checkbox' checked><label for='section-87a57527-875c-48fd-9fea-7eec72281663' class='xr-section-summary' >Attributes: <span>(8)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>CDI :</span></dt><dd>Climate Data Interface version 1.9.6 (http://mpimet.mpg.de/cdi)</dd><dt><span>history :</span></dt><dd>Mon Oct 12 15:04:04 2020: cdo -f nc4 -s -mergetime era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20180131.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180201-20180228.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180301-20180331.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180401-20180430.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180501-20180531.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180601-20180630.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180701-20180731.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180801-20180831.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180901-20180930.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181001-20181031.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181101-20181130.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181201-20181231.nc years_era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20181231.nc\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-547f2c05-5318-4d89-8a80-7d3a48df30e5' class='xr-section-summary-in' type='checkbox' checked><label for='section-547f2c05-5318-4d89-8a80-7d3a48df30e5' class='xr-section-summary' >Attributes: <span>(8)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>CDI :</span></dt><dd>Climate Data Interface version 1.9.6 (http://mpimet.mpg.de/cdi)</dd><dt><span>history :</span></dt><dd>Mon Oct 12 15:04:04 2020: cdo -f nc4 -s -mergetime era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20180131.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180201-20180228.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180301-20180331.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180401-20180430.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180501-20180531.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180601-20180630.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180701-20180731.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180801-20180831.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180901-20180930.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181001-20181031.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181101-20181130.nc era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20181201-20181231.nc years_era5dkrz/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20181231.nc\n",
"Sat Oct 10 04:38:10 2020: cdo -s -setday,1 -settime,000000 -timmean /scratch/k/k204229/work/ERA5l/era5proc_1/work-getSFC-sf00/era5dkrz/ecmwf/ifs/era5/1hr/atmos/prw/r1i1p1/prw_1hr_reanalysis_era5_r1i1p1_20180101-20180131.nc monmean-era5/ecmwf/ifs/era5/mon/atmos/prw/r1i1p1/prw_Amon_reanalysis_era5_r1i1p1_20180101-20180131.nc\n",
"Sat Oct 10 01:10:54 2020: cdo -s -f nc4 -z zip_9 --cmor -invertlat -setgridtype,regular -cmorlite,cmorlite_table.rc E5sf00_1H_2018-01_137 era5dkrz/ecmwf/ifs/era5/1hr/atmos/prw/r1i1p1/prw_1hr_reanalysis_era5_r1i1p1_20180101-20180131.nc</dd><dt><span>institution :</span></dt><dd>European Centre for Medium-Range Weather Forecasts</dd><dt><span>Conventions :</span></dt><dd>CF-1.6</dd><dt><span>tracking_id :</span></dt><dd>d5b13485-16f3-5f65-8dfd-cf03615bcc01</dd><dt><span>creation_date :</span></dt><dd>2020-10-10T01:10:54Z</dd><dt><span>CDO :</span></dt><dd>Climate Data Operators version 1.9.6 (http://mpimet.mpg.de/cdo)</dd><dt><span>license :</span></dt><dd>Contains modified Copernicus Atmosphere Monitoring Service information [2020]. Neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains.</dd></dl></div></li></ul></div></div>"
],
......@@ -1465,7 +1467,7 @@
" license: Contains modified Copernicus Atmosphere Monitoring Servic..."
]
},
"execution_count": 122,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
......@@ -1483,7 +1485,7 @@
},
{
"cell_type": "code",
"execution_count": 123,
"execution_count": 11,
"metadata": {},
"outputs": [
{
......@@ -1850,15 +1852,15 @@
" [nan, nan, nan, ..., nan, nan, nan]])\n",
"Coordinates:\n",
" * lat (lat) float64 -89.78 -89.51 -89.23 -88.95 ... 89.23 89.51 89.78\n",
" * lon (lon) float64 -180.0 -179.7 -179.4 -179.2 ... 179.2 179.4 179.7</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'region'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>lat</span>: 640</li><li><span class='xr-has-index'>lon</span>: 1280</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-69491ec5-586d-4a64-ad70-f167ebd7b452' class='xr-array-in' type='checkbox' checked><label for='section-69491ec5-586d-4a64-ad70-f167ebd7b452' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>nan nan nan nan nan nan nan nan ... nan nan nan nan nan nan nan nan</span></div><div class='xr-array-data'><pre>array([[nan, nan, nan, ..., nan, nan, nan],\n",
" * lon (lon) float64 -180.0 -179.7 -179.4 -179.2 ... 179.2 179.4 179.7</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'region'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>lat</span>: 640</li><li><span class='xr-has-index'>lon</span>: 1280</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-f48c65ed-e72c-4af8-a549-71ddd2ba4443' class='xr-array-in' type='checkbox' checked><label for='section-f48c65ed-e72c-4af8-a549-71ddd2ba4443' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>nan nan nan nan nan nan nan nan ... nan nan nan nan nan nan nan nan</span></div><div class='xr-array-data'><pre>array([[nan, nan, nan, ..., nan, nan, nan],\n",
" [nan, nan, nan, ..., nan, nan, nan],\n",
" [nan, nan, nan, ..., nan, nan, nan],\n",
" ...,\n",
" [nan, nan, nan, ..., nan, nan, nan],\n",
" [nan, nan, nan, ..., nan, nan, nan],\n",
" [nan, nan, nan, ..., nan, nan, nan]])</pre></div></div></li><li class='xr-section-item'><input id='section-52d63062-dce9-48f3-ab61-a88ad220b80f' class='xr-section-summary-in' type='checkbox' checked><label for='section-52d63062-dce9-48f3-ab61-a88ad220b80f' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-89.78 -89.51 ... 89.51 89.78</div><input id='attrs-3cd3e939-b806-49af-8eb0-498366ed82c2' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3cd3e939-b806-49af-8eb0-498366ed82c2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2dc52a57-74ed-4a7b-9f9b-572f0b06b2de' class='xr-var-data-in' type='checkbox'><label for='data-2dc52a57-74ed-4a7b-9f9b-572f0b06b2de' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-89.784877, -89.506203, -89.225883, ..., 89.225883, 89.506203,\n",
" 89.784877])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-180.0 -179.7 ... 179.4 179.7</div><input id='attrs-aa4579d2-33c8-43bb-ae42-c7bf9525802f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-aa4579d2-33c8-43bb-ae42-c7bf9525802f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b95f5afd-393a-41ba-8e83-438c403c3ff4' class='xr-var-data-in' type='checkbox'><label for='data-b95f5afd-393a-41ba-8e83-438c403c3ff4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-180. , -179.71875, -179.4375 , ..., 179.15625, 179.4375 ,\n",
" 179.71875])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-a9f197b5-cd21-4fb9-a424-afa8c7b90bce' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-a9f197b5-cd21-4fb9-a424-afa8c7b90bce' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
" [nan, nan, nan, ..., nan, nan, nan]])</pre></div></div></li><li class='xr-section-item'><input id='section-195fb146-9347-489a-9387-b3a9d740dc9c' class='xr-section-summary-in' type='checkbox' checked><label for='section-195fb146-9347-489a-9387-b3a9d740dc9c' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-89.78 -89.51 ... 89.51 89.78</div><input id='attrs-51009fe1-3aaf-4e00-85b4-c41625047e11' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-51009fe1-3aaf-4e00-85b4-c41625047e11' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8a7ebfc3-266d-4da1-87c0-5653030dbe34' class='xr-var-data-in' type='checkbox'><label for='data-8a7ebfc3-266d-4da1-87c0-5653030dbe34' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-89.784877, -89.506203, -89.225883, ..., 89.225883, 89.506203,\n",
" 89.784877])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-180.0 -179.7 ... 179.4 179.7</div><input id='attrs-b5444342-8b67-4c76-b8bc-253c4107c4dc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b5444342-8b67-4c76-b8bc-253c4107c4dc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-40971a2d-b777-4ee3-b50e-7b87b3900100' class='xr-var-data-in' type='checkbox'><label for='data-40971a2d-b777-4ee3-b50e-7b87b3900100' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-180. , -179.71875, -179.4375 , ..., 179.15625, 179.4375 ,\n",
" 179.71875])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-a0d8de7f-9a60-42ce-a8f3-ec91273a9289' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-a0d8de7f-9a60-42ce-a8f3-ec91273a9289' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.DataArray 'region' (lat: 640, lon: 1280)>\n",
......@@ -1874,13 +1876,16 @@
" * lon (lon) float64 -180.0 -179.7 -179.4 -179.2 ... 179.2 179.4 179.7"
]
},
"execution_count": 123,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"outlines = list(provinces.geometry.values[i] for i in range(0, provinces_arg.shape[0]))\n",
"outlines = list(provinces_arg.geometry.values[i] for i in range(0, provinces_arg.shape[0]))\n",
"id_list = list(provinces_arg['id'].values)\n",
"id_list_unique = set(id_list)\n",
"indexes = [id_list.index(x) for x in id_list_unique]\n",
"countries_mask_poly = regionmask.Regions(name='id',\n",
" numbers=indexes,\n",
" names=provinces_arg.name[indexes],\n",
......@@ -1899,7 +1904,7 @@
},
{
"cell_type": "code",
"execution_count": 143,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
......@@ -1917,7 +1922,7 @@
},
{
"cell_type": "code",
"execution_count": 152,
"execution_count": 13,
"metadata": {
"scrolled": false
},
......@@ -1971,7 +1976,7 @@
},
{
"cell_type": "code",
"execution_count": 145,
"execution_count": 14,
"metadata": {},
"outputs": [
{
......@@ -2008,9 +2013,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "cmorlite",
"display_name": "python3_codesnippets",
"language": "python",
"name": "cmorlite"
"name": "python3_codesnippets"
},
"language_info": {
"codemirror_mode": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment