From ab432cad1c5555f0a44bee68f38010d91ff5a676 Mon Sep 17 00:00:00 2001
From: Aaron Spring <aaron.spring@mpimet.mpg.de>
Date: Thu, 10 Jun 2021 10:42:31 +0000
Subject: [PATCH] Auto-saving for aaron.spring on branch master from commit
 fb0ceb3

---
 .cookie_iridl                     |  1 +
 .daprc                            |  1 +
 notebooks/data_access/IRIDL.ipynb | 31 ++++++-------------------------
 3 files changed, 8 insertions(+), 25 deletions(-)
 create mode 100644 .cookie_iridl
 create mode 100644 .daprc

diff --git a/.cookie_iridl b/.cookie_iridl
new file mode 100644
index 0000000..b500868
--- /dev/null
+++ b/.cookie_iridl
@@ -0,0 +1 @@
+Set-Cookie: __dlauth_id=6d3f0d342e1bdd448b287481f6d7989673305eeba2fa65fabb2709e2d76101b21ae816ffe0560b1a25ed3c8d0bf8884eab7d4bc2; domain=.iridl.ldeo.columbia.edu
diff --git a/.daprc b/.daprc
new file mode 100644
index 0000000..6670136
--- /dev/null
+++ b/.daprc
@@ -0,0 +1 @@
+HTTP.COOKIEJAR=/work/s2s-ai-challenge-template/.cookie_iridl
diff --git a/notebooks/data_access/IRIDL.ipynb b/notebooks/data_access/IRIDL.ipynb
index f1e11df..c839cc6 100644
--- a/notebooks/data_access/IRIDL.ipynb
+++ b/notebooks/data_access/IRIDL.ipynb
@@ -100,31 +100,13 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 1,
+   "execution_count": 7,
    "metadata": {},
-   "outputs": [
-    {
-     "name": "stderr",
-     "output_type": "stream",
-     "text": [
-      "/opt/conda/lib/python3.8/site-packages/xarray/backends/cfgrib_.py:27: UserWarning: Failed to load cfgrib - most likely there is a problem accessing the ecCodes library. Try `import cfgrib` to get the full error message\n",
-      "  warnings.warn(\n"
-     ]
-    },
-    {
-     "data": {
-      "text/plain": [
-       "<xarray.core.options.set_options at 0x7efe3cb51fd0>"
-      ]
-     },
-     "execution_count": 1,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
     "import xarray as xr\n",
-    "xr.set_options(display_style='text')"
+    "xr.set_options(display_style='text')\n",
+    "import pandas as pd"
    ]
   },
   {
@@ -741,14 +723,13 @@
     }
    ],
    "source": [
-    "import pandas as pd\n",
     "ds = xr.open_dataset(fname).rename({'X':'longitude', 'Y':'latitude', 'S':'forecast_time', 'M':'realization', 'aprod':'tp'}).assign_coords(lead_time=pd.Timedelta('14 d'))\n",
     "ds"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 15,
+   "execution_count": 8,
    "metadata": {},
    "outputs": [
     {
@@ -809,7 +790,7 @@
        "    history:                                        Averaged over L[14.5 days..."
       ]
      },
-     "execution_count": 15,
+     "execution_count": 8,
      "metadata": {},
      "output_type": "execute_result"
     }
-- 
GitLab