diff --git a/Tutorials/Animations_with_xmovie.ipynb b/Tutorials/Animations_with_xmovie.ipynb index 0918ec03..f9c9161d 100644 --- a/Tutorials/Animations_with_xmovie.ipynb +++ b/Tutorials/Animations_with_xmovie.ipynb @@ -30,6 +30,13 @@ "import matplotlib.pyplot as plt\n", "from xmovie import Movie\n", "\n", + "import warnings\n", + "warnings.filterwarnings(\n", + " action=\"ignore\",\n", + " category=UserWarning,\n", + " message=r\"No `(vmin|vmax)` provided. Data limits are calculated from input. Depending on the input this can take long. Pass `\\1` to avoid this step\"\n", + ")\n", + "\n", "%matplotlib inline" ] }, @@ -46,7 +53,7 @@ "
\n", "
\n", "

Client

\n", - "

Client-8cdd4376-684c-11ef-b0ac-0000018bfe80

\n", + "

Client-ecec98bc-684e-11ef-b99b-0000018bfe80

\n", " \n", "\n", " \n", @@ -81,7 +88,7 @@ " \n", "
\n", "

LocalCluster

\n", - "

ca120a27

\n", + "

ec239943

\n", "
\n", " \n", "
\n", @@ -118,11 +125,11 @@ "
\n", "
\n", "

Scheduler

\n", - "

Scheduler-a206c7d6-628e-4a3c-8c92-4d84e664ccb7

\n", + "

Scheduler-b62a2ec1-62dd-49a2-acca-a9c5789c4f1d

\n", " \n", " \n", " \n", "
\n", - " Comm: tcp://127.0.0.1:33209\n", + " Comm: tcp://127.0.0.1:37761\n", " \n", " Workers: 8\n", @@ -164,7 +171,7 @@ " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -209,7 +216,7 @@ "
\n", - " Comm: tcp://127.0.0.1:42681\n", + " Comm: tcp://127.0.0.1:45965\n", " \n", " Total threads: 6\n", @@ -172,7 +179,7 @@ "
\n", - " Dashboard: /proxy/39911/status\n", + " Dashboard: /proxy/43745/status\n", " \n", " Memory: 23.57 GiB\n", @@ -180,13 +187,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:37445\n", + " Nanny: tcp://127.0.0.1:37573\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-4oc4wcfa\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-z7vvc3v6\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -254,7 +261,7 @@ "
\n", - " Comm: tcp://127.0.0.1:41075\n", + " Comm: tcp://127.0.0.1:43577\n", " \n", " Total threads: 6\n", @@ -217,7 +224,7 @@ "
\n", - " Dashboard: /proxy/43925/status\n", + " Dashboard: /proxy/33719/status\n", " \n", " Memory: 23.57 GiB\n", @@ -225,13 +232,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:40197\n", + " Nanny: tcp://127.0.0.1:34387\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-woqvfy76\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-ssdtcoj9\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -299,7 +306,7 @@ "
\n", - " Comm: tcp://127.0.0.1:45429\n", + " Comm: tcp://127.0.0.1:35339\n", " \n", " Total threads: 6\n", @@ -262,7 +269,7 @@ "
\n", - " Dashboard: /proxy/42403/status\n", + " Dashboard: /proxy/37237/status\n", " \n", " Memory: 23.57 GiB\n", @@ -270,13 +277,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:44053\n", + " Nanny: tcp://127.0.0.1:44111\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-a3j6lgof\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-9uu9rz5u\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -344,7 +351,7 @@ "
\n", - " Comm: tcp://127.0.0.1:40057\n", + " Comm: tcp://127.0.0.1:38493\n", " \n", " Total threads: 6\n", @@ -307,7 +314,7 @@ "
\n", - " Dashboard: /proxy/38609/status\n", + " Dashboard: /proxy/43211/status\n", " \n", " Memory: 23.57 GiB\n", @@ -315,13 +322,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:38475\n", + " Nanny: tcp://127.0.0.1:36207\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-37g4_mh5\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-n7effj0n\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -389,7 +396,7 @@ "
\n", - " Comm: tcp://127.0.0.1:36671\n", + " Comm: tcp://127.0.0.1:38339\n", " \n", " Total threads: 6\n", @@ -352,7 +359,7 @@ "
\n", - " Dashboard: /proxy/45459/status\n", + " Dashboard: /proxy/36243/status\n", " \n", " Memory: 23.57 GiB\n", @@ -360,13 +367,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:38251\n", + " Nanny: tcp://127.0.0.1:42559\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-y3wx9wmy\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-6bluigyb\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -434,7 +441,7 @@ "
\n", - " Comm: tcp://127.0.0.1:41841\n", + " Comm: tcp://127.0.0.1:33485\n", " \n", " Total threads: 6\n", @@ -397,7 +404,7 @@ "
\n", - " Dashboard: /proxy/44265/status\n", + " Dashboard: /proxy/39303/status\n", " \n", " Memory: 23.57 GiB\n", @@ -405,13 +412,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:33049\n", + " Nanny: tcp://127.0.0.1:43039\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-5wbun33i\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-eu1qsjhk\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -479,7 +486,7 @@ "
\n", - " Comm: tcp://127.0.0.1:35715\n", + " Comm: tcp://127.0.0.1:38409\n", " \n", " Total threads: 6\n", @@ -442,7 +449,7 @@ "
\n", - " Dashboard: /proxy/35159/status\n", + " Dashboard: /proxy/34719/status\n", " \n", " Memory: 23.57 GiB\n", @@ -450,13 +457,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:44153\n", + " Nanny: tcp://127.0.0.1:40669\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-482irclw\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-x1iuvekb\n", "
\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "\n", @@ -528,7 +535,7 @@ "" ], "text/plain": [ - "" + "" ] }, "execution_count": 2, @@ -946,7 +953,7 @@ "Coordinates:\n", " * xt_ocean (xt_ocean) float64 12kB -279.9 -279.6 -279.4 ... 79.38 79.62 79.88\n", " * yt_ocean (yt_ocean) float64 9kB -81.08 -80.97 -80.87 ... 89.74 89.84 89.95\n", - " * time (time) datetime64[ns] 88B 1958-01-14T12:00:00 ... 1958-11-14
\n", - " Comm: tcp://127.0.0.1:44595\n", + " Comm: tcp://127.0.0.1:37389\n", " \n", " Total threads: 6\n", @@ -487,7 +494,7 @@ "
\n", - " Dashboard: /proxy/41297/status\n", + " Dashboard: /proxy/40113/status\n", " \n", " Memory: 23.57 GiB\n", @@ -495,13 +502,13 @@ "
\n", - " Nanny: tcp://127.0.0.1:33003\n", + " Nanny: tcp://127.0.0.1:41493\n", "
\n", - " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-buqdk557\n", + " Local directory: /jobfs/123997726.gadi-pbs/dask-scratch-space/worker-v35hqq89\n", "
\n", + " * time (time) datetime64[ns] 88B 1958-01-14T12:00:00 ... 1958-11-14
\n", " \n", "
\n", " \n", @@ -1062,18 +1069,18 @@ "\n", " \n", " \n", - "
    • xt_ocean
      (xt_ocean)
      float64
      -279.9 -279.6 ... 79.62 79.88
      long_name :
      tcell longitude
      units :
      degrees_E
      cartesian_axis :
      X
      array([-279.875, -279.625, -279.375, ...,   79.375,   79.625,   79.875])
    • yt_ocean
      (yt_ocean)
      float64
      -81.08 -80.97 ... 89.84 89.95
      long_name :
      tcell latitude
      units :
      degrees_N
      cartesian_axis :
      Y
      array([-81.077001, -80.971402, -80.865804, ...,  89.736085,  89.841684,\n",
      -       "        89.947282])
    • time
      (time)
      datetime64[ns]
      1958-01-14T12:00:00 ... 1958-11-14
      long_name :
      time
      cartesian_axis :
      T
      calendar_type :
      GREGORIAN
      bounds :
      time_bounds
      array(['1958-01-14T12:00:00.000000000', '1958-02-13T00:00:00.000000000',\n",
      +       "
    • xt_ocean
      (xt_ocean)
      float64
      -279.9 -279.6 ... 79.62 79.88
      long_name :
      tcell longitude
      units :
      degrees_E
      cartesian_axis :
      X
      array([-279.875, -279.625, -279.375, ...,   79.375,   79.625,   79.875])
    • yt_ocean
      (yt_ocean)
      float64
      -81.08 -80.97 ... 89.84 89.95
      long_name :
      tcell latitude
      units :
      degrees_N
      cartesian_axis :
      Y
      array([-81.077001, -80.971402, -80.865804, ...,  89.736085,  89.841684,\n",
      +       "        89.947282])
    • time
      (time)
      datetime64[ns]
      1958-01-14T12:00:00 ... 1958-11-14
      long_name :
      time
      cartesian_axis :
      T
      calendar_type :
      GREGORIAN
      bounds :
      time_bounds
      array(['1958-01-14T12:00:00.000000000', '1958-02-13T00:00:00.000000000',\n",
              "       '1958-03-14T12:00:00.000000000', '1958-04-14T00:00:00.000000000',\n",
              "       '1958-05-14T12:00:00.000000000', '1958-06-14T00:00:00.000000000',\n",
              "       '1958-07-14T12:00:00.000000000', '1958-08-14T12:00:00.000000000',\n",
              "       '1958-09-14T00:00:00.000000000', '1958-10-14T12:00:00.000000000',\n",
      -       "       '1958-11-14T00:00:00.000000000'], dtype='datetime64[ns]')
    • xt_ocean
      PandasIndex
      PandasIndex(Index([-279.875, -279.625, -279.375, -279.125, -278.875, -278.625, -278.375,\n",
      +       "       '1958-11-14T00:00:00.000000000'], dtype='datetime64[ns]')
    • xt_ocean
      PandasIndex
      PandasIndex(Index([-279.875, -279.625, -279.375, -279.125, -278.875, -278.625, -278.375,\n",
              "       -278.125, -277.875, -277.625,\n",
              "       ...\n",
              "         77.625,   77.875,   78.125,   78.375,   78.625,   78.875,   79.125,\n",
              "         79.375,   79.625,   79.875],\n",
      -       "      dtype='float64', name='xt_ocean', length=1440))
    • yt_ocean
      PandasIndex
      PandasIndex(Index([ -81.0770008338366,  -80.9714022446317,  -80.8658036554268,\n",
      +       "      dtype='float64', name='xt_ocean', length=1440))
    • yt_ocean
      PandasIndex
      PandasIndex(Index([ -81.0770008338366,  -80.9714022446317,  -80.8658036554268,\n",
              "        -80.7602050662219,   -80.654606477017,  -80.5490078878121,\n",
              "        -80.4434092986072, -80.33781070940229, -80.23221212019739,\n",
              "       -80.12661353099249,\n",
      @@ -1082,13 +1089,13 @@
              "        89.31369079182024,  89.41928938102512,  89.52488797023008,\n",
              "          89.630486559435,  89.73608514863992,  89.84168373784476,\n",
              "        89.94728232704986],\n",
      -       "      dtype='float64', name='yt_ocean', length=1080))
    • time
      PandasIndex
      PandasIndex(DatetimeIndex(['1958-01-14 12:00:00', '1958-02-13 00:00:00',\n",
      +       "      dtype='float64', name='yt_ocean', length=1080))
    • time
      PandasIndex
      PandasIndex(DatetimeIndex(['1958-01-14 12:00:00', '1958-02-13 00:00:00',\n",
              "               '1958-03-14 12:00:00', '1958-04-14 00:00:00',\n",
              "               '1958-05-14 12:00:00', '1958-06-14 00:00:00',\n",
              "               '1958-07-14 12:00:00', '1958-08-14 12:00:00',\n",
              "               '1958-09-14 00:00:00', '1958-10-14 12:00:00',\n",
              "               '1958-11-14 00:00:00'],\n",
      -       "              dtype='datetime64[ns]', name='time', freq=None))
  • " + " dtype='datetime64[ns]', name='time', freq=None))
  • " ], "text/plain": [ " Size: 68MB\n", @@ -1192,16 +1199,6 @@ "id": "3556074e-6708-45a6-b9c6-0129065e6f7e", "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.07/lib/python3.10/site-packages/xmovie/core.py:46: UserWarning: No `vmin` provided. Data limits are calculated from input. Depending on the input this can take long. Pass `vmin` to avoid this step\n", - " warnings.warn(\n", - "/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.07/lib/python3.10/site-packages/xmovie/core.py:53: UserWarning: No `vmax` provided. Data limits are calculated from input. Depending on the input this can take long. Pass `vmax` to avoid this step\n", - " warnings.warn(\n" - ] - }, { "data": { "text/plain": [ @@ -1264,7 +1261,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "29aea3711eae4ab9bad703777d338a36", + "model_id": "a916e70da96b4476ae7196c912b71842", "version_major": 2, "version_minor": 0 },