{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "dbe2ced7-b653-42e9-8d05-d871182daf9f", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "", "version_major": 2, "version_minor": 0 }, "text/plain": [ "healpix-h128-nested-2t.grib: 0%| | 0.00/385k [00:00" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import earthkit.data\n", "import earthkit.plots\n", "import numpy as np\n", "\n", "data = earthkit.data.from_source(\"sample\", \"healpix-h128-nested-2t.grib\")\n", "\n", "chart = earthkit.plots.Map(domain=[\"France\", \"Spain\"])\n", "\n", "chart.contourf(data, levels=np.arange(0, 20, 0.5), colors=\"Spectral_r\", units=\"celsius\")\n", "\n", "chart.title()\n", "chart.legend()\n", "\n", "chart.coastlines()\n", "\n", "chart.show()" ] } ], "metadata": { "kernelspec": { "display_name": "DEVELOP", "language": "python", "name": "develop" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.6" } }, "nbformat": 4, "nbformat_minor": 5 }