{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import xarray as xr\n", "import cdsapi" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2025-01-21 10:17:29,931 INFO [2024-09-28T00:00:00] **Welcome to the New Climate Data Store (CDS)!** This new system is in its early days of full operations and still undergoing enhancements and fine tuning. Some disruptions are to be expected. Your \n", "[feedback](https://jira.ecmwf.int/plugins/servlet/desk/portal/1/create/202) is key to improve the user experience on the new CDS for the benefit of everyone. Thank you.\n", "2025-01-21 10:17:29,932 INFO [2024-09-26T00:00:00] Watch our [Forum](https://forum.ecmwf.int/) for Announcements, news and other discussed topics.\n", "2025-01-21 10:17:29,933 INFO [2024-09-16T00:00:00] Remember that you need to have an ECMWF account to use the new CDS. **Your old CDS credentials will not work in new CDS!**\n", "2025-01-21 10:17:29,933 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" ] } ], "source": [ "client = cdsapi.Client()" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "grid = [0.75, 0.75]\n", "area = [90, -180+0.75/2, -90, 180]\n", "year = ['{}'.format(y) for y in range(1979, 2025)]\n", "month = ['{:02d}'.format(m) for m in range(1, 13)]" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "dl_dir = 'tmp/'" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Invariant" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2025-01-21 10:23:01,417 INFO Request ID is 154c2994-9ff9-4941-bf4a-983e335ee10f\n", "2025-01-21 10:23:01,526 INFO status has been updated to accepted\n", "2025-01-21 10:23:15,417 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": [ "5922a90b4ae2639fa1b8f3f8ee440dfd.nc: 0%| | 0.00/434k [00:00