|
234 | 234 | "metadata": {},
|
235 | 235 | "outputs": [],
|
236 | 236 | "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", |
242 | 238 | "\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]" |
248 | 240 | ]
|
249 | 241 | },
|
250 | 242 | {
|
|
260 | 252 | "metadata": {},
|
261 | 253 | "outputs": [],
|
262 | 254 | "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" |
264 | 256 | ]
|
265 | 257 | },
|
266 | 258 | {
|
|
312 | 304 | },
|
313 | 305 | "outputs": [],
|
314 | 306 | "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" |
316 | 308 | ]
|
317 | 309 | },
|
318 | 310 | {
|
|
346 | 338 | "metadata": {},
|
347 | 339 | "outputs": [],
|
348 | 340 | "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');" |
351 | 342 | ]
|
352 | 343 | },
|
353 | 344 | {
|
|
395 | 386 | }
|
396 | 387 | ],
|
397 | 388 | "metadata": {
|
398 |
| - "kernelspec": { |
399 |
| - "display_name": "Python 3 (ipykernel)", |
400 |
| - "language": "python", |
401 |
| - "name": "python3" |
402 |
| - }, |
403 | 389 | "language_info": {
|
404 | 390 | "codemirror_mode": {
|
405 | 391 | "name": "ipython",
|
|
409 | 395 | "mimetype": "text/x-python",
|
410 | 396 | "name": "python",
|
411 | 397 | "nbconvert_exporter": "python",
|
412 |
| - "pygments_lexer": "ipython3", |
413 |
| - "version": "3.9.0" |
| 398 | + "pygments_lexer": "ipython3" |
414 | 399 | },
|
415 | 400 | "toc": {
|
416 | 401 | "base_numbering": 1,
|
|
0 commit comments