diff --git a/intermediate/indexing/advanced-indexing.ipynb b/intermediate/indexing/advanced-indexing.ipynb index a5a8095e..9950e621 100644 --- a/intermediate/indexing/advanced-indexing.ipynb +++ b/intermediate/indexing/advanced-indexing.ipynb @@ -33,24 +33,9 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "array([[ 1, 2, 3, 4, 5],\n", - " [ 6, 7, 8, 9, 10],\n", - " [11, 12, 13, 14, 15],\n", - " [16, 17, 18, 19, 20],\n", - " [21, 22, 23, 24, 25]])" - ] - }, - "execution_count": 1, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "import numpy as np\n", "\n", @@ -68,822 +53,32 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
<xarray.DataArray (x: 5, y: 5)>\n", - "array([[ 1, 2, ..., 4, 5],\n", - " [ 6, 7, ..., 9, 10],\n", - " ...,\n", - " [16, 17, ..., 19, 20],\n", - " [21, 22, ..., 24, 25]])\n", - "Dimensions without coordinates: x, y
<xarray.DataArray (dim_0: 3, dim_1: 3)>\n", - "array([[ 1, 3, 5],\n", - " [11, 13, 15],\n", - " [21, 23, 25]])\n", - "Dimensions without coordinates: dim_0, dim_1
<xarray.Dataset>\n", - "Dimensions: (lat: 25, time: 2920, lon: 53)\n", - "Coordinates:\n", - " * lat (lat) float32 75.0 72.5 70.0 67.5 65.0 ... 25.0 22.5 20.0 17.5 15.0\n", - " * lon (lon) float32 200.0 202.5 205.0 207.5 ... 322.5 325.0 327.5 330.0\n", - " * time (time) datetime64[ns] 2013-01-01 ... 2014-12-31T18:00:00\n", - "Data variables:\n", - " air (time, lat, lon) float32 241.2 242.5 243.5 ... 296.5 296.2 295.7\n", - "Attributes: (5)
<xarray.DataArray 'air' (lat: 4, lon: 3)>\n", - "array([[249.79999, 243.09999, 242.39 ],\n", - " [274.29 , 271.79 , 270.6 ],\n", - " [277.4 , 280.6 , 280.9 ],\n", - " [283.19998, 285.5 , 285.9 ]], dtype=float32)\n", - "Coordinates:\n", - " * lat (lat) float32 70.0 65.0 50.0 42.5\n", - " * lon (lon) float32 202.5 215.0 217.5\n", - " time datetime64[ns] 2013-01-01\n", - "Attributes: (11)
<xarray.DataArray 'air' (time: 2920, degrees_north: 4, degrees_east: 4)>\n", - "array([[[293.1 , 293.1 , 293.29 , 293.29 ],\n", - " [284.6 , 284.6 , 284.9 , 284.19998],\n", - " [282.79 , 282.79 , 283.19998, 282.6 ],\n", - " [282.79 , 282.79 , 283.19998, 282.6 ]],\n", - "\n", - " [[293.19998, 293.19998, 293.9 , 294.19998],\n", - " [283.29 , 283.29 , 285.19998, 285.19998],\n", - " [281.4 , 281.4 , 282.79 , 283.5 ],\n", - " [281.4 , 281.4 , 282.79 , 283.5 ]],\n", - "\n", - " ...,\n", - "\n", - " [[288.29 , 288.29 , 289.19 , 290.79 ],\n", - " [282.09 , 282.09 , 281.59 , 282.38998],\n", - " [280.99 , 280.99 , 280.38998, 280.59 ],\n", - " [280.99 , 280.99 , 280.38998, 280.59 ]],\n", - "\n", - " [[289.49 , 289.49 , 290.38998, 291.59 ],\n", - " [282.09 , 282.09 , 281.99 , 283.09 ],\n", - " [281.38998, 281.38998, 280.59 , 280.99 ],\n", - " [281.38998, 281.38998, 280.59 , 280.99 ]]], dtype=float32)\n", - "Coordinates:\n", - " lat (degrees_north) float32 30.0 40.0 42.5 42.5\n", - " lon (degrees_east) float32 200.0 200.0 202.5 205.0\n", - " * time (time) datetime64[ns] 2013-01-01 ... 2014-12-31T18:00:00\n", - "Dimensions without coordinates: degrees_north, degrees_east\n", - "Attributes: (11)
<xarray.DataArray (points: 4)>\n", - "array([31, 41, 42, 42])\n", - "Dimensions without coordinates: points
<xarray.DataArray (points: 4)>\n", - "array([200, 201, 202, 205])\n", - "Dimensions without coordinates: points
<xarray.DataArray 'air' (time: 2920, points: 4)>\n", - "array([[293.1 , 284.6 , 283.19998, 282.6 ],\n", - " [293.19998, 283.29 , 282.79 , 283.5 ],\n", - " ...,\n", - " [288.29 , 282.09 , 280.38998, 280.59 ],\n", - " [289.49 , 282.09 , 280.59 , 280.99 ]], dtype=float32)\n", - "Coordinates:\n", - " lat (points) float32 30.0 40.0 42.5 42.5\n", - " lon (points) float32 200.0 200.0 202.5 205.0\n", - " * time (time) datetime64[ns] 2013-01-01 ... 2014-12-31T18:00:00\n", - "Dimensions without coordinates: points\n", - "Attributes: (11)
<xarray.DataArray 'air' (time: 2920, lat: 3, points: 4)>\n", - "array([[[296.6 , 296.6 , 296.19998, 296.4 ],\n", - " [293.1 , 293.1 , 293.29 , 293.29 ],\n", - " [284.6 , 284.6 , 284.9 , 284.19998]],\n", - "\n", - " [[296.4 , 296.4 , 295.9 , 296.19998],\n", - " [293.19998, 293.19998, 293.9 , 294.19998],\n", - " [283.29 , 283.29 , 285.19998, 285.19998]],\n", - "\n", - " ...,\n", - "\n", - " [[293.69 , 293.69 , 293.88998, 295.38998],\n", - " [288.29 , 288.29 , 289.19 , 290.79 ],\n", - " [282.09 , 282.09 , 281.59 , 282.38998]],\n", - "\n", - " [[293.79 , 293.79 , 293.69 , 295.09 ],\n", - " [289.49 , 289.49 , 290.38998, 291.59 ],\n", - " [282.09 , 282.09 , 281.99 , 283.09 ]]], dtype=float32)\n", - "Coordinates:\n", - " * lat (lat) float32 20.0 30.0 40.0\n", - " lon (points) float32 200.0 200.0 202.5 205.0\n", - " * time (time) datetime64[ns] 2013-01-01 ... 2014-12-31T18:00:00\n", - "Dimensions without coordinates: points\n", - "Attributes: (11)