{ "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-11-18T14:47:02.733673Z", "iopub.status.busy": "2024-11-18T14:47:02.733008Z", "iopub.status.idle": "2024-11-18T14:47:07.087984Z", "shell.execute_reply": "2024-11-18T14:47:07.087651Z", "shell.execute_reply.started": "2024-11-18T14:47:02.733625Z" } }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 4TB\n", "Dimensions: (ncells: 5242880, height: 1, height_2: 1, time: 33604)\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] 269kB 1990-12-31T23:59:00 ... 2...\n", "Dimensions without coordinates: ncells\n", "Data variables:\n", " hus2m (time, height_2, ncells) float32 705GB dask.array<chunksize=(1, 1, 5242880), meta=np.ndarray>\n", " psl (time, ncells) float32 705GB dask.array<chunksize=(1, 5242880), meta=np.ndarray>\n", " ts (time, ncells) float32 705GB dask.array<chunksize=(1, 5242880), meta=np.ndarray>\n", " uas (time, height, ncells) float32 705GB dask.array<chunksize=(1, 1, 5242880), meta=np.ndarray>\n", " vas (time, height, ncells) float32 705GB dask.array<chunksize=(1, 1, 5242880), meta=np.ndarray>
<xarray.Dataset> Size: 2TB\n", "Dimensions: (time: 33604, 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] 269kB 1990-12-31T23:59:00 ... 2013-12-31T...\n", "Dimensions without coordinates: cell\n", "Data variables:\n", " hus2m (time, height_2, cell) float32 423GB dask.array<chunksize=(1, 1, 3145728), meta=np.ndarray>\n", " psl (time, cell) float32 423GB dask.array<chunksize=(1, 3145728), meta=np.ndarray>\n", " ts (time, cell) float32 423GB dask.array<chunksize=(1, 3145728), meta=np.ndarray>\n", " uas (time, height, cell) float32 423GB dask.array<chunksize=(1, 1, 3145728), meta=np.ndarray>\n", " vas (time, height, cell) float32 423GB dask.array<chunksize=(1, 1, 3145728), meta=np.ndarray>