diff --git a/.cookie_iridl b/.cookie_iridl new file mode 100644 index 0000000000000000000000000000000000000000..b500868d742e6e75cd2caa278fea4c06a52608f0 --- /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 0000000000000000000000000000000000000000..66701367c77725f55d297a907b84fcf05d18180a --- /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 f1e11dfd484a232188b6ea8696652d5d4f04d8b7..c839cc64008901f5f96ea29f95a48c47388c9291 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" }