Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent 473ac50 commit f670605
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions intermediate/indexing/advanced-indexing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,9 @@
"metadata": {},
"outputs": [],
"source": [
"obs_lats = [31.81,\n",
" 41.26,\n",
" 22.59,\n",
" 44.47,\n",
" 28.57]\n",
"obs_lats = [31.81, 41.26, 22.59, 44.47, 28.57]\n",
"\n",
"obs_lons = [200.16,\n",
" 201.57,\n",
" 305.54,\n",
" 210.56,\n",
" 226.59]"
"obs_lons = [200.16, 201.57, 305.54, 210.56, 226.59]"
]
},
{
Expand All @@ -260,7 +252,7 @@
"metadata": {},
"outputs": [],
"source": [
"da_air.sel(lat=obs_lats, lon=obs_lats, method=\"nearest\") # -- orthogonal indexing"
"da_air.sel(lat=obs_lats, lon=obs_lats, method=\"nearest\") # -- orthogonal indexing"
]
},
{
Expand Down Expand Up @@ -312,7 +304,7 @@
},
"outputs": [],
"source": [
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\") # -- pointwise indexing"
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\") # -- pointwise indexing"
]
},
{
Expand Down Expand Up @@ -346,8 +338,7 @@
"metadata": {},
"outputs": [],
"source": [
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\").plot(x='time', hue='points');\n",
"\n"
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\").plot(x='time', hue='points');"
]
},
{
Expand Down Expand Up @@ -395,11 +386,6 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -409,8 +395,7 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0"
"pygments_lexer": "ipython3"
},
"toc": {
"base_numbering": 1,
Expand Down

0 comments on commit f670605

Please sign in to comment.