{ "cells": [ { "cell_type": "markdown", "id": "9e677343", "metadata": {}, "source": [ "# Remapping a dataset to HEALPix\n", "\n", "In this tutorial we will remap a dataset from the native ICON grid to HEALPix.\n", "The dataset used as an example is from the EERIE project and is available online.\n", "It consists of five 2d variables and covers 23 years with a 6 hour time step." ] }, { "cell_type": "code", "execution_count": 1, "id": "fa0f8f8e", "metadata": { "execution": { "iopub.execute_input": "2024-12-16T08:26:26.933441Z", "iopub.status.busy": "2024-12-16T08:26:26.933177Z", "iopub.status.idle": "2024-12-16T08:26:29.334486Z", "shell.execute_reply": "2024-12-16T08:26:29.334128Z", "shell.execute_reply.started": "2024-12-16T08:26:26.933427Z" } }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 5TB\n", "Dimensions: (ncells: 5242880, height: 1, height_2: 1, time: 46752)\n", "Coordinates:\n", " cell_sea_land_mask (ncells) int32 21MB dask.array<chunksize=(5242880,), meta=np.ndarray>\n", " * height (height) float64 8B 10.0\n", " * height_2 (height_2) float64 8B 2.0\n", " lat (ncells) float64 42MB dask.array<chunksize=(5242880,), meta=np.ndarray>\n", " lon (ncells) float64 42MB dask.array<chunksize=(5242880,), meta=np.ndarray>\n", " * time (time) datetime64[ns] 374kB 1991-01-01T05:59:00 ... 2...\n", "Dimensions without coordinates: ncells\n", "Data variables:\n", " hus2m (time, height_2, ncells) float32 980GB dask.array<chunksize=(1, 1, 5242880), meta=np.ndarray>\n", " psl (time, ncells) float32 980GB dask.array<chunksize=(1, 5242880), meta=np.ndarray>\n", " ts (time, ncells) float32 980GB dask.array<chunksize=(1, 5242880), meta=np.ndarray>\n", " uas (time, height, ncells) float32 980GB dask.array<chunksize=(1, 1, 5242880), meta=np.ndarray>\n", " vas (time, height, ncells) float32 980GB dask.array<chunksize=(1, 1, 5242880), meta=np.ndarray>\n", "Attributes: (12/30)\n", " Conventions: CF-1.7 CMIP-6.2\n", " activity_id: EERIE\n", " data_specs_version: 01.00.32\n", " forcing_index: 1\n", " initialization_index: 1\n", " license: EERIE model data produced by MPI-M is licensed und...\n", " ... ...\n", " parent_experiment_id: eerie-spinup-1950\n", " parent_activity_id: EERIE\n", " sub_experiment_id: none\n", " experiment: coupled control with fixed 1950's forcing (HighRes...\n", " source: ICON-ESM-ER (2023): \\naerosol: none, prescribed MA...\n", " institution: Max Planck Institute for Meteorology, Hamburg 2014...
<xarray.Dataset> Size: 3TB\n", "Dimensions: (time: 46752, height_2: 1, cell: 3145728, height: 1)\n", "Coordinates:\n", " * height (height) float64 8B 10.0\n", " * height_2 (height_2) float64 8B 2.0\n", " * time (time) datetime64[ns] 374kB 1991-01-01T05:59:00 ... 2022-12-31T...\n", "Dimensions without coordinates: cell\n", "Data variables:\n", " hus2m (time, height_2, cell) float32 588GB dask.array<chunksize=(1, 1, 3145728), meta=np.ndarray>\n", " psl (time, cell) float32 588GB dask.array<chunksize=(1, 3145728), meta=np.ndarray>\n", " ts (time, cell) float32 588GB dask.array<chunksize=(1, 3145728), meta=np.ndarray>\n", " uas (time, height, cell) float32 588GB dask.array<chunksize=(1, 1, 3145728), meta=np.ndarray>\n", " vas (time, height, cell) float32 588GB dask.array<chunksize=(1, 1, 3145728), meta=np.ndarray>\n", "Attributes: (12/30)\n", " Conventions: CF-1.7 CMIP-6.2\n", " activity_id: EERIE\n", " data_specs_version: 01.00.32\n", " forcing_index: 1\n", " initialization_index: 1\n", " license: EERIE model data produced by MPI-M is licensed und...\n", " ... ...\n", " parent_experiment_id: eerie-spinup-1950\n", " parent_activity_id: EERIE\n", " sub_experiment_id: none\n", " experiment: coupled control with fixed 1950's forcing (HighRes...\n", " source: ICON-ESM-ER (2023): \\naerosol: none, prescribed MA...\n", " institution: Max Planck Institute for Meteorology, Hamburg 2014...