{ "cells": [ { "cell_type": "markdown", "id": "f0b6fbde-e638-47c2-8688-d95db59ad6b9", "metadata": {}, "source": [ "## El Niño" ] }, { "cell_type": "code", "execution_count": 1, "id": "82b0540a", "metadata": {}, "outputs": [], "source": [ "import earthkit.data\n", "import earthkit.plots" ] }, { "cell_type": "code", "execution_count": 2, "id": "7ec9a0d6", "metadata": {}, "outputs": [], "source": [ "YEARS = {\n", " 1993: \"Normal conditions\",\n", " 1997: \"El Niño\",\n", " 1998: \"La Niña\",\n", "}\n", "\n", "DOMAIN = [100, 300, -20, 20]" ] }, { "cell_type": "code", "execution_count": 3, "id": "5b6b497a", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2025-02-18 14:26:43,256 INFO [2024-09-26T00:00:00] Watch our [Forum](https://forum.ecmwf.int/) for Announcements, news and other discussed topics.\n", "2025-02-18 14:26:43,256 WARNING [2024-06-16T00:00:00] CDS API syntax is changed and some keys or parameter names may have also changed. To avoid requests failing, please use the \"Show API request code\" tool on the dataset Download Form to check you are using the correct syntax for your API request.\n", "2025-02-18 14:26:43,396 INFO [2024-09-26T00:00:00] Watch our [Forum](https://forum.ecmwf.int/) for Announcements, news and other discussed topics.\n", "2025-02-18 14:26:43,397 WARNING [2024-06-16T00:00:00] CDS API syntax is changed and some keys or parameter names may have also changed. To avoid requests failing, please use the \"Show API request code\" tool on the dataset Download Form to check you are using the correct syntax for your API request.\n", "2025-02-18 14:26:43,591 INFO Request ID is fd9de673-20f8-4eec-baff-eef95783b675\n", "2025-02-18 14:26:43,674 INFO status has been updated to accepted\n", "2025-02-18 14:26:49,198 INFO status has been updated to running\n", "2025-02-18 14:27:16,882 INFO status has been updated to successful\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "", "version_major": 2, "version_minor": 0 }, "text/plain": [ "cbc1fb7e60838d9b40e7e6629b427145.grib: 0%| | 0.00/702k [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "data = earthkit.data.from_source(\n", " \"cds\", \"reanalysis-era5-single-levels-monthly-means\",\n", " {\n", " \"product_type\": \"monthly_averaged_reanalysis\",\n", " \"variable\": \"sea_surface_temperature\",\n", " \"year\": list(YEARS),\n", " \"month\": \"12\",\n", " \"time\": \"00:00\",\n", " \"area\": [20, 100, -20, -60],\n", " \"grid\": [0.25, 0.25],\n", " },\n", ")" ] }, { "cell_type": "code", "execution_count": 4, "id": "f34d06a5", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | centre | \n", "shortName | \n", "typeOfLevel | \n", "level | \n", "dataDate | \n", "dataTime | \n", "stepRange | \n", "dataType | \n", "number | \n", "gridType | \n", "
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "ecmf | \n", "sst | \n", "surface | \n", "0 | \n", "19931201 | \n", "0 | \n", "0 | \n", "an | \n", "0 | \n", "regular_ll | \n", "
| 1 | \n", "ecmf | \n", "sst | \n", "surface | \n", "0 | \n", "19971201 | \n", "0 | \n", "0 | \n", "an | \n", "0 | \n", "regular_ll | \n", "
| 2 | \n", "ecmf | \n", "sst | \n", "surface | \n", "0 | \n", "19981201 | \n", "0 | \n", "0 | \n", "an | \n", "0 | \n", "regular_ll | \n", "