From f7622d702822f988048c695c0719ffda6237418a Mon Sep 17 00:00:00 2001 From: Sandor Kertesz Date: Wed, 18 Dec 2024 09:12:57 +0000 Subject: [PATCH] Fix polytope notebooks --- docs/examples/polytope_polygon.ipynb | 51 +- docs/examples/polytope_polygon_logo.ipynb | 1645 +++++++++-------- docs/examples/polytope_timeseries.ipynb | 281 ++- docs/examples/polytope_vertical_profile.ipynb | 75 +- 4 files changed, 1057 insertions(+), 995 deletions(-) diff --git a/docs/examples/polytope_polygon.ipynb b/docs/examples/polytope_polygon.ipynb index 5c2b866..d040a12 100644 --- a/docs/examples/polytope_polygon.ipynb +++ b/docs/examples/polytope_polygon.ipynb @@ -26,10 +26,10 @@ "name": "stderr", "output_type": "stream", "text": [ - "2024-11-15 13:05:20 - INFO - Key read from /Users/cgr/.polytopeapirc\n", - "2024-11-15 13:05:20 - INFO - Sending request...\n", + "2024-12-18 09:10:21 - INFO - Key read from /Users/cgr/.polytopeapirc\n", + "2024-12-18 09:10:21 - INFO - Sending request...\n", "{'request': 'class: od\\n'\n", - " \"date: '20241114'\\n\"\n", + " 'date: -1\\n'\n", " 'domain: g\\n'\n", " 'expver: 1\\n'\n", " 'feature:\\n'\n", @@ -93,12 +93,13 @@ " \"time: '1200'\\n\"\n", " 'type: pf\\n',\n", " 'verb': 'retrieve'}\n", - "2024-11-15 13:05:20 - INFO - Polytope user key found in session cache for user cgr\n", - "2024-11-15 13:05:21 - INFO - Request accepted. Please poll ./89c86a6d-28ea-4370-9f8e-76b2995241e9 for status\n", - "2024-11-15 13:05:21 - INFO - Polytope user key found in session cache for user cgr\n", - "2024-11-15 13:05:21 - INFO - Checking request status (./89c86a6d-28ea-4370-9f8e-76b2995241e9)...\n", - "2024-11-15 13:05:22 - INFO - The current status of the request is 'processing'\n", - "2024-11-15 13:05:24 - INFO - The current status of the request is 'processed'\n" + "2024-12-18 09:10:21 - INFO - Polytope user key found in session cache for user cgr\n", + "2024-12-18 09:10:21 - INFO - Request accepted. Please poll ./49adba5d-a694-4045-89da-19b07902acd8 for status\n", + "2024-12-18 09:10:21 - INFO - Polytope user key found in session cache for user cgr\n", + "2024-12-18 09:10:21 - INFO - Checking request status (./49adba5d-a694-4045-89da-19b07902acd8)...\n", + "2024-12-18 09:10:21 - INFO - The current status of the request is 'queued'\n", + "2024-12-18 09:10:22 - INFO - The current status of the request is 'processing'\n", + "2024-12-18 09:10:24 - INFO - The current status of the request is 'processed'\n" ] }, { @@ -109,7 +110,7 @@ "version_minor": 0 }, "text/plain": [ - "89c86a6d-28ea-4370-9f8e-76b2995241e9.covjson: 0%| | 0.00/71.2k [00:00
<xarray.Dataset> Size: 53kB\n",
        "Dimensions:    (datetimes: 1, number: 1, steps: 1, points: 1093)\n",
        "Coordinates:\n",
-       "  * datetimes  (datetimes) <U20 80B '2024-11-14T12:00:00Z'\n",
+       "  * datetimes  (datetimes) <U20 80B '2024-12-17T12:00:00Z'\n",
        "  * number     (number) int64 8B 1\n",
        "  * steps      (steps) int64 8B 0\n",
        "  * points     (points) int64 9kB 0 1 2 3 4 5 ... 1087 1088 1089 1090 1091 1092\n",
@@ -498,11 +499,11 @@
        "    y          (points) float64 9kB 351.1 351.2 351.3 ... 351.6 351.7 351.7\n",
        "    z          (points) float64 9kB 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 0.0\n",
        "Data variables:\n",
-       "    2t         (datetimes, number, steps, points) float64 9kB 290.2 ... 287.7\n",
+       "    2t         (datetimes, number, steps, points) float64 9kB 290.9 ... 289.0\n",
        "    ssrd       (datetimes, number, steps, points) float64 9kB 0.0 0.0 ... 0.0\n",
        "Attributes:\n",
        "    class:          od\n",
-       "    Forecast date:  2024-11-14T12:00:00Z\n",
+       "    Forecast date:  2024-12-17T12:00:00Z\n",
        "    domain:         g\n",
        "    expver:         0001\n",
        "    levtype:        sfc\n",
@@ -510,19 +511,19 @@
        "    step:           0\n",
        "    stream:         enfo\n",
        "    type:           pf\n",
-       "    date:           2024-11-14T12:00:00Z
  • class :
    od
    Forecast date :
    2024-12-17T12:00:00Z
    domain :
    g
    expver :
    0001
    levtype :
    sfc
    number :
    1
    step :
    0
    stream :
    enfo
    type :
    pf
    date :
    2024-12-17T12:00:00Z
  • " ], "text/plain": [ " Size: 53kB\n", "Dimensions: (datetimes: 1, number: 1, steps: 1, points: 1093)\n", "Coordinates:\n", - " * datetimes (datetimes) " ] diff --git a/docs/examples/polytope_polygon_logo.ipynb b/docs/examples/polytope_polygon_logo.ipynb index f5b7c6a..01eb1aa 100644 --- a/docs/examples/polytope_polygon_logo.ipynb +++ b/docs/examples/polytope_polygon_logo.ipynb @@ -26,10 +26,10 @@ "name": "stderr", "output_type": "stream", "text": [ - "2024-11-15 13:25:32 - INFO - Key read from /Users/cgr/.polytopeapirc\n", - "2024-11-15 13:25:32 - INFO - Sending request...\n", + "2024-12-18 09:10:11 - INFO - Key read from /Users/cgr/.polytopeapirc\n", + "2024-12-18 09:10:11 - INFO - Sending request...\n", "{'request': 'class: od\\n'\n", - " \"date: '20241114'\\n\"\n", + " 'date: -1\\n'\n", " 'domain: g\\n'\n", " 'expver: 1\\n'\n", " 'feature:\\n'\n", @@ -57,12 +57,13 @@ " \"time: '1200'\\n\"\n", " 'type: pf\\n',\n", " 'verb': 'retrieve'}\n", - "2024-11-15 13:25:32 - INFO - Polytope user key found in session cache for user cgr\n", - "2024-11-15 13:25:33 - INFO - Request accepted. Please poll ./f14804f3-042c-4754-947f-49f6ac973ac4 for status\n", - "2024-11-15 13:25:33 - INFO - Polytope user key found in session cache for user cgr\n", - "2024-11-15 13:25:33 - INFO - Checking request status (./f14804f3-042c-4754-947f-49f6ac973ac4)...\n", - "2024-11-15 13:25:34 - INFO - The current status of the request is 'processing'\n", - "2024-11-15 13:25:35 - INFO - The current status of the request is 'processed'\n" + "2024-12-18 09:10:11 - INFO - Polytope user key found in session cache for user cgr\n", + "2024-12-18 09:10:12 - INFO - Request accepted. Please poll ./cdcfe067-f976-47d3-8015-437dffe0d2f8 for status\n", + "2024-12-18 09:10:12 - INFO - Polytope user key found in session cache for user cgr\n", + "2024-12-18 09:10:12 - INFO - Checking request status (./cdcfe067-f976-47d3-8015-437dffe0d2f8)...\n", + "2024-12-18 09:10:12 - INFO - The current status of the request is 'queued'\n", + "2024-12-18 09:10:13 - INFO - The current status of the request is 'processing'\n", + "2024-12-18 09:10:15 - INFO - The current status of the request is 'processed'\n" ] }, { @@ -73,7 +74,7 @@ "version_minor": 0 }, "text/plain": [ - "f14804f3-042c-4754-947f-49f6ac973ac4.covjson: 0%| | 0.00/5.91k [00:00" ] @@ -2011,7 +2072,7 @@ " \"class\": \"od\",\n", " \"stream\" : \"enfo\",\n", " \"type\" : \"pf\",\n", - " \"date\" : \"20241114\",\n", + " \"date\" : -1,\n", " \"time\" : \"1200\",\n", " \"levtype\" : \"sfc\",\n", " \"expver\" : 1,\n", @@ -2029,8 +2090,8 @@ " request = dict(**request_pattern)\n", " request[\"feature\"] = {\"type\": \"polygon\", \"shape\": shape}\n", "\n", - " ds = ekd.from_source(\"polytope\", \"ecmwf-mars-beta\", request, stream=False, \n", - " address='polytope-test.ecmwf.int').to_xarray()\n", + " ds = ekd.from_source(\"polytope\", \"ecmwf-mars\", request, stream=False, \n", + " address='polytope.ecmwf.int').to_xarray()\n", "\n", " # add the Xarray dataset to the plot\n", " chart.point_cloud(ds['2t'], x=\"x\", y=\"y\",s=0.1)\n", diff --git a/docs/examples/polytope_timeseries.ipynb b/docs/examples/polytope_timeseries.ipynb index f238281..f9d9ddc 100644 --- a/docs/examples/polytope_timeseries.ipynb +++ b/docs/examples/polytope_timeseries.ipynb @@ -23,14 +23,14 @@ "name": "stderr", "output_type": "stream", "text": [ - "2024-11-15 13:34:18 - INFO - Key read from /Users/cgr/.polytopeapirc\n", - "2024-11-15 13:34:18 - INFO - Sending request...\n", + "2024-12-18 09:11:07 - INFO - Key read from /Users/cgr/.polytopeapirc\n", + "2024-12-18 09:11:07 - INFO - Sending request...\n", "{'request': 'class: od\\n'\n", - " \"date: '20241114'\\n\"\n", + " 'date: -1\\n'\n", " 'domain: g\\n'\n", " 'expver: 1\\n'\n", " 'feature:\\n'\n", - " ' axis: step\\n'\n", + " ' axes: step\\n'\n", " ' points:\\n'\n", " ' - - 38.78655345978706\\n'\n", " ' - -9.109280931080349\\n'\n", @@ -43,13 +43,12 @@ " \"time: '0000'\\n\"\n", " 'type: pf\\n',\n", " 'verb': 'retrieve'}\n", - "2024-11-15 13:34:18 - INFO - Polytope user key found in session cache for user cgr\n", - "2024-11-15 13:34:19 - INFO - Request accepted. Please poll ./1b95be4b-fa94-4d00-af0b-ed0fefdaabc2 for status\n", - "2024-11-15 13:34:19 - INFO - Polytope user key found in session cache for user cgr\n", - "2024-11-15 13:34:19 - INFO - Checking request status (./1b95be4b-fa94-4d00-af0b-ed0fefdaabc2)...\n", - "2024-11-15 13:34:19 - INFO - The current status of the request is 'queued'\n", - "2024-11-15 13:34:19 - INFO - The current status of the request is 'processing'\n", - "2024-11-15 13:34:29 - INFO - The current status of the request is 'processed'\n" + "2024-12-18 09:11:07 - INFO - Polytope user key found in session cache for user cgr\n", + "2024-12-18 09:11:07 - INFO - Request accepted. Please poll ./96d99675-364f-45cb-b3f4-e834db746625 for status\n", + "2024-12-18 09:11:07 - INFO - Polytope user key found in session cache for user cgr\n", + "2024-12-18 09:11:07 - INFO - Checking request status (./96d99675-364f-45cb-b3f4-e834db746625)...\n", + "2024-12-18 09:11:07 - INFO - The current status of the request is 'processing'\n", + "2024-12-18 09:11:19 - INFO - The current status of the request is 'processed'\n" ] }, { @@ -60,7 +59,7 @@ "version_minor": 0 }, "text/plain": [ - "1b95be4b-fa94-4d00-af0b-ed0fefdaabc2.covjson: 0%| | 0.00/530k [00:00
  • class :
    od
    Forecast date :
    2024-12-17T00:00:00Z
    domain :
    g
    expver :
    0001
    levtype :
    sfc
    number :
    1
    stream :
    enfo
    type :
    pf
  • " ], "text/plain": [ " Size: 176kB\n", @@ -652,15 +651,15 @@ " * y (y) float64 8B 350.9\n", " * z (z) int64 8B 0\n", " * number (number) int64 400B 1 2 3 4 5 6 7 8 9 ... 43 44 45 46 47 48 49 50\n", - " * datetime (datetime)
  • class :
    od
    Forecast date :
    2024-12-17T00:00:00Z
    domain :
    g
    expver :
    0001
    levelist :
    1
    levtype :
    pl
    number :
    1
    stream :
    enfo
    type :
    pf
  • " ], "text/plain": [ " Size: 640B\n", @@ -484,15 +485,15 @@ " * x (x) float64 8B 38.91\n", " * y (y) float64 8B 350.9\n", " * number (number) int64 8B 1\n", - " * datetime (datetime)