diff --git a/cubed-blockwise-example.ipynb b/cubed-blockwise-example.ipynb index 7b43b777..c306fba8 100644 --- a/cubed-blockwise-example.ipynb +++ b/cubed-blockwise-example.ipynb @@ -2,8 +2,8 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "id": "8c33b843-dbaf-4320-a4ae-868b732a1171", + "execution_count": null, + "id": "0", "metadata": {}, "outputs": [], "source": [ @@ -14,550 +14,15 @@ "import cubed.array_api as xp\n", "import numpy as np\n", "import pandas as pd\n", - "import xarray as xr\n", - "\n", - "import flox.xarray" + "import xarray as xr" ] }, { "cell_type": "code", - "execution_count": 2, - "id": "674c8844-f411-4a1a-b055-894b954639a4", + "execution_count": null, + "id": "1", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
<xarray.Dataset> Size: 363MB\n", - "Dimensions: (time: 8760, latitude: 72, longitude: 144)\n", - "Coordinates:\n", - " * time (time) datetime64[ns] 70kB 2021-01-01 ... 2021-12-31T23:00:00\n", - "Dimensions without coordinates: latitude, longitude\n", - "Data variables:\n", - " tp (time, latitude, longitude) float32 363MB cubed.Array<chunksize=(744, 5, 144)>
<xarray.DataArray 'tp' (time: 12, latitude: 72, longitude: 144)> Size: 995kB\n", - "cubed.Array<array-006, shape=(12, 72, 144), dtype=float64, chunks=((1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2), (144,))>\n", - "Coordinates:\n", - " * time (time) datetime64[ns] 96B 2021-01-31 2021-02-28 ... 2021-12-31\n", - "Dimensions without coordinates: latitude, longitude
<xarray.DataArray 'tp' (time: 12, latitude: 72, longitude: 144)> Size: 995kB\n", - "array([[[744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " ...,\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.]],\n", - "\n", - " [[672., 672., 672., ..., 672., 672., 672.],\n", - " [672., 672., 672., ..., 672., 672., 672.],\n", - " [672., 672., 672., ..., 672., 672., 672.],\n", - " ...,\n", - " [672., 672., 672., ..., 672., 672., 672.],\n", - " [672., 672., 672., ..., 672., 672., 672.],\n", - " [672., 672., 672., ..., 672., 672., 672.]],\n", - "\n", - " [[744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " ...,\n", - "...\n", - " ...,\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.]],\n", - "\n", - " [[720., 720., 720., ..., 720., 720., 720.],\n", - " [720., 720., 720., ..., 720., 720., 720.],\n", - " [720., 720., 720., ..., 720., 720., 720.],\n", - " ...,\n", - " [720., 720., 720., ..., 720., 720., 720.],\n", - " [720., 720., 720., ..., 720., 720., 720.],\n", - " [720., 720., 720., ..., 720., 720., 720.]],\n", - "\n", - " [[744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " ...,\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.],\n", - " [744., 744., 744., ..., 744., 744., 744.]]])\n", - "Coordinates:\n", - " * time (time) datetime64[ns] 96B 2021-01-31 2021-02-28 ... 2021-12-31\n", - "Dimensions without coordinates: latitude, longitude