diff --git a/docs/Service/Examples/vertical_profile_example.ipynb b/docs/Service/Examples/vertical_profile_example.ipynb index eb442a09..c9c2f028 100644 --- a/docs/Service/Examples/vertical_profile_example.ipynb +++ b/docs/Service/Examples/vertical_profile_example.ipynb @@ -9,56 +9,9 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2024-10-30 10:01:13 - INFO - Key read from /home/maaw/.polytopeapirc\n", - "2024-10-30 10:01:13 - INFO - Sending request...\n", - "{'request': 'class: od\\n'\n", - " \"date: '20241029'\\n\"\n", - " 'domain: g\\n'\n", - " 'expver: 0079\\n'\n", - " 'feature:\\n'\n", - " ' points:\\n'\n", - " ' - - 38.9\\n'\n", - " ' - -9.1\\n'\n", - " ' type: verticalprofile\\n'\n", - " 'levelist: 1/to/1000\\n'\n", - " 'levtype: pl\\n'\n", - " \"number: '1'\\n\"\n", - " 'param: 203/133\\n'\n", - " \"step: '0'\\n\"\n", - " 'stream: enfo\\n'\n", - " \"time: '0000'\\n\"\n", - " 'type: pf\\n',\n", - " 'verb': 'retrieve'}\n", - "2024-10-30 10:01:13 - INFO - Polytope user key found in session cache for user maaw\n", - "2024-10-30 10:01:14 - INFO - Request accepted. Please poll ./33402768-7a2f-44a3-b640-d4401a982753 for status\n", - "2024-10-30 10:01:14 - INFO - Polytope user key found in session cache for user maaw\n", - "2024-10-30 10:01:14 - INFO - Checking request status (./33402768-7a2f-44a3-b640-d4401a982753)...\n", - "2024-10-30 10:01:14 - INFO - The current status of the request is 'processing'\n", - "2024-10-30 10:01:17 - INFO - The current status of the request is 'processed'\n" - ] - }, - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "17bab75834ad44edb53400bee7cd2859", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "33402768-7a2f-44a3-b640-d4401a982753.grib: 0%| | 0.00/3.31k [00:00, ?B/s]" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "import earthkit.data\n", "\n", @@ -88,453 +41,43 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Convert to xarray" + "## Visualise \n", + "\n", + "The following visualisation uses [earthkit-plots](https://earthkit-plots.readthedocs.io/en/latest/).\n", + "\n", + "
chart.show(renderer=\"png\")
, which removes all interactivity and only shows a PNG image render.renderer=\"png\"
argument from each call to chart.show()
.\n",
+ "<xarray.Dataset>\n", - "Dimensions: (x: 1, y: 1, t: 1, number: 1, z: 22)\n", - "Coordinates:\n", - " * x (x) float64 38.91\n", - " * y (y) float64 350.9\n", - " * t (t) <U20 '2024-09-18T00:00:00Z'\n", - " * number (number) int64 1\n", - " * z (z) int64 1 2 3 5 7 10 20 30 ... 300 400 500 600 700 850 925 1000\n", - "Data variables:\n", - " q (x, y, t, number, z) float64 4.112e-06 4.091e-06 ... 0.006511\n", - " o3 (x, y, t, number, z) float64 4.657e-06 8.39e-06 ... 7.385e-08\n", - "Attributes:\n", - " class: od\n", - " domain: g\n", - " expver: 0079\n", - " levtype: pl\n", - " number: 1\n", - " stream: enfo\n", - " type: pf