{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "ff019b3c", "metadata": {}, "outputs": [], "source": [ "import earthkit.data\n", "import earthkit.plots" ] }, { "cell_type": "code", "execution_count": 2, "id": "fc20dae0", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "", "version_major": 2, "version_minor": 0 }, "text/plain": [ "madis-maritime.nc: 0%| | 0.00/461k [00:00" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "my_map = earthkit.plots.Map(domain=[-145, -70, 10, 75])\n", "\n", "my_map.scatter(data.to_xarray(), x=\"longitude\", y=\"latitude\", z=\"temperature\", style=style, source_units=\"K\")\n", "\n", "my_map.ocean(zorder=0, color=\"lightgrey\")\n", "my_map.countries(zorder=0, facecolor=\"grey\", edgecolor=\"goldenrod\")\n", "my_map.gridlines()\n", "\n", "my_map.legend(location=\"bottom\")\n", "\n", "my_map.title(\"Marine observations of {variable_name} - {cdlDate.parse_time:%-d %B %Y}\")\n", "\n", "my_map.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 }