Skip to content

Commit f670605

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 473ac50 commit f670605

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

intermediate/indexing/advanced-indexing.ipynb

+6-21
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,9 @@
234234
"metadata": {},
235235
"outputs": [],
236236
"source": [
237-
"obs_lats = [31.81,\n",
238-
" 41.26,\n",
239-
" 22.59,\n",
240-
" 44.47,\n",
241-
" 28.57]\n",
237+
"obs_lats = [31.81, 41.26, 22.59, 44.47, 28.57]\n",
242238
"\n",
243-
"obs_lons = [200.16,\n",
244-
" 201.57,\n",
245-
" 305.54,\n",
246-
" 210.56,\n",
247-
" 226.59]"
239+
"obs_lons = [200.16, 201.57, 305.54, 210.56, 226.59]"
248240
]
249241
},
250242
{
@@ -260,7 +252,7 @@
260252
"metadata": {},
261253
"outputs": [],
262254
"source": [
263-
"da_air.sel(lat=obs_lats, lon=obs_lats, method=\"nearest\") # -- orthogonal indexing"
255+
"da_air.sel(lat=obs_lats, lon=obs_lats, method=\"nearest\") # -- orthogonal indexing"
264256
]
265257
},
266258
{
@@ -312,7 +304,7 @@
312304
},
313305
"outputs": [],
314306
"source": [
315-
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\") # -- pointwise indexing"
307+
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\") # -- pointwise indexing"
316308
]
317309
},
318310
{
@@ -346,8 +338,7 @@
346338
"metadata": {},
347339
"outputs": [],
348340
"source": [
349-
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\").plot(x='time', hue='points');\n",
350-
"\n"
341+
"da_air.sel(lat=lat_points, lon=lon_points, method=\"nearest\").plot(x='time', hue='points');"
351342
]
352343
},
353344
{
@@ -395,11 +386,6 @@
395386
}
396387
],
397388
"metadata": {
398-
"kernelspec": {
399-
"display_name": "Python 3 (ipykernel)",
400-
"language": "python",
401-
"name": "python3"
402-
},
403389
"language_info": {
404390
"codemirror_mode": {
405391
"name": "ipython",
@@ -409,8 +395,7 @@
409395
"mimetype": "text/x-python",
410396
"name": "python",
411397
"nbconvert_exporter": "python",
412-
"pygments_lexer": "ipython3",
413-
"version": "3.9.0"
398+
"pygments_lexer": "ipython3"
414399
},
415400
"toc": {
416401
"base_numbering": 1,

0 commit comments

Comments
 (0)