diff --git a/intermediate/indexing/advanced-indexing.ipynb b/intermediate/indexing/advanced-indexing.ipynb index 43380b14..2ede75cd 100644 --- a/intermediate/indexing/advanced-indexing.ipynb +++ b/intermediate/indexing/advanced-indexing.ipynb @@ -907,13 +907,6 @@ " The output of orthogonal indexing is a 3x3 array, while the output of vectorized indexing is a 1D array." ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "The principle of outer or orthogonal indexing is that the result mirrors the effect of independently indexing along each dimension with integer or boolean arrays, treating both the indexed and indexing arrays as one-dimensional." - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -1818,7 +1811,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 51, "metadata": { "tags": [] }, @@ -2216,7 +2209,7 @@ " 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)
  • long_name :
    4xDaily Air temperature at sigma level 995
    units :
    degK
    precision :
    2
    GRIB_id :
    11
    GRIB_name :
    TMP
    var_desc :
    Air temperature
    dataset :
    NMC Reanalysis
    level_desc :
    Surface
    statistic :
    Individual Obs
    parent_stat :
    Other
    actual_range :
    [185.16 322.1 ]
  • " ], "text/plain": [ "\n", @@ -2283,7 +2276,7 @@ "Attributes: (11)" ] }, - "execution_count": 41, + "execution_count": 51, "metadata": {}, "output_type": "execute_result" } @@ -2295,18 +2288,6 @@ "da_air.sel(lat=target_lat, lon=target_lon, method=\"nearest\") # -- orthogonal indexing" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "target_lat = xr.DataArray([31, 41, 42, 42], dims=\"degrees_north\")\n", - "target_lon = xr.DataArray([200, 201, 202, 205], dims=\"degrees_east\")\n", - "\n", - "da.sel(lat=target_lat, lon=target_lon, method=\"nearest\") # -- orthogonal indexing" - ] - }, { "cell_type": "markdown", "metadata": {},