Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·2c9e041d87b59d3b09ac5f69acfd0e42·5277036·doc·optional·python-xarray-doc_2023.01.0-1.1_all.deb |
2 | ·6e5f6af35de770365644ec5792cfe64e·630312·python·optional·python3-xarray_2023.01.0-1.1_all.deb | 2 | ·6e5f6af35de770365644ec5792cfe64e·630312·python·optional·python3-xarray_2023.01.0-1.1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2023-02-19·00:50:57.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-02-19·00:50:57.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····62 | 2 | -rw-r--r--···0········0········0·····6248·2023-02-19·00:50:57.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··52705 | 3 | -rw-r--r--···0········0········0··5270596·2023-02-19·00:50:57.000000·data.tar.xz |
Offset 233, 31 lines modified | Offset 233, 31 lines modified | ||
233 | -rw-r--r--···0·root·········(0)·root·········(0)·····5097·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/api-hidden.html | 233 | -rw-r--r--···0·root·········(0)·root·········(0)·····5097·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/api-hidden.html |
234 | -rw-r--r--···0·root·········(0)·root·········(0)····17503·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/api.html | 234 | -rw-r--r--···0·root·········(0)·root·········(0)····17503·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/api.html |
235 | -rw-r--r--···0·root·········(0)·root·········(0)····81125·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/contributing.html | 235 | -rw-r--r--···0·root·········(0)·root·········(0)····81125·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/contributing.html |
236 | -rw-r--r--···0·root·········(0)·root·········(0)·····7040·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/developers-meeting.html | 236 | -rw-r--r--···0·root·········(0)·root·········(0)·····7040·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/developers-meeting.html |
237 | -rw-r--r--···0·root·········(0)·root·········(0)····19841·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/ecosystem.html | 237 | -rw-r--r--···0·root·········(0)·root·········(0)····19841·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/ecosystem.html |
238 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ | 238 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ |
239 | -rw-r--r--···0·root·········(0)·root·········(0)···108934·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html | 239 | -rw-r--r--···0·root·········(0)·root·········(0)···108934·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html |
240 | -rw-r--r--···0·root·········(0)·root·········(0)·····651 | 240 | -rw-r--r--···0·root·········(0)·root·········(0)·····6518·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz |
241 | -rw-r--r--···0·root·········(0)·root·········(0)····45795·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html | 241 | -rw-r--r--···0·root·········(0)·root·········(0)····45795·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html |
242 | -rw-r--r--···0·root·········(0)·root·········(0)····240 | 242 | -rw-r--r--···0·root·········(0)·root·········(0)····24061·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz |
243 | -rw-r--r--···0·root·········(0)·root·········(0)···128905·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html | 243 | -rw-r--r--···0·root·········(0)·root·········(0)···128905·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html |
244 | -rw-r--r--···0·root·········(0)·root·········(0)·····95 | 244 | -rw-r--r--···0·root·········(0)·root·········(0)·····9531·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz |
245 | -rw-r--r--···0·root·········(0)·root·········(0)····36809·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.html | 245 | -rw-r--r--···0·root·········(0)·root·········(0)····36809·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.html |
246 | -rw-r--r--···0·root·········(0)·root·········(0)····2176 | 246 | -rw-r--r--···0·root·········(0)·root·········(0)····21769·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz |
247 | -rw-r--r--···0·root·········(0)·root·········(0)····22771·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.html | 247 | -rw-r--r--···0·root·········(0)·root·········(0)····22771·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.html |
248 | -rw-r--r--···0·root·········(0)·root·········(0)·····156 | 248 | -rw-r--r--···0·root·········(0)·root·········(0)·····1561·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz |
249 | -rw-r--r--···0·root·········(0)·root·········(0)····45664·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.html | 249 | -rw-r--r--···0·root·········(0)·root·········(0)····45664·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.html |
250 | -rw-r--r--···0·root·········(0)·root·········(0)·····354 | 250 | -rw-r--r--···0·root·········(0)·root·········(0)·····3542·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz |
251 | -rw-r--r--···0·root·········(0)·root·········(0)····38738·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html | 251 | -rw-r--r--···0·root·········(0)·root·········(0)····38738·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html |
252 | -rw-r--r--···0·root·········(0)·root·········(0)····1118 | 252 | -rw-r--r--···0·root·········(0)·root·········(0)····11182·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz |
253 | -rw-r--r--···0·root·········(0)·root·········(0)····65414·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html | 253 | -rw-r--r--···0·root·········(0)·root·········(0)····65414·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html |
254 | -rw-r--r--···0·root·········(0)·root·········(0)·····46 | 254 | -rw-r--r--···0·root·········(0)·root·········(0)·····4675·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz |
255 | -rw-r--r--···0·root·········(0)·root·········(0)····92426·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html | 255 | -rw-r--r--···0·root·········(0)·root·········(0)····92426·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html |
256 | -rw-r--r--···0·root·········(0)·root·········(0)···3677 | 256 | -rw-r--r--···0·root·········(0)·root·········(0)···367799·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz |
257 | -rw-r--r--···0·root·········(0)·root·········(0)·····6546·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/gallery.html | 257 | -rw-r--r--···0·root·········(0)·root·········(0)·····6546·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/gallery.html |
258 | -rw-r--r--···0·root·········(0)·root·········(0)·····8063·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/genindex.html | 258 | -rw-r--r--···0·root·········(0)·root·········(0)·····8063·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/genindex.html |
259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/ | 259 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/ |
260 | -rw-r--r--···0·root·········(0)·root·········(0)····28859·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/faq.html | 260 | -rw-r--r--···0·root·········(0)·root·········(0)····28859·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/faq.html |
261 | -rw-r--r--···0·root·········(0)·root·········(0)·····6381·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/index.html | 261 | -rw-r--r--···0·root·········(0)·root·········(0)·····6381·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/index.html |
262 | -rw-r--r--···0·root·········(0)·root·········(0)····20999·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/installing.html | 262 | -rw-r--r--···0·root·········(0)·root·········(0)····20999·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/installing.html |
263 | -rw-r--r--···0·root·········(0)·root·········(0)····42860·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/quick-overview.html | 263 | -rw-r--r--···0·root·········(0)·root·········(0)····42860·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/quick-overview.html |
Offset 271, 20 lines modified | Offset 271, 20 lines modified | ||
271 | -rw-r--r--···0·root·········(0)·root·········(0)·····6791·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/internals/index.html | 271 | -rw-r--r--···0·root·········(0)·root·········(0)·····6791·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/internals/index.html |
272 | -rw-r--r--···0·root·········(0)·root·········(0)·····9602·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/internals/variable-objects.html | 272 | -rw-r--r--···0·root·········(0)·root·········(0)·····9602·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/internals/variable-objects.html |
273 | -rw-r--r--···0·root·········(0)·root·········(0)····32114·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/internals/zarr-encoding-spec.html | 273 | -rw-r--r--···0·root·········(0)·root·········(0)····32114·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/internals/zarr-encoding-spec.html |
274 | -rw-r--r--···0·root·········(0)·root·········(0)····16394·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/objects.inv | 274 | -rw-r--r--···0·root·········(0)·root·········(0)····16394·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/objects.inv |
275 | -rw-r--r--···0·root·········(0)·root·········(0)·····5487·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/py-modindex.html | 275 | -rw-r--r--···0·root·········(0)·root·········(0)·····5487·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/py-modindex.html |
276 | -rw-r--r--···0·root·········(0)·root·········(0)····22790·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/roadmap.html | 276 | -rw-r--r--···0·root·········(0)·root·········(0)····22790·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/roadmap.html |
277 | -rw-r--r--···0·root·········(0)·root·········(0)·····5240·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/search.html | 277 | -rw-r--r--···0·root·········(0)·root·········(0)·····5240·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/search.html |
278 | -rw-r--r--···0·root·········(0)·root·········(0)···1987 | 278 | -rw-r--r--···0·root·········(0)·root·········(0)···198722·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js |
279 | -rw-r--r--···0·root·········(0)·root·········(0)·····7175·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/tutorials-and-videos.html | 279 | -rw-r--r--···0·root·········(0)·root·········(0)·····7175·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/tutorials-and-videos.html |
280 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/ | 280 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/ |
281 | -rw-r--r--···0·root·········(0)·root·········(0)····56706·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/combining.html | 281 | -rw-r--r--···0·root·········(0)·root·········(0)····56706·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/combining.html |
282 | -rw-r--r--···0·root·········(0)·root·········(0)···125736·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/computation.html | 282 | -rw-r--r--···0·root·········(0)·root·········(0)···125736·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/computation.html |
283 | -rw-r--r--···0·root·········(0)·root·········(0)····74 | 283 | -rw-r--r--···0·root·········(0)·root·········(0)····74640·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/dask.html |
284 | -rw-r--r--···0·root·········(0)·root·········(0)····98802·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html | 284 | -rw-r--r--···0·root·········(0)·root·········(0)····98802·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html |
285 | -rw-r--r--···0·root·········(0)·root·········(0)····15231·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/duckarrays.html | 285 | -rw-r--r--···0·root·········(0)·root·········(0)····15231·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/duckarrays.html |
286 | -rw-r--r--···0·root·········(0)·root·········(0)····37489·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/groupby.html | 286 | -rw-r--r--···0·root·········(0)·root·········(0)····37489·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/groupby.html |
287 | -rw-r--r--···0·root·········(0)·root·········(0)·····7597·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/index.html | 287 | -rw-r--r--···0·root·········(0)·root·········(0)·····7597·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/index.html |
288 | -rw-r--r--···0·root·········(0)·root·········(0)···252969·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/indexing.html | 288 | -rw-r--r--···0·root·········(0)·root·········(0)···252969·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/indexing.html |
289 | -rw-r--r--···0·root·········(0)·root·········(0)····91334·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html | 289 | -rw-r--r--···0·root·········(0)·root·········(0)····91334·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html |
290 | -rw-r--r--···0·root·········(0)·root·········(0)···253831·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/io.html | 290 | -rw-r--r--···0·root·········(0)·root·········(0)···253831·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/io.html |
Offset 432, 15 lines modified | Offset 432, 15 lines modified | ||
432 | </pre></div></div> | 432 | </pre></div></div> |
433 | </div> | 433 | </div> |
434 | <div·class="nboutput·docutils·container"> | 434 | <div·class="nboutput·docutils·container"> |
435 | <div·class="prompt·empty·docutils·container"> | 435 | <div·class="prompt·empty·docutils·container"> |
436 | </div> | 436 | </div> |
437 | <div·class="output_area·docutils·container"> | 437 | <div·class="output_area·docutils·container"> |
438 | <div·class="highlight"><pre> | 438 | <div·class="highlight"><pre> |
439 | Error·in·callback·<function·_draw_all_if_interactive·at·0x7f | 439 | Error·in·callback·<function·_draw_all_if_interactive·at·0x7f8bbe48b880>·(for·post_execute): |
440 | </pre></div></div> | 440 | </pre></div></div> |
441 | </div> | 441 | </div> |
442 | <div·class="nboutput·docutils·container"> | 442 | <div·class="nboutput·docutils·container"> |
443 | <div·class="prompt·empty·docutils·container"> | 443 | <div·class="prompt·empty·docutils·container"> |
444 | </div> | 444 | </div> |
445 | <div·class="output_area·docutils·container"> | 445 | <div·class="output_area·docutils·container"> |
446 | <div·class="highlight"><pre> | 446 | <div·class="highlight"><pre> |
Offset 98, 15 lines modified | Offset 98, 15 lines modified | ||
98 | ---->·7·plot·=·ds.t2m[0].plot( | 98 | ---->·7·plot·=·ds.t2m[0].plot( |
99 | ······8·····cmap=plt.cm.coolwarm,·transform=ccrs.PlateCarree(),·cbar_kwargs= | 99 | ······8·····cmap=plt.cm.coolwarm,·transform=ccrs.PlateCarree(),·cbar_kwargs= |
100 | {"shrink":·0.6} | 100 | {"shrink":·0.6} |
101 | ······9·) | 101 | ······9·) |
102 | ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019") | 102 | ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019") |
103 | NameError:·name·'ds'·is·not·defined | 103 | NameError:·name·'ds'·is·not·defined |
104 | Error·in·callback·<function·_draw_all_if_interactive·at·0x7f | 104 | Error·in·callback·<function·_draw_all_if_interactive·at·0x7f8bbe48b880>·(for |
105 | post_execute): | 105 | post_execute): |
106 | --------------------------------------------------------------------------- | 106 | --------------------------------------------------------------------------- |
107 | PermissionError···························Traceback·(most·recent·call·last) | 107 | PermissionError···························Traceback·(most·recent·call·last) |
108 | File·/usr/lib/python3/dist-packages/matplotlib/pyplot.py:119,·in | 108 | File·/usr/lib/python3/dist-packages/matplotlib/pyplot.py:119,·in |
109 | _draw_all_if_interactive() | 109 | _draw_all_if_interactive() |
110 | ····117·def·_draw_all_if_interactive(): | 110 | ····117·def·_draw_all_if_interactive(): |
111 | ····118·····if·matplotlib.is_interactive(): | 111 | ····118·····if·matplotlib.is_interactive(): |
Offset 15, 18 lines modified | Offset 15, 18 lines modified | ||
15 | ············] | 15 | ············] |
16 | ········}, | 16 | ········}, |
17 | ········{ | 17 | ········{ |
18 | ············"cell_type":·"code", | 18 | ············"cell_type":·"code", |
19 | ············"execution_count":·1, | 19 | ············"execution_count":·1, |
20 | ············"metadata":·{ | 20 | ············"metadata":·{ |
21 | ················"execution":·{ | 21 | ················"execution":·{ |
22 | ····················"iopub.execute_input":·"202 | 22 | ····················"iopub.execute_input":·"2024-01-12T09:46:27.094752Z", |
23 | ····················"iopub.status.busy":·"202 | 23 | ····················"iopub.status.busy":·"2024-01-12T09:46:27.094289Z", |
24 | ····················"iopub.status.idle":·"202 | 24 | ····················"iopub.status.idle":·"2024-01-12T09:46:35.544950Z", |
25 | ····················"shell.execute_reply":·"202 | 25 | ····················"shell.execute_reply":·"2024-01-12T09:46:35.528879Z" |
26 | ················} | 26 | ················} |
27 | ············}, | 27 | ············}, |
28 | ············"outputs":·[ | 28 | ············"outputs":·[ |
29 | ················{ | 29 | ················{ |
30 | ····················"name":·"stderr", | 30 | ····················"name":·"stderr", |
31 | ····················"output_type":·"stream", | 31 | ····················"output_type":·"stream", |
32 | ····················"text":·[ | 32 | ····················"text":·[ |
Offset 47, 18 lines modified | Offset 47, 18 lines modified | ||
47 | ············] | 47 | ············] |
48 | ········}, | 48 | ········}, |
49 | ········{ | 49 | ········{ |
50 | ············"cell_type":·"code", | 50 | ············"cell_type":·"code", |
51 | ············"execution_count":·2, | 51 | ············"execution_count":·2, |
52 | ············"metadata":·{ | 52 | ············"metadata":·{ |
53 | ················"execution":·{ | 53 | ················"execution":·{ |
54 | ····················"iopub.execute_input":·"202 | 54 | ····················"iopub.execute_input":·"2024-01-12T09:46:35.575687Z", |
55 | ····················"iopub.status.busy":·"202 | 55 | ····················"iopub.status.busy":·"2024-01-12T09:46:35.574831Z", |
56 | ····················"iopub.status.idle":·"202 | 56 | ····················"iopub.status.idle":·"2024-01-12T09:46:36.748869Z", |
57 | ····················"shell.execute_reply":·"202 | 57 | ····················"shell.execute_reply":·"2024-01-12T09:46:36.732777Z" |
58 | ················} | 58 | ················} |
59 | ············}, | 59 | ············}, |
60 | ············"outputs":·[ | 60 | ············"outputs":·[ |
61 | ················{ | 61 | ················{ |
62 | ····················"ename":·"ImportError", | 62 | ····················"ename":·"ImportError", |
63 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 63 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
64 | ····················"output_type":·"error", | 64 | ····················"output_type":·"error", |
Offset 88, 18 lines modified | Offset 88, 18 lines modified | ||
88 | ············] | 88 | ············] |
89 | ········}, | 89 | ········}, |
90 | ········{ | 90 | ········{ |
91 | ············"cell_type":·"code", | 91 | ············"cell_type":·"code", |
92 | ············"execution_count":·3, | 92 | ············"execution_count":·3, |
93 | ············"metadata":·{ | 93 | ············"metadata":·{ |
94 | ················"execution":·{ | 94 | ················"execution":·{ |
95 | ····················"iopub.execute_input":·"202 | 95 | ····················"iopub.execute_input":·"2024-01-12T09:46:36.774608Z", |
96 | ····················"iopub.status.busy":·"202 | 96 | ····················"iopub.status.busy":·"2024-01-12T09:46:36.774195Z", |
97 | ····················"iopub.status.idle":·"202 | 97 | ····················"iopub.status.idle":·"2024-01-12T09:46:36.896873Z", |
98 | ····················"shell.execute_reply":·"202 | 98 | ····················"shell.execute_reply":·"2024-01-12T09:46:36.880829Z" |
99 | ················} | 99 | ················} |
100 | ············}, | 100 | ············}, |
101 | ············"outputs":·[ | 101 | ············"outputs":·[ |
102 | ················{ | 102 | ················{ |
103 | ····················"ename":·"NameError", | 103 | ····················"ename":·"NameError", |
104 | ····················"evalue":·"name·'ds'·is·not·defined", | 104 | ····················"evalue":·"name·'ds'·is·not·defined", |
105 | ····················"output_type":·"error", | 105 | ····················"output_type":·"error", |
Offset 124, 18 lines modified | Offset 124, 18 lines modified | ||
124 | ············] | 124 | ············] |
125 | ········}, | 125 | ········}, |
126 | ········{ | 126 | ········{ |
127 | ············"cell_type":·"code", | 127 | ············"cell_type":·"code", |
128 | ············"execution_count":·4, | 128 | ············"execution_count":·4, |
129 | ············"metadata":·{ | 129 | ············"metadata":·{ |
130 | ················"execution":·{ | 130 | ················"execution":·{ |
131 | ····················"iopub.execute_input":·"202 | 131 | ····················"iopub.execute_input":·"2024-01-12T09:46:36.926683Z", |
132 | ····················"iopub.status.busy":·"202 | 132 | ····················"iopub.status.busy":·"2024-01-12T09:46:36.926208Z", |
133 | ····················"iopub.status.idle":·"202 | 133 | ····················"iopub.status.idle":·"2024-01-12T09:46:44.600922Z", |
134 | ····················"shell.execute_reply":·"202 | 134 | ····················"shell.execute_reply":·"2024-01-12T09:46:44.584944Z" |
135 | ················} | 135 | ················} |
136 | ············}, | 136 | ············}, |
137 | ············"outputs":·[ | 137 | ············"outputs":·[ |
138 | ················{ | 138 | ················{ |
139 | ····················"ename":·"NameError", | 139 | ····················"ename":·"NameError", |
140 | ····················"evalue":·"name·'ds'·is·not·defined", | 140 | ····················"evalue":·"name·'ds'·is·not·defined", |
141 | ····················"output_type":·"error", | 141 | ····················"output_type":·"error", |
Offset 146, 15 lines modified | Offset 146, 15 lines modified | ||
146 | ························"\u001b[0;31mNameError\u001b[0m:·name·'ds'·is·not·defined" | 146 | ························"\u001b[0;31mNameError\u001b[0m:·name·'ds'·is·not·defined" |
147 | ····················] | 147 | ····················] |
148 | ················}, | 148 | ················}, |
149 | ················{ | 149 | ················{ |
150 | ····················"name":·"stdout", | 150 | ····················"name":·"stdout", |
151 | ····················"output_type":·"stream", | 151 | ····················"output_type":·"stream", |
152 | ····················"text":·[ | 152 | ····················"text":·[ |
153 | ························"Error·in·callback·<function·_draw_all_if_interactive·at·0x7f | 153 | ························"Error·in·callback·<function·_draw_all_if_interactive·at·0x7f8bbe48b880>·(for·post_execute):\n" |
154 | ····················] | 154 | ····················] |
155 | ················}, | 155 | ················}, |
156 | ················{ | 156 | ················{ |
157 | ····················"ename":·"PermissionError", | 157 | ····················"ename":·"PermissionError", |
158 | ····················"evalue":·"[Errno·13]·Permission·denied:·'/nonexistent'", | 158 | ····················"evalue":·"[Errno·13]·Permission·denied:·'/nonexistent'", |
159 | ····················"output_type":·"error", | 159 | ····················"output_type":·"error", |
160 | ····················"traceback":·[ | 160 | ····················"traceback":·[ |
Offset 255, 18 lines modified | Offset 255, 18 lines modified | ||
255 | ············] | 255 | ············] |
256 | ········}, | 256 | ········}, |
257 | ········{ | 257 | ········{ |
258 | ············"cell_type":·"code", | 258 | ············"cell_type":·"code", |
259 | ············"execution_count":·5, | 259 | ············"execution_count":·5, |
260 | ············"metadata":·{ | 260 | ············"metadata":·{ |
261 | ················"execution":·{ | 261 | ················"execution":·{ |
262 | ····················"iopub.execute_input":·"202 | 262 | ····················"iopub.execute_input":·"2024-01-12T09:46:44.613302Z", |
263 | ····················"iopub.status.busy":·"202 | 263 | ····················"iopub.status.busy":·"2024-01-12T09:46:44.612788Z", |
264 | ····················"iopub.status.idle":·"202 | 264 | ····················"iopub.status.idle":·"2024-01-12T09:46:44.724892Z", |
265 | ····················"shell.execute_reply":·"202 | 265 | ····················"shell.execute_reply":·"2024-01-12T09:46:44.708840Z" |
266 | ················} | 266 | ················} |
267 | ············}, | 267 | ············}, |
268 | ············"outputs":·[ | 268 | ············"outputs":·[ |
269 | ················{ | 269 | ················{ |
270 | ····················"ename":·"NameError", | 270 | ····················"ename":·"NameError", |
271 | ····················"evalue":·"name·'ds'·is·not·defined", | 271 | ····················"evalue":·"name·'ds'·is·not·defined", |
272 | ····················"output_type":·"error", | 272 | ····················"output_type":·"error", |
Offset 17, 18 lines modified | Offset 17, 18 lines modified | ||
17 | ············] | 17 | ············] |
18 | ········}, | 18 | ········}, |
19 | ········{ | 19 | ········{ |
20 | ············"cell_type":·"code", | 20 | ············"cell_type":·"code", |
21 | ············"execution_count":·1, | 21 | ············"execution_count":·1, |
22 | ············"metadata":·{ | 22 | ············"metadata":·{ |
23 | ················"execution":·{ | 23 | ················"execution":·{ |
24 | ····················"iopub.execute_input":·"202 | 24 | ····················"iopub.execute_input":·"2024-01-12T09:46:55.514621Z", |
25 | ····················"iopub.status.busy":·"202 | 25 | ····················"iopub.status.busy":·"2024-01-12T09:46:55.514015Z", |
26 | ····················"iopub.status.idle":·"202 | 26 | ····················"iopub.status.idle":·"2024-01-12T09:47:00.692924Z", |
27 | ····················"shell.execute_reply":·"202 | 27 | ····················"shell.execute_reply":·"2024-01-12T09:47:00.676953Z" |
28 | ················} | 28 | ················} |
29 | ············}, | 29 | ············}, |
30 | ············"outputs":·[], | 30 | ············"outputs":·[], |
31 | ············"source":·[ | 31 | ············"source":·[ |
32 | ················"import·numpy·as·np\n", | 32 | ················"import·numpy·as·np\n", |
33 | ················"import·cartopy.crs·as·ccrs\n", | 33 | ················"import·cartopy.crs·as·ccrs\n", |
34 | ················"import·cartopy.feature·as·cfeature\n", | 34 | ················"import·cartopy.feature·as·cfeature\n", |
Offset 75, 18 lines modified | Offset 75, 18 lines modified | ||
75 | ············] | 75 | ············] |
76 | ········}, | 76 | ········}, |
77 | ········{ | 77 | ········{ |
78 | ············"cell_type":·"code", | 78 | ············"cell_type":·"code", |
79 | ············"execution_count":·2, | 79 | ············"execution_count":·2, |
80 | ············"metadata":·{ | 80 | ············"metadata":·{ |
81 | ················"execution":·{ | 81 | ················"execution":·{ |
82 | ····················"iopub.execute_input":·"202 | 82 | ····················"iopub.execute_input":·"2024-01-12T09:47:00.720027Z", |
83 | ····················"iopub.status.busy":·"202 | 83 | ····················"iopub.status.busy":·"2024-01-12T09:47:00.718856Z", |
84 | ····················"iopub.status.idle":·"202 | 84 | ····················"iopub.status.idle":·"2024-01-12T09:47:01.761091Z", |
85 | ····················"shell.execute_reply":·"202 | 85 | ····················"shell.execute_reply":·"2024-01-12T09:47:01.744962Z" |
86 | ················} | 86 | ················} |
87 | ············}, | 87 | ············}, |
88 | ············"outputs":·[ | 88 | ············"outputs":·[ |
89 | ················{ | 89 | ················{ |
90 | ····················"ename":·"ImportError", | 90 | ····················"ename":·"ImportError", |
91 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 91 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
92 | ····················"output_type":·"error", | 92 | ····················"output_type":·"error", |
Offset 130, 18 lines modified | Offset 130, 18 lines modified | ||
130 | ············] | 130 | ············] |
131 | ········}, | 131 | ········}, |
132 | ········{ | 132 | ········{ |
133 | ············"cell_type":·"code", | 133 | ············"cell_type":·"code", |
134 | ············"execution_count":·3, | 134 | ············"execution_count":·3, |
135 | ············"metadata":·{ | 135 | ············"metadata":·{ |
136 | ················"execution":·{ | 136 | ················"execution":·{ |
137 | ····················"iopub.execute_input":·"202 | 137 | ····················"iopub.execute_input":·"2024-01-12T09:47:01.786913Z", |
138 | ····················"iopub.status.busy":·"202 | 138 | ····················"iopub.status.busy":·"2024-01-12T09:47:01.786356Z", |
139 | ····················"iopub.status.idle":·"202 | 139 | ····················"iopub.status.idle":·"2024-01-12T09:47:01.937172Z", |
140 | ····················"shell.execute_reply":·"202 | 140 | ····················"shell.execute_reply":·"2024-01-12T09:47:01.920927Z" |
141 | ················} | 141 | ················} |
142 | ············}, | 142 | ············}, |
143 | ············"outputs":·[ | 143 | ············"outputs":·[ |
144 | ················{ | 144 | ················{ |
145 | ····················"ename":·"NameError", | 145 | ····················"ename":·"NameError", |
146 | ····················"evalue":·"name·'ds'·is·not·defined", | 146 | ····················"evalue":·"name·'ds'·is·not·defined", |
147 | ····················"output_type":·"error", | 147 | ····················"output_type":·"error", |
Offset 175, 18 lines modified | Offset 175, 18 lines modified | ||
175 | ············] | 175 | ············] |
176 | ········}, | 176 | ········}, |
177 | ········{ | 177 | ········{ |
178 | ············"cell_type":·"code", | 178 | ············"cell_type":·"code", |
179 | ············"execution_count":·4, | 179 | ············"execution_count":·4, |
180 | ············"metadata":·{ | 180 | ············"metadata":·{ |
181 | ················"execution":·{ | 181 | ················"execution":·{ |
182 | ····················"iopub.execute_input":·"202 | 182 | ····················"iopub.execute_input":·"2024-01-12T09:47:01.962611Z", |
183 | ····················"iopub.status.busy":·"202 | 183 | ····················"iopub.status.busy":·"2024-01-12T09:47:01.962140Z", |
184 | ····················"iopub.status.idle":·"202 | 184 | ····················"iopub.status.idle":·"2024-01-12T09:47:02.072899Z", |
185 | ····················"shell.execute_reply":·"202 | 185 | ····················"shell.execute_reply":·"2024-01-12T09:47:02.056879Z" |
186 | ················}, | 186 | ················}, |
187 | ················"scrolled":·false | 187 | ················"scrolled":·false |
188 | ············}, | 188 | ············}, |
189 | ············"outputs":·[ | 189 | ············"outputs":·[ |
190 | ················{ | 190 | ················{ |
191 | ····················"ename":·"NameError", | 191 | ····················"ename":·"NameError", |
192 | ····················"evalue":·"name·'ds'·is·not·defined", | 192 | ····················"evalue":·"name·'ds'·is·not·defined", |
Offset 211, 18 lines modified | Offset 211, 18 lines modified | ||
211 | ············] | 211 | ············] |
212 | ········}, | 212 | ········}, |
213 | ········{ | 213 | ········{ |
214 | ············"cell_type":·"code", | 214 | ············"cell_type":·"code", |
215 | ············"execution_count":·5, | 215 | ············"execution_count":·5, |
216 | ············"metadata":·{ | 216 | ············"metadata":·{ |
217 | ················"execution":·{ | 217 | ················"execution":·{ |
218 | ····················"iopub.execute_input":·"202 | 218 | ····················"iopub.execute_input":·"2024-01-12T09:47:02.099453Z", |
219 | ····················"iopub.status.busy":·"202 | 219 | ····················"iopub.status.busy":·"2024-01-12T09:47:02.098771Z", |
220 | ····················"iopub.status.idle":·"202 | 220 | ····················"iopub.status.idle":·"2024-01-12T09:47:02.229010Z", |
221 | ····················"shell.execute_reply":·"202 | 221 | ····················"shell.execute_reply":·"2024-01-12T09:47:02.212934Z" |
222 | ················} | 222 | ················} |
223 | ············}, | 223 | ············}, |
224 | ············"outputs":·[ | 224 | ············"outputs":·[ |
225 | ················{ | 225 | ················{ |
226 | ····················"ename":·"NameError", | 226 | ····················"ename":·"NameError", |
227 | ····················"evalue":·"name·'ds'·is·not·defined", | 227 | ····················"evalue":·"name·'ds'·is·not·defined", |
228 | ····················"output_type":·"error", | 228 | ····················"output_type":·"error", |
Offset 250, 18 lines modified | Offset 250, 18 lines modified | ||
250 | ············] | 250 | ············] |
251 | ········}, | 251 | ········}, |
252 | ········{ | 252 | ········{ |
253 | ············"cell_type":·"code", | 253 | ············"cell_type":·"code", |
254 | ············"execution_count":·6, | 254 | ············"execution_count":·6, |
255 | ············"metadata":·{ | 255 | ············"metadata":·{ |
256 | ················"execution":·{ | 256 | ················"execution":·{ |
257 | ····················"iopub.execute_input":·"202 | 257 | ····················"iopub.execute_input":·"2024-01-12T09:47:02.254679Z", |
258 | ····················"iopub.status.busy":·"202 | 258 | ····················"iopub.status.busy":·"2024-01-12T09:47:02.254221Z", |
259 | ····················"iopub.status.idle":·"202 | 259 | ····················"iopub.status.idle":·"2024-01-12T09:47:02.368968Z", |
260 | ····················"shell.execute_reply":·"202 | 260 | ····················"shell.execute_reply":·"2024-01-12T09:47:02.352986Z" |
261 | ················} | 261 | ················} |
262 | ············}, | 262 | ············}, |
263 | ············"outputs":·[ | 263 | ············"outputs":·[ |
264 | ················{ | 264 | ················{ |
265 | ····················"ename":·"NameError", | 265 | ····················"ename":·"NameError", |
266 | ····················"evalue":·"name·'ds'·is·not·defined", | 266 | ····················"evalue":·"name·'ds'·is·not·defined", |
267 | ····················"output_type":·"error", | 267 | ····················"output_type":·"error", |
Offset 285, 18 lines modified | Offset 285, 18 lines modified | ||
285 | ············] | 285 | ············] |
286 | ········}, | 286 | ········}, |
287 | ········{ | 287 | ········{ |
288 | ············"cell_type":·"code", | 288 | ············"cell_type":·"code", |
289 | ············"execution_count":·7, | 289 | ············"execution_count":·7, |
290 | ············"metadata":·{ | 290 | ············"metadata":·{ |
291 | ················"execution":·{ | 291 | ················"execution":·{ |
292 | ····················"iopub.execute_input":·"202 | 292 | ····················"iopub.execute_input":·"2024-01-12T09:47:02.394700Z", |
293 | ····················"iopub.status.busy":·"202 | 293 | ····················"iopub.status.busy":·"2024-01-12T09:47:02.394194Z", |
294 | ····················"iopub.status.idle":·"202 | 294 | ····················"iopub.status.idle":·"2024-01-12T09:47:03.369213Z", |
295 | ····················"shell.execute_reply":·"202 | 295 | ····················"shell.execute_reply":·"2024-01-12T09:47:03.367074Z" |
296 | ················} | 296 | ················} |
297 | ············}, | 297 | ············}, |
Max diff block lines reached; 166/7112 bytes (2.33%) of diff not shown. |
Offset 36, 18 lines modified | Offset 36, 18 lines modified | ||
36 | ············"execution_count":·1, | 36 | ············"execution_count":·1, |
37 | ············"metadata":·{ | 37 | ············"metadata":·{ |
38 | ················"ExecuteTime":·{ | 38 | ················"ExecuteTime":·{ |
39 | ····················"end_time":·"2020-01-15T14:45:51.659160Z", | 39 | ····················"end_time":·"2020-01-15T14:45:51.659160Z", |
40 | ····················"start_time":·"2020-01-15T14:45:50.528742Z" | 40 | ····················"start_time":·"2020-01-15T14:45:50.528742Z" |
41 | ················}, | 41 | ················}, |
42 | ················"execution":·{ | 42 | ················"execution":·{ |
43 | ····················"iopub.execute_input":·"202 | 43 | ····················"iopub.execute_input":·"2024-01-12T09:47:12.287484Z", |
44 | ····················"iopub.status.busy":·"202 | 44 | ····················"iopub.status.busy":·"2024-01-12T09:47:12.286713Z", |
45 | ····················"iopub.status.idle":·"202 | 45 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.114824Z", |
46 | ····················"shell.execute_reply":·"202 | 46 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.113645Z" |
47 | ················} | 47 | ················} |
48 | ············}, | 48 | ············}, |
49 | ············"outputs":·[ | 49 | ············"outputs":·[ |
50 | ················{ | 50 | ················{ |
51 | ····················"ename":·"ImportError", | 51 | ····················"ename":·"ImportError", |
52 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 52 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
53 | ····················"output_type":·"error", | 53 | ····················"output_type":·"error", |
Offset 91, 18 lines modified | Offset 91, 18 lines modified | ||
91 | ············"execution_count":·2, | 91 | ············"execution_count":·2, |
92 | ············"metadata":·{ | 92 | ············"metadata":·{ |
93 | ················"ExecuteTime":·{ | 93 | ················"ExecuteTime":·{ |
94 | ····················"end_time":·"2020-01-15T14:45:55.431708Z", | 94 | ····················"end_time":·"2020-01-15T14:45:55.431708Z", |
95 | ····················"start_time":·"2020-01-15T14:45:55.104701Z" | 95 | ····················"start_time":·"2020-01-15T14:45:55.104701Z" |
96 | ················}, | 96 | ················}, |
97 | ················"execution":·{ | 97 | ················"execution":·{ |
98 | ····················"iopub.execute_input":·"202 | 98 | ····················"iopub.execute_input":·"2024-01-12T09:47:15.130947Z", |
99 | ····················"iopub.status.busy":·"202 | 99 | ····················"iopub.status.busy":·"2024-01-12T09:47:15.130448Z", |
100 | ····················"iopub.status.idle":·"202 | 100 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.161121Z", |
101 | ····················"shell.execute_reply":·"202 | 101 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.159694Z" |
102 | ················} | 102 | ················} |
103 | ············}, | 103 | ············}, |
104 | ············"outputs":·[ | 104 | ············"outputs":·[ |
105 | ················{ | 105 | ················{ |
106 | ····················"ename":·"NameError", | 106 | ····················"ename":·"NameError", |
107 | ····················"evalue":·"name·'air'·is·not·defined", | 107 | ····················"evalue":·"name·'air'·is·not·defined", |
108 | ····················"output_type":·"error", | 108 | ····················"output_type":·"error", |
Offset 131, 18 lines modified | Offset 131, 18 lines modified | ||
131 | ············"execution_count":·3, | 131 | ············"execution_count":·3, |
132 | ············"metadata":·{ | 132 | ············"metadata":·{ |
133 | ················"ExecuteTime":·{ | 133 | ················"ExecuteTime":·{ |
134 | ····················"end_time":·"2020-01-15T14:45:57.889496Z", | 134 | ····················"end_time":·"2020-01-15T14:45:57.889496Z", |
135 | ····················"start_time":·"2020-01-15T14:45:57.792269Z" | 135 | ····················"start_time":·"2020-01-15T14:45:57.792269Z" |
136 | ················}, | 136 | ················}, |
137 | ················"execution":·{ | 137 | ················"execution":·{ |
138 | ····················"iopub.execute_input":·"202 | 138 | ····················"iopub.execute_input":·"2024-01-12T09:47:15.174866Z", |
139 | ····················"iopub.status.busy":·"202 | 139 | ····················"iopub.status.busy":·"2024-01-12T09:47:15.174407Z", |
140 | ····················"iopub.status.idle":·"202 | 140 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.211028Z", |
141 | ····················"shell.execute_reply":·"202 | 141 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.209910Z" |
142 | ················} | 142 | ················} |
143 | ············}, | 143 | ············}, |
144 | ············"outputs":·[ | 144 | ············"outputs":·[ |
145 | ················{ | 145 | ················{ |
146 | ····················"ename":·"NameError", | 146 | ····················"ename":·"NameError", |
147 | ····················"evalue":·"name·'air'·is·not·defined", | 147 | ····················"evalue":·"name·'air'·is·not·defined", |
148 | ····················"output_type":·"error", | 148 | ····················"output_type":·"error", |
Offset 190, 18 lines modified | Offset 190, 18 lines modified | ||
190 | ············"execution_count":·4, | 190 | ············"execution_count":·4, |
191 | ············"metadata":·{ | 191 | ············"metadata":·{ |
192 | ················"ExecuteTime":·{ | 192 | ················"ExecuteTime":·{ |
193 | ····················"end_time":·"2020-01-15T14:45:59.768626Z", | 193 | ····················"end_time":·"2020-01-15T14:45:59.768626Z", |
194 | ····················"start_time":·"2020-01-15T14:45:59.543808Z" | 194 | ····················"start_time":·"2020-01-15T14:45:59.543808Z" |
195 | ················}, | 195 | ················}, |
196 | ················"execution":·{ | 196 | ················"execution":·{ |
197 | ····················"iopub.execute_input":·"202 | 197 | ····················"iopub.execute_input":·"2024-01-12T09:47:15.230981Z", |
198 | ····················"iopub.status.busy":·"202 | 198 | ····················"iopub.status.busy":·"2024-01-12T09:47:15.230423Z", |
199 | ····················"iopub.status.idle":·"202 | 199 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.259304Z", |
200 | ····················"shell.execute_reply":·"202 | 200 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.258242Z" |
201 | ················} | 201 | ················} |
202 | ············}, | 202 | ············}, |
203 | ············"outputs":·[ | 203 | ············"outputs":·[ |
204 | ················{ | 204 | ················{ |
205 | ····················"ename":·"NameError", | 205 | ····················"ename":·"NameError", |
206 | ····················"evalue":·"name·'air'·is·not·defined", | 206 | ····················"evalue":·"name·'air'·is·not·defined", |
207 | ····················"output_type":·"error", | 207 | ····················"output_type":·"error", |
Offset 256, 18 lines modified | Offset 256, 18 lines modified | ||
256 | ············"execution_count":·5, | 256 | ············"execution_count":·5, |
257 | ············"metadata":·{ | 257 | ············"metadata":·{ |
258 | ················"ExecuteTime":·{ | 258 | ················"ExecuteTime":·{ |
259 | ····················"end_time":·"2020-01-15T14:46:02.187012Z", | 259 | ····················"end_time":·"2020-01-15T14:46:02.187012Z", |
260 | ····················"start_time":·"2020-01-15T14:46:02.105563Z" | 260 | ····················"start_time":·"2020-01-15T14:46:02.105563Z" |
261 | ················}, | 261 | ················}, |
262 | ················"execution":·{ | 262 | ················"execution":·{ |
263 | ····················"iopub.execute_input":·"202 | 263 | ····················"iopub.execute_input":·"2024-01-12T09:47:15.275073Z", |
264 | ····················"iopub.status.busy":·"202 | 264 | ····················"iopub.status.busy":·"2024-01-12T09:47:15.274597Z", |
265 | ····················"iopub.status.idle":·"202 | 265 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.308079Z", |
266 | ····················"shell.execute_reply":·"202 | 266 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.306797Z" |
267 | ················} | 267 | ················} |
268 | ············}, | 268 | ············}, |
269 | ············"outputs":·[ | 269 | ············"outputs":·[ |
270 | ················{ | 270 | ················{ |
271 | ····················"ename":·"NameError", | 271 | ····················"ename":·"NameError", |
272 | ····················"evalue":·"name·'air'·is·not·defined", | 272 | ····················"evalue":·"name·'air'·is·not·defined", |
273 | ····················"output_type":·"error", | 273 | ····················"output_type":·"error", |
Offset 334, 18 lines modified | Offset 334, 18 lines modified | ||
334 | ············"execution_count":·6, | 334 | ············"execution_count":·6, |
335 | ············"metadata":·{ | 335 | ············"metadata":·{ |
336 | ················"ExecuteTime":·{ | 336 | ················"ExecuteTime":·{ |
337 | ····················"end_time":·"2020-01-15T14:46:05.031672Z", | 337 | ····················"end_time":·"2020-01-15T14:46:05.031672Z", |
338 | ····················"start_time":·"2020-01-15T14:46:04.947588Z" | 338 | ····················"start_time":·"2020-01-15T14:46:04.947588Z" |
339 | ················}, | 339 | ················}, |
340 | ················"execution":·{ | 340 | ················"execution":·{ |
341 | ····················"iopub.execute_input":·"202 | 341 | ····················"iopub.execute_input":·"2024-01-12T09:47:15.323219Z", |
342 | ····················"iopub.status.busy":·"202 | 342 | ····················"iopub.status.busy":·"2024-01-12T09:47:15.322736Z", |
343 | ····················"iopub.status.idle":·"202 | 343 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.354422Z", |
344 | ····················"shell.execute_reply":·"202 | 344 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.353127Z" |
345 | ················} | 345 | ················} |
346 | ············}, | 346 | ············}, |
347 | ············"outputs":·[ | 347 | ············"outputs":·[ |
348 | ················{ | 348 | ················{ |
349 | ····················"ename":·"NameError", | 349 | ····················"ename":·"NameError", |
350 | ····················"evalue":·"name·'air'·is·not·defined", | 350 | ····················"evalue":·"name·'air'·is·not·defined", |
351 | ····················"output_type":·"error", | 351 | ····················"output_type":·"error", |
Offset 380, 18 lines modified | Offset 380, 18 lines modified | ||
380 | ············"execution_count":·7, | 380 | ············"execution_count":·7, |
381 | ············"metadata":·{ | 381 | ············"metadata":·{ |
382 | ················"ExecuteTime":·{ | 382 | ················"ExecuteTime":·{ |
383 | ····················"end_time":·"2020-01-15T14:46:09.325218Z", | 383 | ····················"end_time":·"2020-01-15T14:46:09.325218Z", |
384 | ····················"start_time":·"2020-01-15T14:46:09.303020Z" | 384 | ····················"start_time":·"2020-01-15T14:46:09.303020Z" |
385 | ················}, | 385 | ················}, |
386 | ················"execution":·{ | 386 | ················"execution":·{ |
387 | ····················"iopub.execute_input":·"202 | 387 | ····················"iopub.execute_input":·"2024-01-12T09:47:15.366918Z", |
388 | ····················"iopub.status.busy":·"202 | 388 | ····················"iopub.status.busy":·"2024-01-12T09:47:15.366466Z", |
389 | ····················"iopub.status.idle":·"202 | 389 | ····················"iopub.status.idle":·"2024-01-12T09:47:15.402739Z", |
390 | ····················"shell.execute_reply":·"202 | 390 | ····················"shell.execute_reply":·"2024-01-12T09:47:15.401621Z" |
391 | ················} | 391 | ················} |
392 | ············}, | 392 | ············}, |
Max diff block lines reached; 9140/16869 bytes (54.18%) of diff not shown. |
Offset 28, 18 lines modified | Offset 28, 18 lines modified | ||
28 | ············"execution_count":·1, | 28 | ············"execution_count":·1, |
29 | ············"metadata":·{ | 29 | ············"metadata":·{ |
30 | ················"ExecuteTime":·{ | 30 | ················"ExecuteTime":·{ |
31 | ····················"end_time":·"2020-03-17T14:43:57.222351Z", | 31 | ····················"end_time":·"2020-03-17T14:43:57.222351Z", |
32 | ····················"start_time":·"2020-03-17T14:43:56.147541Z" | 32 | ····················"start_time":·"2020-03-17T14:43:56.147541Z" |
33 | ················}, | 33 | ················}, |
34 | ················"execution":·{ | 34 | ················"execution":·{ |
35 | ····················"iopub.execute_input":·"202 | 35 | ····················"iopub.execute_input":·"2024-01-12T09:47:31.494450Z", |
36 | ····················"iopub.status.busy":·"202 | 36 | ····················"iopub.status.busy":·"2024-01-12T09:47:31.494022Z", |
37 | ····················"iopub.status.idle":·"202 | 37 | ····················"iopub.status.idle":·"2024-01-12T09:47:34.288807Z", |
38 | ····················"shell.execute_reply":·"202 | 38 | ····················"shell.execute_reply":·"2024-01-12T09:47:34.272752Z" |
39 | ················} | 39 | ················} |
40 | ············}, | 40 | ············}, |
41 | ············"outputs":·[], | 41 | ············"outputs":·[], |
42 | ············"source":·[ | 42 | ············"source":·[ |
43 | ················"%matplotlib·inline\n", | 43 | ················"%matplotlib·inline\n", |
44 | ················"\n", | 44 | ················"\n", |
45 | ················"import·cartopy.crs·as·ccrs\n", | 45 | ················"import·cartopy.crs·as·ccrs\n", |
Offset 63, 18 lines modified | Offset 63, 18 lines modified | ||
63 | ············"execution_count":·2, | 63 | ············"execution_count":·2, |
64 | ············"metadata":·{ | 64 | ············"metadata":·{ |
65 | ················"ExecuteTime":·{ | 65 | ················"ExecuteTime":·{ |
66 | ····················"end_time":·"2020-03-17T14:43:57.831734Z", | 66 | ····················"end_time":·"2020-03-17T14:43:57.831734Z", |
67 | ····················"start_time":·"2020-03-17T14:43:57.651845Z" | 67 | ····················"start_time":·"2020-03-17T14:43:57.651845Z" |
68 | ················}, | 68 | ················}, |
69 | ················"execution":·{ | 69 | ················"execution":·{ |
70 | ····················"iopub.execute_input":·"202 | 70 | ····················"iopub.execute_input":·"2024-01-12T09:47:34.306518Z", |
71 | ····················"iopub.status.busy":·"202 | 71 | ····················"iopub.status.busy":·"2024-01-12T09:47:34.305954Z", |
72 | ····················"iopub.status.idle":·"202 | 72 | ····················"iopub.status.idle":·"2024-01-12T09:47:35.072805Z", |
73 | ····················"shell.execute_reply":·"202 | 73 | ····················"shell.execute_reply":·"2024-01-12T09:47:35.056767Z" |
74 | ················} | 74 | ················} |
75 | ············}, | 75 | ············}, |
76 | ············"outputs":·[ | 76 | ············"outputs":·[ |
77 | ················{ | 77 | ················{ |
78 | ····················"ename":·"ImportError", | 78 | ····················"ename":·"ImportError", |
79 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 79 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
80 | ····················"output_type":·"error", | 80 | ····················"output_type":·"error", |
Offset 116, 18 lines modified | Offset 116, 18 lines modified | ||
116 | ············"execution_count":·3, | 116 | ············"execution_count":·3, |
117 | ············"metadata":·{ | 117 | ············"metadata":·{ |
118 | ················"ExecuteTime":·{ | 118 | ················"ExecuteTime":·{ |
119 | ····················"end_time":·"2020-03-17T14:43:59.887120Z", | 119 | ····················"end_time":·"2020-03-17T14:43:59.887120Z", |
120 | ····················"start_time":·"2020-03-17T14:43:59.582894Z" | 120 | ····················"start_time":·"2020-03-17T14:43:59.582894Z" |
121 | ················}, | 121 | ················}, |
122 | ················"execution":·{ | 122 | ················"execution":·{ |
123 | ····················"iopub.execute_input":·"202 | 123 | ····················"iopub.execute_input":·"2024-01-12T09:47:35.086362Z", |
124 | ····················"iopub.status.busy":·"202 | 124 | ····················"iopub.status.busy":·"2024-01-12T09:47:35.085957Z", |
125 | ····················"iopub.status.idle":·"202 | 125 | ····················"iopub.status.idle":·"2024-01-12T09:47:35.556802Z", |
126 | ····················"shell.execute_reply":·"202 | 126 | ····················"shell.execute_reply":·"2024-01-12T09:47:35.540755Z" |
127 | ················} | 127 | ················} |
128 | ············}, | 128 | ············}, |
129 | ············"outputs":·[ | 129 | ············"outputs":·[ |
130 | ················{ | 130 | ················{ |
131 | ····················"ename":·"NameError", | 131 | ····················"ename":·"NameError", |
132 | ····················"evalue":·"name·'air'·is·not·defined", | 132 | ····················"evalue":·"name·'air'·is·not·defined", |
133 | ····················"output_type":·"error", | 133 | ····················"output_type":·"error", |
Offset 172, 18 lines modified | Offset 172, 18 lines modified | ||
172 | ············"execution_count":·4, | 172 | ············"execution_count":·4, |
173 | ············"metadata":·{ | 173 | ············"metadata":·{ |
174 | ················"ExecuteTime":·{ | 174 | ················"ExecuteTime":·{ |
175 | ····················"end_time":·"2020-03-17T14:44:18.777092Z", | 175 | ····················"end_time":·"2020-03-17T14:44:18.777092Z", |
176 | ····················"start_time":·"2020-03-17T14:44:18.736587Z" | 176 | ····················"start_time":·"2020-03-17T14:44:18.736587Z" |
177 | ················}, | 177 | ················}, |
178 | ················"execution":·{ | 178 | ················"execution":·{ |
179 | ····················"iopub.execute_input":·"202 | 179 | ····················"iopub.execute_input":·"2024-01-12T09:47:35.578488Z", |
180 | ····················"iopub.status.busy":·"202 | 180 | ····················"iopub.status.busy":·"2024-01-12T09:47:35.578062Z", |
181 | ····················"iopub.status.idle":·"202 | 181 | ····················"iopub.status.idle":·"2024-01-12T09:47:35.680804Z", |
182 | ····················"shell.execute_reply":·"202 | 182 | ····················"shell.execute_reply":·"2024-01-12T09:47:35.664776Z" |
183 | ················} | 183 | ················} |
184 | ············}, | 184 | ············}, |
185 | ············"outputs":·[ | 185 | ············"outputs":·[ |
186 | ················{ | 186 | ················{ |
187 | ····················"ename":·"NameError", | 187 | ····················"ename":·"NameError", |
188 | ····················"evalue":·"name·'air'·is·not·defined", | 188 | ····················"evalue":·"name·'air'·is·not·defined", |
189 | ····················"output_type":·"error", | 189 | ····················"output_type":·"error", |
Offset 213, 18 lines modified | Offset 213, 18 lines modified | ||
213 | ············"execution_count":·5, | 213 | ············"execution_count":·5, |
214 | ············"metadata":·{ | 214 | ············"metadata":·{ |
215 | ················"ExecuteTime":·{ | 215 | ················"ExecuteTime":·{ |
216 | ····················"end_time":·"2020-03-17T14:44:52.607120Z", | 216 | ····················"end_time":·"2020-03-17T14:44:52.607120Z", |
217 | ····················"start_time":·"2020-03-17T14:44:52.564674Z" | 217 | ····················"start_time":·"2020-03-17T14:44:52.564674Z" |
218 | ················}, | 218 | ················}, |
219 | ················"execution":·{ | 219 | ················"execution":·{ |
220 | ····················"iopub.execute_input":·"202 | 220 | ····················"iopub.execute_input":·"2024-01-12T09:47:35.698347Z", |
221 | ····················"iopub.status.busy":·"202 | 221 | ····················"iopub.status.busy":·"2024-01-12T09:47:35.697972Z", |
222 | ····················"iopub.status.idle":·"202 | 222 | ····················"iopub.status.idle":·"2024-01-12T09:47:35.812831Z", |
223 | ····················"shell.execute_reply":·"202 | 223 | ····················"shell.execute_reply":·"2024-01-12T09:47:35.796792Z" |
224 | ················} | 224 | ················} |
225 | ············}, | 225 | ············}, |
226 | ············"outputs":·[ | 226 | ············"outputs":·[ |
227 | ················{ | 227 | ················{ |
228 | ····················"ename":·"NameError", | 228 | ····················"ename":·"NameError", |
229 | ····················"evalue":·"name·'air'·is·not·defined", | 229 | ····················"evalue":·"name·'air'·is·not·defined", |
230 | ····················"output_type":·"error", | 230 | ····················"output_type":·"error", |
Offset 246, 18 lines modified | Offset 246, 18 lines modified | ||
246 | ············"execution_count":·6, | 246 | ············"execution_count":·6, |
247 | ············"metadata":·{ | 247 | ············"metadata":·{ |
248 | ················"ExecuteTime":·{ | 248 | ················"ExecuteTime":·{ |
249 | ····················"end_time":·"2020-03-17T14:44:54.334279Z", | 249 | ····················"end_time":·"2020-03-17T14:44:54.334279Z", |
250 | ····················"start_time":·"2020-03-17T14:44:54.280022Z" | 250 | ····················"start_time":·"2020-03-17T14:44:54.280022Z" |
251 | ················}, | 251 | ················}, |
252 | ················"execution":·{ | 252 | ················"execution":·{ |
253 | ····················"iopub.execute_input":·"202 | 253 | ····················"iopub.execute_input":·"2024-01-12T09:47:35.826335Z", |
254 | ····················"iopub.status.busy":·"202 | 254 | ····················"iopub.status.busy":·"2024-01-12T09:47:35.825930Z", |
255 | ····················"iopub.status.idle":·"202 | 255 | ····················"iopub.status.idle":·"2024-01-12T09:47:36.252852Z", |
256 | ····················"shell.execute_reply":·"202 | 256 | ····················"shell.execute_reply":·"2024-01-12T09:47:36.236782Z" |
257 | ················} | 257 | ················} |
258 | ············}, | 258 | ············}, |
259 | ············"outputs":·[ | 259 | ············"outputs":·[ |
260 | ················{ | 260 | ················{ |
261 | ····················"ename":·"NameError", | 261 | ····················"ename":·"NameError", |
262 | ····················"evalue":·"name·'air_weighted'·is·not·defined", | 262 | ····················"evalue":·"name·'air_weighted'·is·not·defined", |
263 | ····················"output_type":·"error", | 263 | ····················"output_type":·"error", |
Offset 288, 18 lines modified | Offset 288, 18 lines modified | ||
288 | ············"execution_count":·7, | 288 | ············"execution_count":·7, |
289 | ············"metadata":·{ | 289 | ············"metadata":·{ |
290 | ················"ExecuteTime":·{ | 290 | ················"ExecuteTime":·{ |
291 | ····················"end_time":·"2020-03-17T14:45:08.877307Z", | 291 | ····················"end_time":·"2020-03-17T14:45:08.877307Z", |
292 | ····················"start_time":·"2020-03-17T14:45:08.673383Z" | 292 | ····················"start_time":·"2020-03-17T14:45:08.673383Z" |
293 | ················}, | 293 | ················}, |
294 | ················"execution":·{ | 294 | ················"execution":·{ |
295 | ····················"iopub.execute_input":·"202 | 295 | ····················"iopub.execute_input":·"2024-01-12T09:47:36.278505Z", |
296 | ····················"iopub.status.busy":·"202 | 296 | ····················"iopub.status.busy":·"2024-01-12T09:47:36.278067Z", |
297 | ····················"iopub.status.idle":·"202 | 297 | ····················"iopub.status.idle":·"2024-01-12T09:47:36.376869Z", |
298 | ····················"shell.execute_reply":·"202 | 298 | ····················"shell.execute_reply":·"2024-01-12T09:47:36.360828Z" |
299 | ················} | 299 | ················} |
300 | ············}, | 300 | ············}, |
Max diff block lines reached; 177/7888 bytes (2.24%) of diff not shown. |
Offset 12, 18 lines modified | Offset 12, 18 lines modified | ||
12 | ········}, | 12 | ········}, |
13 | ········{ | 13 | ········{ |
14 | ············"cell_type":·"code", | 14 | ············"cell_type":·"code", |
15 | ············"execution_count":·1, | 15 | ············"execution_count":·1, |
16 | ············"id":·"41b90ede", | 16 | ············"id":·"41b90ede", |
17 | ············"metadata":·{ | 17 | ············"metadata":·{ |
18 | ················"execution":·{ | 18 | ················"execution":·{ |
19 | ····················"iopub.execute_input":·"202 | 19 | ····················"iopub.execute_input":·"2024-01-12T09:47:47.054870Z", |
20 | ····················"iopub.status.busy":·"202 | 20 | ····················"iopub.status.busy":·"2024-01-12T09:47:47.054298Z", |
21 | ····················"iopub.status.idle":·"202 | 21 | ····················"iopub.status.idle":·"2024-01-12T09:47:51.096950Z", |
22 | ····················"shell.execute_reply":·"202 | 22 | ····················"shell.execute_reply":·"2024-01-12T09:47:51.080903Z" |
23 | ················} | 23 | ················} |
24 | ············}, | 24 | ············}, |
25 | ············"outputs":·[ | 25 | ············"outputs":·[ |
26 | ················{ | 26 | ················{ |
27 | ····················"ename":·"ImportError", | 27 | ····················"ename":·"ImportError", |
28 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 28 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
29 | ····················"output_type":·"error", | 29 | ····················"output_type":·"error", |
Offset 19, 18 lines modified | Offset 19, 18 lines modified | ||
19 | ············"execution_count":·1, | 19 | ············"execution_count":·1, |
20 | ············"metadata":·{ | 20 | ············"metadata":·{ |
21 | ················"ExecuteTime":·{ | 21 | ················"ExecuteTime":·{ |
22 | ····················"end_time":·"2018-11-28T20:51:35.958210Z", | 22 | ····················"end_time":·"2018-11-28T20:51:35.958210Z", |
23 | ····················"start_time":·"2018-11-28T20:51:35.936966Z" | 23 | ····················"start_time":·"2018-11-28T20:51:35.936966Z" |
24 | ················}, | 24 | ················}, |
25 | ················"execution":·{ | 25 | ················"execution":·{ |
26 | ····················"iopub.execute_input":·"202 | 26 | ····················"iopub.execute_input":·"2024-01-12T09:47:58.586810Z", |
27 | ····················"iopub.status.busy":·"202 | 27 | ····················"iopub.status.busy":·"2024-01-12T09:47:58.586315Z", |
28 | ····················"iopub.status.idle":·"202 | 28 | ····················"iopub.status.idle":·"2024-01-12T09:48:03.224868Z", |
29 | ····················"shell.execute_reply":·"202 | 29 | ····················"shell.execute_reply":·"2024-01-12T09:48:03.208852Z" |
30 | ················} | 30 | ················} |
31 | ············}, | 31 | ············}, |
32 | ············"outputs":·[], | 32 | ············"outputs":·[], |
33 | ············"source":·[ | 33 | ············"source":·[ |
34 | ················"%matplotlib·inline\n", | 34 | ················"%matplotlib·inline\n", |
35 | ················"import·numpy·as·np\n", | 35 | ················"import·numpy·as·np\n", |
36 | ················"import·pandas·as·pd\n", | 36 | ················"import·pandas·as·pd\n", |
Offset 50, 18 lines modified | Offset 50, 18 lines modified | ||
50 | ············"execution_count":·2, | 50 | ············"execution_count":·2, |
51 | ············"metadata":·{ | 51 | ············"metadata":·{ |
52 | ················"ExecuteTime":·{ | 52 | ················"ExecuteTime":·{ |
53 | ····················"end_time":·"2018-11-28T20:51:36.072316Z", | 53 | ····················"end_time":·"2018-11-28T20:51:36.072316Z", |
54 | ····················"start_time":·"2018-11-28T20:51:36.016594Z" | 54 | ····················"start_time":·"2018-11-28T20:51:36.016594Z" |
55 | ················}, | 55 | ················}, |
56 | ················"execution":·{ | 56 | ················"execution":·{ |
57 | ····················"iopub.execute_input":·"202 | 57 | ····················"iopub.execute_input":·"2024-01-12T09:48:03.247242Z", |
58 | ····················"iopub.status.busy":·"202 | 58 | ····················"iopub.status.busy":·"2024-01-12T09:48:03.246431Z", |
59 | ····················"iopub.status.idle":·"202 | 59 | ····················"iopub.status.idle":·"2024-01-12T09:48:04.033635Z", |
60 | ····················"shell.execute_reply":·"202 | 60 | ····················"shell.execute_reply":·"2024-01-12T09:48:04.025691Z" |
61 | ················} | 61 | ················} |
62 | ············}, | 62 | ············}, |
63 | ············"outputs":·[ | 63 | ············"outputs":·[ |
64 | ················{ | 64 | ················{ |
65 | ····················"ename":·"ImportError", | 65 | ····················"ename":·"ImportError", |
66 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 66 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
67 | ····················"output_type":·"error", | 67 | ····················"output_type":·"error", |
Offset 96, 18 lines modified | Offset 96, 18 lines modified | ||
96 | ············] | 96 | ············] |
97 | ········}, | 97 | ········}, |
98 | ········{ | 98 | ········{ |
99 | ············"cell_type":·"code", | 99 | ············"cell_type":·"code", |
100 | ············"execution_count":·3, | 100 | ············"execution_count":·3, |
101 | ············"metadata":·{ | 101 | ············"metadata":·{ |
102 | ················"execution":·{ | 102 | ················"execution":·{ |
103 | ····················"iopub.execute_input":·"202 | 103 | ····················"iopub.execute_input":·"2024-01-12T09:48:04.042824Z", |
104 | ····················"iopub.status.busy":·"202 | 104 | ····················"iopub.status.busy":·"2024-01-12T09:48:04.042305Z", |
105 | ····················"iopub.status.idle":·"202 | 105 | ····················"iopub.status.idle":·"2024-01-12T09:48:04.098346Z", |
106 | ····················"shell.execute_reply":·"202 | 106 | ····················"shell.execute_reply":·"2024-01-12T09:48:04.096789Z" |
107 | ················} | 107 | ················} |
108 | ············}, | 108 | ············}, |
109 | ············"outputs":·[ | 109 | ············"outputs":·[ |
110 | ················{ | 110 | ················{ |
111 | ····················"ename":·"NameError", | 111 | ····················"ename":·"NameError", |
112 | ····················"evalue":·"name·'ds'·is·not·defined", | 112 | ····················"evalue":·"name·'ds'·is·not·defined", |
113 | ····················"output_type":·"error", | 113 | ····················"output_type":·"error", |
Offset 129, 18 lines modified | Offset 129, 18 lines modified | ||
129 | ············"execution_count":·4, | 129 | ············"execution_count":·4, |
130 | ············"metadata":·{ | 130 | ············"metadata":·{ |
131 | ················"ExecuteTime":·{ | 131 | ················"ExecuteTime":·{ |
132 | ····················"end_time":·"2018-11-28T20:51:36.132413Z", | 132 | ····················"end_time":·"2018-11-28T20:51:36.132413Z", |
133 | ····················"start_time":·"2018-11-28T20:51:36.073708Z" | 133 | ····················"start_time":·"2018-11-28T20:51:36.073708Z" |
134 | ················}, | 134 | ················}, |
135 | ················"execution":·{ | 135 | ················"execution":·{ |
136 | ····················"iopub.execute_input":·"202 | 136 | ····················"iopub.execute_input":·"2024-01-12T09:48:04.106997Z", |
137 | ····················"iopub.status.busy":·"202 | 137 | ····················"iopub.status.busy":·"2024-01-12T09:48:04.106457Z", |
138 | ····················"iopub.status.idle":·"202 | 138 | ····················"iopub.status.idle":·"2024-01-12T09:48:04.198381Z", |
139 | ····················"shell.execute_reply":·"202 | 139 | ····················"shell.execute_reply":·"2024-01-12T09:48:04.196977Z" |
140 | ················} | 140 | ················} |
141 | ············}, | 141 | ············}, |
142 | ············"outputs":·[ | 142 | ············"outputs":·[ |
143 | ················{ | 143 | ················{ |
144 | ····················"ename":·"NameError", | 144 | ····················"ename":·"NameError", |
145 | ····················"evalue":·"name·'month_length'·is·not·defined", | 145 | ····················"evalue":·"name·'month_length'·is·not·defined", |
146 | ····················"output_type":·"error", | 146 | ····················"output_type":·"error", |
Offset 170, 18 lines modified | Offset 170, 18 lines modified | ||
170 | ············"execution_count":·5, | 170 | ············"execution_count":·5, |
171 | ············"metadata":·{ | 171 | ············"metadata":·{ |
172 | ················"ExecuteTime":·{ | 172 | ················"ExecuteTime":·{ |
173 | ····················"end_time":·"2018-11-28T20:51:36.152913Z", | 173 | ····················"end_time":·"2018-11-28T20:51:36.152913Z", |
174 | ····················"start_time":·"2018-11-28T20:51:36.133997Z" | 174 | ····················"start_time":·"2018-11-28T20:51:36.133997Z" |
175 | ················}, | 175 | ················}, |
176 | ················"execution":·{ | 176 | ················"execution":·{ |
177 | ····················"iopub.execute_input":·"202 | 177 | ····················"iopub.execute_input":·"2024-01-12T09:48:04.210725Z", |
178 | ····················"iopub.status.busy":·"202 | 178 | ····················"iopub.status.busy":·"2024-01-12T09:48:04.210250Z", |
179 | ····················"iopub.status.idle":·"202 | 179 | ····················"iopub.status.idle":·"2024-01-12T09:48:04.274377Z", |
180 | ····················"shell.execute_reply":·"202 | 180 | ····················"shell.execute_reply":·"2024-01-12T09:48:04.272890Z" |
181 | ················} | 181 | ················} |
182 | ············}, | 182 | ············}, |
183 | ············"outputs":·[ | 183 | ············"outputs":·[ |
184 | ················{ | 184 | ················{ |
185 | ····················"ename":·"NameError", | 185 | ····················"ename":·"NameError", |
186 | ····················"evalue":·"name·'ds_weighted'·is·not·defined", | 186 | ····················"evalue":·"name·'ds_weighted'·is·not·defined", |
187 | ····················"output_type":·"error", | 187 | ····················"output_type":·"error", |
Offset 202, 18 lines modified | Offset 202, 18 lines modified | ||
202 | ············"execution_count":·6, | 202 | ············"execution_count":·6, |
203 | ············"metadata":·{ | 203 | ············"metadata":·{ |
204 | ················"ExecuteTime":·{ | 204 | ················"ExecuteTime":·{ |
205 | ····················"end_time":·"2018-11-28T20:51:36.190765Z", | 205 | ····················"end_time":·"2018-11-28T20:51:36.190765Z", |
206 | ····················"start_time":·"2018-11-28T20:51:36.154416Z" | 206 | ····················"start_time":·"2018-11-28T20:51:36.154416Z" |
207 | ················}, | 207 | ················}, |
208 | ················"execution":·{ | 208 | ················"execution":·{ |
209 | ····················"iopub.execute_input":·"202 | 209 | ····················"iopub.execute_input":·"2024-01-12T09:48:04.283143Z", |
210 | ····················"iopub.status.busy":·"202 | 210 | ····················"iopub.status.busy":·"2024-01-12T09:48:04.282623Z", |
211 | ····················"iopub.status.idle":·"202 | 211 | ····················"iopub.status.idle":·"2024-01-12T09:48:04.354414Z", |
212 | ····················"shell.execute_reply":·"202 | 212 | ····················"shell.execute_reply":·"2024-01-12T09:48:04.352846Z" |
213 | ················} | 213 | ················} |
214 | ············}, | 214 | ············}, |
215 | ············"outputs":·[ | 215 | ············"outputs":·[ |
216 | ················{ | 216 | ················{ |
217 | ····················"ename":·"NameError", | 217 | ····················"ename":·"NameError", |
218 | ····················"evalue":·"name·'ds'·is·not·defined", | 218 | ····················"evalue":·"name·'ds'·is·not·defined", |
219 | ····················"output_type":·"error", | 219 | ····················"output_type":·"error", |
Offset 236, 18 lines modified | Offset 236, 18 lines modified | ||
236 | ············"execution_count":·7, | 236 | ············"execution_count":·7, |
237 | ············"metadata":·{ | 237 | ············"metadata":·{ |
238 | ················"ExecuteTime":·{ | 238 | ················"ExecuteTime":·{ |
239 | ····················"end_time":·"2018-11-28T20:51:40.264871Z", | 239 | ····················"end_time":·"2018-11-28T20:51:40.264871Z", |
240 | ····················"start_time":·"2018-11-28T20:51:36.192467Z" | 240 | ····················"start_time":·"2018-11-28T20:51:36.192467Z" |
241 | ················}, | 241 | ················}, |
242 | ················"execution":·{ | 242 | ················"execution":·{ |
243 | ····················"iopub.execute_input":·"202 | 243 | ····················"iopub.execute_input":·"2024-01-12T09:48:04.370796Z", |
244 | ····················"iopub.status.busy":·"202 | 244 | ····················"iopub.status.busy":·"2024-01-12T09:48:04.370303Z", |
245 | ····················"iopub.status.idle":·"202 | 245 | ····················"iopub.status.idle":·"2024-01-12T09:48:04.510793Z", |
246 | ····················"shell.execute_reply":·"202 | 246 | ····················"shell.execute_reply":·"2024-01-12T09:48:04.509232Z" |
247 | ················} | 247 | ················} |
248 | ············}, | 248 | ············}, |
Max diff block lines reached; 1376/8991 bytes (15.30%) of diff not shown. |
Offset 16, 18 lines modified | Offset 16, 18 lines modified | ||
16 | ············"execution_count":·1, | 16 | ············"execution_count":·1, |
17 | ············"metadata":·{ | 17 | ············"metadata":·{ |
18 | ················"ExecuteTime":·{ | 18 | ················"ExecuteTime":·{ |
19 | ····················"end_time":·"2018-11-28T20:49:56.068395Z", | 19 | ····················"end_time":·"2018-11-28T20:49:56.068395Z", |
20 | ····················"start_time":·"2018-11-28T20:49:56.035349Z" | 20 | ····················"start_time":·"2018-11-28T20:49:56.035349Z" |
21 | ················}, | 21 | ················}, |
22 | ················"execution":·{ | 22 | ················"execution":·{ |
23 | ····················"iopub.execute_input":·"202 | 23 | ····················"iopub.execute_input":·"2024-01-12T09:48:13.327281Z", |
24 | ····················"iopub.status.busy":·"202 | 24 | ····················"iopub.status.busy":·"2024-01-12T09:48:13.326616Z", |
25 | ····················"iopub.status.idle":·"202 | 25 | ····················"iopub.status.idle":·"2024-01-12T09:48:16.364923Z", |
26 | ····················"shell.execute_reply":·"202 | 26 | ····················"shell.execute_reply":·"2024-01-12T09:48:16.348841Z" |
27 | ················} | 27 | ················} |
28 | ············}, | 28 | ············}, |
29 | ············"outputs":·[], | 29 | ············"outputs":·[], |
30 | ············"source":·[ | 30 | ············"source":·[ |
31 | ················"%matplotlib·inline\n", | 31 | ················"%matplotlib·inline\n", |
32 | ················"import·numpy·as·np\n", | 32 | ················"import·numpy·as·np\n", |
33 | ················"import·pandas·as·pd\n", | 33 | ················"import·pandas·as·pd\n", |
Offset 48, 18 lines modified | Offset 48, 18 lines modified | ||
48 | ············"execution_count":·2, | 48 | ············"execution_count":·2, |
49 | ············"metadata":·{ | 49 | ············"metadata":·{ |
50 | ················"ExecuteTime":·{ | 50 | ················"ExecuteTime":·{ |
51 | ····················"end_time":·"2018-11-28T20:50:13.629720Z", | 51 | ····················"end_time":·"2018-11-28T20:50:13.629720Z", |
52 | ····················"start_time":·"2018-11-28T20:50:13.484542Z" | 52 | ····················"start_time":·"2018-11-28T20:50:13.484542Z" |
53 | ················}, | 53 | ················}, |
54 | ················"execution":·{ | 54 | ················"execution":·{ |
55 | ····················"iopub.execute_input":·"202 | 55 | ····················"iopub.execute_input":·"2024-01-12T09:48:16.391231Z", |
56 | ····················"iopub.status.busy":·"202 | 56 | ····················"iopub.status.busy":·"2024-01-12T09:48:16.390403Z", |
57 | ····················"iopub.status.idle":·"202 | 57 | ····················"iopub.status.idle":·"2024-01-12T09:48:17.344983Z", |
58 | ····················"shell.execute_reply":·"202 | 58 | ····················"shell.execute_reply":·"2024-01-12T09:48:17.328850Z" |
59 | ················} | 59 | ················} |
60 | ············}, | 60 | ············}, |
61 | ············"outputs":·[ | 61 | ············"outputs":·[ |
62 | ················{ | 62 | ················{ |
63 | ····················"ename":·"ImportError", | 63 | ····················"ename":·"ImportError", |
64 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 64 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
65 | ····················"output_type":·"error", | 65 | ····················"output_type":·"error", |
Offset 93, 18 lines modified | Offset 93, 18 lines modified | ||
93 | ············"execution_count":·3, | 93 | ············"execution_count":·3, |
94 | ············"metadata":·{ | 94 | ············"metadata":·{ |
95 | ················"ExecuteTime":·{ | 95 | ················"ExecuteTime":·{ |
96 | ····················"end_time":·"2018-11-28T20:50:15.836061Z", | 96 | ····················"end_time":·"2018-11-28T20:50:15.836061Z", |
97 | ····················"start_time":·"2018-11-28T20:50:15.768376Z" | 97 | ····················"start_time":·"2018-11-28T20:50:15.768376Z" |
98 | ················}, | 98 | ················}, |
99 | ················"execution":·{ | 99 | ················"execution":·{ |
100 | ····················"iopub.execute_input":·"202 | 100 | ····················"iopub.execute_input":·"2024-01-12T09:48:17.374861Z", |
101 | ····················"iopub.status.busy":·"202 | 101 | ····················"iopub.status.busy":·"2024-01-12T09:48:17.374376Z", |
102 | ····················"iopub.status.idle":·"202 | 102 | ····················"iopub.status.idle":·"2024-01-12T09:48:17.492965Z", |
103 | ····················"shell.execute_reply":·"202 | 103 | ····················"shell.execute_reply":·"2024-01-12T09:48:17.476891Z" |
104 | ················} | 104 | ················} |
105 | ············}, | 105 | ············}, |
106 | ············"outputs":·[ | 106 | ············"outputs":·[ |
107 | ················{ | 107 | ················{ |
108 | ····················"ename":·"NameError", | 108 | ····················"ename":·"NameError", |
109 | ····················"evalue":·"name·'ds'·is·not·defined", | 109 | ····················"evalue":·"name·'ds'·is·not·defined", |
110 | ····················"output_type":·"error", | 110 | ····················"output_type":·"error", |
Offset 135, 18 lines modified | Offset 135, 18 lines modified | ||
135 | ············"execution_count":·4, | 135 | ············"execution_count":·4, |
136 | ············"metadata":·{ | 136 | ············"metadata":·{ |
137 | ················"ExecuteTime":·{ | 137 | ················"ExecuteTime":·{ |
138 | ····················"end_time":·"2018-11-28T20:50:17.928556Z", | 138 | ····················"end_time":·"2018-11-28T20:50:17.928556Z", |
139 | ····················"start_time":·"2018-11-28T20:50:17.031211Z" | 139 | ····················"start_time":·"2018-11-28T20:50:17.031211Z" |
140 | ················}, | 140 | ················}, |
141 | ················"execution":·{ | 141 | ················"execution":·{ |
142 | ····················"iopub.execute_input":·"202 | 142 | ····················"iopub.execute_input":·"2024-01-12T09:48:17.522722Z", |
143 | ····················"iopub.status.busy":·"202 | 143 | ····················"iopub.status.busy":·"2024-01-12T09:48:17.522214Z", |
144 | ····················"iopub.status.idle":·"202 | 144 | ····················"iopub.status.idle":·"2024-01-12T09:48:19.246364Z", |
145 | ····················"shell.execute_reply":·"202 | 145 | ····················"shell.execute_reply":·"2024-01-12T09:48:19.244846Z" |
146 | ················} | 146 | ················} |
147 | ············}, | 147 | ············}, |
148 | ············"outputs":·[ | 148 | ············"outputs":·[ |
149 | ················{ | 149 | ················{ |
150 | ····················"ename":·"NameError", | 150 | ····················"ename":·"NameError", |
151 | ····················"evalue":·"name·'ds'·is·not·defined", | 151 | ····················"evalue":·"name·'ds'·is·not·defined", |
152 | ····················"output_type":·"error", | 152 | ····················"output_type":·"error", |
Offset 188, 18 lines modified | Offset 188, 18 lines modified | ||
188 | ············"execution_count":·5, | 188 | ············"execution_count":·5, |
189 | ············"metadata":·{ | 189 | ············"metadata":·{ |
190 | ················"ExecuteTime":·{ | 190 | ················"ExecuteTime":·{ |
191 | ····················"end_time":·"2018-11-28T20:50:20.567749Z", | 191 | ····················"end_time":·"2018-11-28T20:50:20.567749Z", |
192 | ····················"start_time":·"2018-11-28T20:50:19.999393Z" | 192 | ····················"start_time":·"2018-11-28T20:50:19.999393Z" |
193 | ················}, | 193 | ················}, |
194 | ················"execution":·{ | 194 | ················"execution":·{ |
195 | ····················"iopub.execute_input":·"202 | 195 | ····················"iopub.execute_input":·"2024-01-12T09:48:19.260381Z", |
196 | ····················"iopub.status.busy":·"202 | 196 | ····················"iopub.status.busy":·"2024-01-12T09:48:19.259849Z", |
197 | ····················"iopub.status.idle":·"202 | 197 | ····················"iopub.status.idle":·"2024-01-12T09:48:19.326496Z", |
198 | ····················"shell.execute_reply":·"202 | 198 | ····················"shell.execute_reply":·"2024-01-12T09:48:19.324915Z" |
199 | ················} | 199 | ················} |
200 | ············}, | 200 | ············}, |
201 | ············"outputs":·[ | 201 | ············"outputs":·[ |
202 | ················{ | 202 | ················{ |
203 | ····················"ename":·"NameError", | 203 | ····················"ename":·"NameError", |
204 | ····················"evalue":·"name·'ds'·is·not·defined", | 204 | ····················"evalue":·"name·'ds'·is·not·defined", |
205 | ····················"output_type":·"error", | 205 | ····················"output_type":·"error", |
Offset 227, 18 lines modified | Offset 227, 18 lines modified | ||
227 | ············"execution_count":·6, | 227 | ············"execution_count":·6, |
228 | ············"metadata":·{ | 228 | ············"metadata":·{ |
229 | ················"ExecuteTime":·{ | 229 | ················"ExecuteTime":·{ |
230 | ····················"end_time":·"2018-11-28T20:50:31.131708Z", | 230 | ····················"end_time":·"2018-11-28T20:50:31.131708Z", |
231 | ····················"start_time":·"2018-11-28T20:50:30.444697Z" | 231 | ····················"start_time":·"2018-11-28T20:50:30.444697Z" |
232 | ················}, | 232 | ················}, |
233 | ················"execution":·{ | 233 | ················"execution":·{ |
234 | ····················"iopub.execute_input":·"202 | 234 | ····················"iopub.execute_input":·"2024-01-12T09:48:19.346839Z", |
235 | ····················"iopub.status.busy":·"202 | 235 | ····················"iopub.status.busy":·"2024-01-12T09:48:19.346316Z", |
236 | ····················"iopub.status.idle":·"202 | 236 | ····················"iopub.status.idle":·"2024-01-12T09:48:19.794573Z", |
237 | ····················"shell.execute_reply":·"202 | 237 | ····················"shell.execute_reply":·"2024-01-12T09:48:19.792857Z" |
238 | ················} | 238 | ················} |
239 | ············}, | 239 | ············}, |
240 | ············"outputs":·[ | 240 | ············"outputs":·[ |
241 | ················{ | 241 | ················{ |
242 | ····················"ename":·"NameError", | 242 | ····················"ename":·"NameError", |
243 | ····················"evalue":·"name·'ds'·is·not·defined", | 243 | ····················"evalue":·"name·'ds'·is·not·defined", |
244 | ····················"output_type":·"error", | 244 | ····················"output_type":·"error", |
Offset 285, 18 lines modified | Offset 285, 18 lines modified | ||
285 | ············"execution_count":·7, | 285 | ············"execution_count":·7, |
286 | ············"metadata":·{ | 286 | ············"metadata":·{ |
287 | ················"ExecuteTime":·{ | 287 | ················"ExecuteTime":·{ |
288 | ····················"end_time":·"2018-11-28T20:50:43.670463Z", | 288 | ····················"end_time":·"2018-11-28T20:50:43.670463Z", |
289 | ····················"start_time":·"2018-11-28T20:50:43.245501Z" | 289 | ····················"start_time":·"2018-11-28T20:50:43.245501Z" |
290 | ················}, | 290 | ················}, |
291 | ················"execution":·{ | 291 | ················"execution":·{ |
292 | ····················"iopub.execute_input":·"202 | 292 | ····················"iopub.execute_input":·"2024-01-12T09:48:19.810619Z", |
293 | ····················"iopub.status.busy":·"202 | 293 | ····················"iopub.status.busy":·"2024-01-12T09:48:19.810115Z", |
294 | ····················"iopub.status.idle":·"202 | 294 | ····················"iopub.status.idle":·"2024-01-12T09:48:19.894444Z", |
295 | ····················"shell.execute_reply":·"202 | 295 | ····················"shell.execute_reply":·"2024-01-12T09:48:19.892807Z" |
296 | ················} | 296 | ················} |
297 | ············}, | 297 | ············}, |
Max diff block lines reached; 166/7873 bytes (2.11%) of diff not shown. |
Offset 574, 15 lines modified | Offset 574, 15 lines modified | ||
574 | </div> | 574 | </div> |
575 | </div> | 575 | </div> |
576 | <div·class="nboutput·docutils·container"> | 576 | <div·class="nboutput·docutils·container"> |
577 | <div·class="prompt·empty·docutils·container"> | 577 | <div·class="prompt·empty·docutils·container"> |
578 | </div> | 578 | </div> |
579 | <div·class="output_area·stderr·docutils·container"> | 579 | <div·class="output_area·stderr·docutils·container"> |
580 | <div·class="highlight"><pre> | 580 | <div·class="highlight"><pre> |
581 | /tmp/ipykernel_ | 581 | /tmp/ipykernel_1285013/2946363816.py:1:·DeprecationWarning:·open_rasterio·is·Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:·https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html |
582 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") | 582 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") |
583 | </pre></div></div> | 583 | </pre></div></div> |
584 | </div> | 584 | </div> |
585 | <div·class="nboutput·nblast·docutils·container"> | 585 | <div·class="nboutput·nblast·docutils·container"> |
586 | <div·class="prompt·empty·docutils·container"> | 586 | <div·class="prompt·empty·docutils·container"> |
587 | </div> | 587 | </div> |
588 | <div·class="output_area·docutils·container"> | 588 | <div·class="output_area·docutils·container"> |
Offset 657, 15 lines modified | Offset 657, 15 lines modified | ||
657 | </div> | 657 | </div> |
658 | </div> | 658 | </div> |
659 | <div·class="nboutput·docutils·container"> | 659 | <div·class="nboutput·docutils·container"> |
660 | <div·class="prompt·empty·docutils·container"> | 660 | <div·class="prompt·empty·docutils·container"> |
661 | </div> | 661 | </div> |
662 | <div·class="output_area·stderr·docutils·container"> | 662 | <div·class="output_area·stderr·docutils·container"> |
663 | <div·class="highlight"><pre> | 663 | <div·class="highlight"><pre> |
664 | /tmp/ipykernel_ | 664 | /tmp/ipykernel_1285013/3653941964.py:4:·DeprecationWarning:·open_rasterio·is·Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:·https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html |
665 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") | 665 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") |
666 | </pre></div></div> | 666 | </pre></div></div> |
667 | </div> | 667 | </div> |
668 | <div·class="nboutput·nblast·docutils·container"> | 668 | <div·class="nboutput·nblast·docutils·container"> |
669 | <div·class="prompt·empty·docutils·container"> | 669 | <div·class="prompt·empty·docutils·container"> |
670 | </div> | 670 | </div> |
671 | <div·class="output_area·docutils·container"> | 671 | <div·class="output_area·docutils·container"> |
Offset 210, 15 lines modified | Offset 210, 15 lines modified | ||
210 | #·https://github.com/SciTools/cartopy/issues/813·is·implemented | 210 | #·https://github.com/SciTools/cartopy/issues/813·is·implemented |
211 | crs·=·ccrs.UTM("18") | 211 | crs·=·ccrs.UTM("18") |
212 | #·Plot·on·a·map | 212 | #·Plot·on·a·map |
213 | ax·=·plt.subplot(projection=crs) | 213 | ax·=·plt.subplot(projection=crs) |
214 | da.plot.imshow(ax=ax,·rgb="band",·transform=crs) | 214 | da.plot.imshow(ax=ax,·rgb="band",·transform=crs) |
215 | ax.coastlines("10m",·color="r") | 215 | ax.coastlines("10m",·color="r") |
216 | /tmp/ipykernel_ | 216 | /tmp/ipykernel_1285013/2946363816.py:1:·DeprecationWarning:·open_rasterio·is |
217 | Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see: | 217 | Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see: |
218 | https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html | 218 | https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html |
219 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") | 219 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") |
220 | --------------------------------------------------------------------------- | 220 | --------------------------------------------------------------------------- |
221 | ModuleNotFoundError·······················Traceback·(most·recent·call·last) | 221 | ModuleNotFoundError·······················Traceback·(most·recent·call·last) |
222 | File·/build/reproducible-path/python-xarray-2023.01.0/xarray/tutorial.py:222, | 222 | File·/build/reproducible-path/python-xarray-2023.01.0/xarray/tutorial.py:222, |
223 | in·open_rasterio(name,·engine,·cache,·cache_dir,·**kws) | 223 | in·open_rasterio(name,·engine,·cache,·cache_dir,·**kws) |
Offset 282, 15 lines modified | Offset 282, 15 lines modified | ||
282 | ····y="lat", | 282 | ····y="lat", |
283 | ····transform=ccrs.PlateCarree(), | 283 | ····transform=ccrs.PlateCarree(), |
284 | ····cmap="Greys_r", | 284 | ····cmap="Greys_r", |
285 | ····shading="auto", | 285 | ····shading="auto", |
286 | ····add_colorbar=False, | 286 | ····add_colorbar=False, |
287 | ) | 287 | ) |
288 | ax.coastlines("10m",·color="r") | 288 | ax.coastlines("10m",·color="r") |
289 | /tmp/ipykernel_ | 289 | /tmp/ipykernel_1285013/3653941964.py:4:·DeprecationWarning:·open_rasterio·is |
290 | Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see: | 290 | Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see: |
291 | https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html | 291 | https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html |
292 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") | 292 | ··da·=·xr.tutorial.open_rasterio("RGB.byte") |
293 | --------------------------------------------------------------------------- | 293 | --------------------------------------------------------------------------- |
294 | ModuleNotFoundError·······················Traceback·(most·recent·call·last) | 294 | ModuleNotFoundError·······················Traceback·(most·recent·call·last) |
295 | File·/build/reproducible-path/python-xarray-2023.01.0/xarray/tutorial.py:222, | 295 | File·/build/reproducible-path/python-xarray-2023.01.0/xarray/tutorial.py:222, |
296 | in·open_rasterio(name,·engine,·cache,·cache_dir,·**kws) | 296 | in·open_rasterio(name,·engine,·cache,·cache_dir,·**kws) |
Offset 10, 18 lines modified | Offset 10, 18 lines modified | ||
10 | ············] | 10 | ············] |
11 | ········}, | 11 | ········}, |
12 | ········{ | 12 | ········{ |
13 | ············"cell_type":·"code", | 13 | ············"cell_type":·"code", |
14 | ············"execution_count":·1, | 14 | ············"execution_count":·1, |
15 | ············"metadata":·{ | 15 | ············"metadata":·{ |
16 | ················"execution":·{ | 16 | ················"execution":·{ |
17 | ····················"iopub.execute_input":·"202 | 17 | ····················"iopub.execute_input":·"2024-01-12T09:48:28.938775Z", |
18 | ····················"iopub.status.busy":·"202 | 18 | ····················"iopub.status.busy":·"2024-01-12T09:48:28.938205Z", |
19 | ····················"iopub.status.idle":·"202 | 19 | ····················"iopub.status.idle":·"2024-01-12T09:48:33.882079Z", |
20 | ····················"shell.execute_reply":·"202 | 20 | ····················"shell.execute_reply":·"2024-01-12T09:48:33.880802Z" |
21 | ················} | 21 | ················} |
22 | ············}, | 22 | ············}, |
23 | ············"outputs":·[], | 23 | ············"outputs":·[], |
24 | ············"source":·[ | 24 | ············"source":·[ |
25 | ················"import·cartopy.crs·as·ccrs\n", | 25 | ················"import·cartopy.crs·as·ccrs\n", |
26 | ················"import·matplotlib.pyplot·as·plt\n", | 26 | ················"import·matplotlib.pyplot·as·plt\n", |
27 | ················"import·xarray·as·xr\n", | 27 | ················"import·xarray·as·xr\n", |
Offset 37, 18 lines modified | Offset 37, 18 lines modified | ||
37 | ············] | 37 | ············] |
38 | ········}, | 38 | ········}, |
39 | ········{ | 39 | ········{ |
40 | ············"cell_type":·"code", | 40 | ············"cell_type":·"code", |
41 | ············"execution_count":·2, | 41 | ············"execution_count":·2, |
42 | ············"metadata":·{ | 42 | ············"metadata":·{ |
43 | ················"execution":·{ | 43 | ················"execution":·{ |
44 | ····················"iopub.execute_input":·"202 | 44 | ····················"iopub.execute_input":·"2024-01-12T09:48:33.892895Z", |
45 | ····················"iopub.status.busy":·"202 | 45 | ····················"iopub.status.busy":·"2024-01-12T09:48:33.892139Z", |
46 | ····················"iopub.status.idle":·"202 | 46 | ····················"iopub.status.idle":·"2024-01-12T09:48:34.530865Z", |
47 | ····················"shell.execute_reply":·"202 | 47 | ····················"shell.execute_reply":·"2024-01-12T09:48:34.529325Z" |
48 | ················} | 48 | ················} |
49 | ············}, | 49 | ············}, |
50 | ············"outputs":·[ | 50 | ············"outputs":·[ |
51 | ················{ | 51 | ················{ |
52 | ····················"ename":·"ImportError", | 52 | ····················"ename":·"ImportError", |
53 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", | 53 | ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.", |
54 | ····················"output_type":·"error", | 54 | ····················"output_type":·"error", |
Offset 85, 18 lines modified | Offset 85, 18 lines modified | ||
85 | ············] | 85 | ············] |
86 | ········}, | 86 | ········}, |
87 | ········{ | 87 | ········{ |
88 | ············"cell_type":·"code", | 88 | ············"cell_type":·"code", |
89 | ············"execution_count":·3, | 89 | ············"execution_count":·3, |
90 | ············"metadata":·{ | 90 | ············"metadata":·{ |
91 | ················"execution":·{ | 91 | ················"execution":·{ |
92 | ····················"iopub.execute_input":·"202 | 92 | ····················"iopub.execute_input":·"2024-01-12T09:48:34.547010Z", |
93 | ····················"iopub.status.busy":·"202 | 93 | ····················"iopub.status.busy":·"2024-01-12T09:48:34.546511Z", |
94 | ····················"iopub.status.idle":·"202 | 94 | ····················"iopub.status.idle":·"2024-01-12T09:48:34.612128Z", |
95 | ····················"shell.execute_reply":·"202 | 95 | ····················"shell.execute_reply":·"2024-01-12T09:48:34.606975Z" |
96 | ················} | 96 | ················} |
97 | ············}, | 97 | ············}, |
98 | ············"outputs":·[ | 98 | ············"outputs":·[ |
99 | ················{ | 99 | ················{ |
100 | ····················"ename":·"NameError", | 100 | ····················"ename":·"NameError", |
101 | ····················"evalue":·"name·'ds'·is·not·defined", | 101 | ····················"evalue":·"name·'ds'·is·not·defined", |
102 | ····················"output_type":·"error", | 102 | ····················"output_type":·"error", |
Offset 138, 18 lines modified | Offset 138, 18 lines modified | ||
138 | ············] | 138 | ············] |
139 | ········}, | 139 | ········}, |
140 | ········{ | 140 | ········{ |
141 | ············"cell_type":·"code", | 141 | ············"cell_type":·"code", |
142 | ············"execution_count":·4, | 142 | ············"execution_count":·4, |
143 | ············"metadata":·{ | 143 | ············"metadata":·{ |
144 | ················"execution":·{ | 144 | ················"execution":·{ |
145 | ····················"iopub.execute_input":·"202 | 145 | ····················"iopub.execute_input":·"2024-01-12T09:48:34.630608Z", |
146 | ····················"iopub.status.busy":·"202 | 146 | ····················"iopub.status.busy":·"2024-01-12T09:48:34.630097Z", |
147 | ····················"iopub.status.idle":·"202 | 147 | ····················"iopub.status.idle":·"2024-01-12T09:48:34.718426Z", |
148 | ····················"shell.execute_reply":·"202 | 148 | ····················"shell.execute_reply":·"2024-01-12T09:48:34.716885Z" |
149 | ················} | 149 | ················} |
150 | ············}, | 150 | ············}, |
151 | ············"outputs":·[ | 151 | ············"outputs":·[ |
152 | ················{ | 152 | ················{ |
153 | ····················"ename":·"NameError", | 153 | ····················"ename":·"NameError", |
154 | ····················"evalue":·"name·'ds'·is·not·defined", | 154 | ····················"evalue":·"name·'ds'·is·not·defined", |
155 | ····················"output_type":·"error", | 155 | ····················"output_type":·"error", |
Offset 202, 18 lines modified | Offset 202, 18 lines modified | ||
202 | ············] | 202 | ············] |
203 | ········}, | 203 | ········}, |
204 | ········{ | 204 | ········{ |
205 | ············"cell_type":·"code", | 205 | ············"cell_type":·"code", |
206 | ············"execution_count":·5, | 206 | ············"execution_count":·5, |
207 | ············"metadata":·{ | 207 | ············"metadata":·{ |
208 | ················"execution":·{ | 208 | ················"execution":·{ |
209 | ····················"iopub.execute_input":·"202 | 209 | ····················"iopub.execute_input":·"2024-01-12T09:48:34.731627Z", |
210 | ····················"iopub.status.busy":·"202 | 210 | ····················"iopub.status.busy":·"2024-01-12T09:48:34.731203Z", |
211 | ····················"iopub.status.idle":·"202 | 211 | ····················"iopub.status.idle":·"2024-01-12T09:48:34.832387Z", |
212 | ····················"shell.execute_reply":·"202 | 212 | ····················"shell.execute_reply":·"2024-01-12T09:48:34.820874Z" |
213 | ················} | 213 | ················} |
214 | ············}, | 214 | ············}, |
215 | ············"outputs":·[ | 215 | ············"outputs":·[ |
216 | ················{ | 216 | ················{ |
217 | ····················"ename":·"NameError", | 217 | ····················"ename":·"NameError", |
218 | ····················"evalue":·"name·'ds'·is·not·defined", | 218 | ····················"evalue":·"name·'ds'·is·not·defined", |
219 | ····················"output_type":·"error", | 219 | ····················"output_type":·"error", |
Offset 258, 18 lines modified | Offset 258, 18 lines modified | ||
258 | ············] | 258 | ············] |
259 | ········}, | 259 | ········}, |
260 | ········{ | 260 | ········{ |
261 | ············"cell_type":·"code", | 261 | ············"cell_type":·"code", |
262 | ············"execution_count":·6, | 262 | ············"execution_count":·6, |
263 | ············"metadata":·{ | 263 | ············"metadata":·{ |
264 | ················"execution":·{ | 264 | ················"execution":·{ |
265 | ····················"iopub.execute_input":·"202 | 265 | ····················"iopub.execute_input":·"2024-01-12T09:48:34.847430Z", |
266 | ····················"iopub.status.busy":·"202 | 266 | ····················"iopub.status.busy":·"2024-01-12T09:48:34.846701Z", |
267 | ····················"iopub.status.idle":·"202 | 267 | ····················"iopub.status.idle":·"2024-01-12T09:48:34.981050Z", |
268 | ····················"shell.execute_reply":·"202 | 268 | ····················"shell.execute_reply":·"2024-01-12T09:48:34.964907Z" |
269 | ················} | 269 | ················} |
270 | ············}, | 270 | ············}, |
271 | ············"outputs":·[ | 271 | ············"outputs":·[ |
272 | ················{ | 272 | ················{ |
273 | ····················"ename":·"NameError", | 273 | ····················"ename":·"NameError", |
274 | ····················"evalue":·"name·'ds'·is·not·defined", | 274 | ····················"evalue":·"name·'ds'·is·not·defined", |
275 | ····················"output_type":·"error", | 275 | ····················"output_type":·"error", |
Offset 320, 26 lines modified | Offset 320, 26 lines modified | ||
320 | ············] | 320 | ············] |
321 | ········}, | 321 | ········}, |
322 | ········{ | 322 | ········{ |
323 | ············"cell_type":·"code", | 323 | ············"cell_type":·"code", |
324 | ············"execution_count":·7, | 324 | ············"execution_count":·7, |
325 | ············"metadata":·{ | 325 | ············"metadata":·{ |
326 | ················"execution":·{ | 326 | ················"execution":·{ |
327 | ····················"iopub.execute_input":·"202 | 327 | ····················"iopub.execute_input":·"2024-01-12T09:48:34.995683Z", |
328 | ····················"iopub.status.busy":·"202 | 328 | ····················"iopub.status.busy":·"2024-01-12T09:48:34.995216Z", |
329 | ····················"iopub.status.idle":·"202 | 329 | ····················"iopub.status.idle":·"2024-01-12T09:48:35.360484Z", |
330 | ····················"shell.execute_reply":·"202 | 330 | ····················"shell.execute_reply":·"2024-01-12T09:48:35.358695Z" |
331 | ················} | 331 | ················} |
332 | ············}, | 332 | ············}, |
Max diff block lines reached; 2897/9848 bytes (29.42%) of diff not shown. |
Offset 705, 37 lines modified | Offset 705, 37 lines modified | ||
705 | </style><pre·class='xr-text-repr-fallback'><xarray.Dataset> | 705 | </style><pre·class='xr-text-repr-fallback'><xarray.Dataset> |
706 | Dimensions:···(time:·731,·location:·3) | 706 | Dimensions:···(time:·731,·location:·3) |
707 | Coordinates: | 707 | Coordinates: |
708 | ··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31 | 708 | ··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31 |
709 | ··*·location··(location)·<U2·'IA'·'IN'·'IL' | 709 | ··*·location··(location)·<U2·'IA'·'IN'·'IL' |
710 | Data·variables: | 710 | Data·variables: |
711 | ····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544 | 711 | ····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544 |
712 | ····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 712 | ····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·240979ccded080936a08150c9a6204f21b7ead3b93bd475c89a94be9b3c43c29·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000', |
713 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', | 713 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', |
714 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], | 714 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], |
715 | ······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 715 | ······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-e1551431-30d7-4e4e-8453-472687f202bf'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-e1551431-30d7-4e4e-8453-472687f202bf'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·7dbdcdc157dfe70269a3e310a5cdaa8c76f2ee9f3957a766f2c36ce6004aa43d·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201], |
716 | ·······[·-9.34115662,··-6.55807323,···0.13203714], | 716 | ·······[·-9.34115662,··-6.55807323,···0.13203714], |
717 | ·······[-12.13971902,··-6.14641918,··-1.06187252], | 717 | ·······[-12.13971902,··-6.14641918,··-1.06187252], |
718 | ·······..., | 718 | ·······..., |
719 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 719 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
720 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 720 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
721 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs- | 721 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·94e46468436b897095074362ceb0726a90c672ea4e24fa3ef469da83e011d1de·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382], |
722 | ·······[·0.44785582,··6.37271154,··4.8434966·], | 722 | ·······[·0.44785582,··6.37271154,··4.8434966·], |
723 | ·······[·5.32269851,··6.25176289,··5.98033045], | 723 | ·······[·5.32269851,··6.25176289,··5.98033045], |
724 | ·······..., | 724 | ·······..., |
725 | ·······[·6.73078492,··7.74795302,··8.04569651], | 725 | ·······[·6.73078492,··7.74795302,··8.04569651], |
726 | ·······[·6.46376911,··6.31695352,··1.55799171], | 726 | ·······[·6.46376911,··6.31695352,··1.55799171], |
727 | ·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 727 | ·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·1cc01914148f7ae7f1ff133d44ffb1a67be705cca1d7d12fbb786cc77323dbdb·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2000-01-01',·'2000-01-02',·'2000-01-03',·'2000-01-04', |
728 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', | 728 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', |
729 | ···············'2000-01-09',·'2000-01-10', | 729 | ···············'2000-01-09',·'2000-01-10', |
730 | ···············... | 730 | ···············... |
731 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', | 731 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', |
732 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', | 732 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', |
733 | ···············'2001-12-30',·'2001-12-31'], | 733 | ···············'2001-12-30',·'2001-12-31'], |
734 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><div></div><input·id='index- | 734 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><div></div><input·id='index-7019bfb3-f205-4f9c-b19e-ed4840061e73'·class='xr-index-data-in'·type='checkbox'/><label·for='index-7019bfb3-f205-4f9c-b19e-ed4840061e73'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·8f9c7299a66a27e3de4230f7f312cc4f0007d7ffbc993ee6e0ab8b0d309b8753·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
735 | </div> | 735 | </div> |
736 | <section·id="Examine-a-dataset-with-pandas-and-seaborn"> | 736 | <section·id="Examine-a-dataset-with-pandas-and-seaborn"> |
737 | <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Permalink·to·this·heading">¶</a></h2> | 737 | <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Permalink·to·this·heading">¶</a></h2> |
738 | <section·id="Convert-to-a-pandas-DataFrame"> | 738 | <section·id="Convert-to-a-pandas-DataFrame"> |
739 | <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Permalink·to·this·heading">¶</a></h3> | 739 | <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Permalink·to·this·heading">¶</a></h3> |
740 | <div·class="nbinput·docutils·container"> | 740 | <div·class="nbinput·docutils·container"> |
741 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: | 741 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: |
Offset 932, 15 lines modified | Offset 932, 15 lines modified | ||
932 | </div> | 932 | </div> |
933 | <div·class="nboutput·docutils·container"> | 933 | <div·class="nboutput·docutils·container"> |
934 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[5]: | 934 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[5]: |
935 | </pre></div> | 935 | </pre></div> |
936 | </div> | 936 | </div> |
937 | <div·class="output_area·docutils·container"> | 937 | <div·class="output_area·docutils·container"> |
938 | <div·class="highlight"><pre> | 938 | <div·class="highlight"><pre> |
939 | <seaborn.axisgrid.PairGrid·at·0x7f | 939 | <seaborn.axisgrid.PairGrid·at·0x7f00ce57a690> |
940 | </pre></div></div> | 940 | </pre></div></div> |
941 | </div> | 941 | </div> |
942 | <div·class="nboutput·nblast·docutils·container"> | 942 | <div·class="nboutput·nblast·docutils·container"> |
943 | <div·class="prompt·empty·docutils·container"> | 943 | <div·class="prompt·empty·docutils·container"> |
944 | </div> | 944 | </div> |
945 | <div·class="output_area·docutils·container"> | 945 | <div·class="output_area·docutils·container"> |
946 | <img·alt="../_images/examples_weather-data_9_1.png"·src="../_images/examples_weather-data_9_1.png"·/> | 946 | <img·alt="../_images/examples_weather-data_9_1.png"·src="../_images/examples_weather-data_9_1.png"·/> |
Offset 1338, 26 lines modified | Offset 1338, 26 lines modified | ||
1338 | ·······[0.········,·0.········,·0.········], | 1338 | ·······[0.········,·0.········,·0.········], |
1339 | ·······[0.········,·0.········,·0.········], | 1339 | ·······[0.········,·0.········,·0.········], |
1340 | ·······[0.········,·0.01612903,·0.········], | 1340 | ·······[0.········,·0.01612903,·0.········], |
1341 | ·······[0.33333333,·0.35······,·0.23333333], | 1341 | ·······[0.33333333,·0.35······,·0.23333333], |
1342 | ·······[0.93548387,·0.85483871,·0.82258065]]) | 1342 | ·······[0.93548387,·0.85483871,·0.82258065]]) |
1343 | Coordinates: | 1343 | Coordinates: |
1344 | ··*·location··(location)·<U2·'IA'·'IN'·'IL' | 1344 | ··*·location··(location)·<U2·'IA'·'IN'·'IL' |
1345 | ··*·month·····(month)·int64·1·2·3·4·5·6·7·8·9·10·11·12</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.DataArray</div><div·class='xr-array-name'>'tmin'</div><ul·class='xr-dim-list'><li><span·class='xr-has-index'>month</span>:·12</li><li><span·class='xr-has-index'>location</span>:·3</li></ul></div><ul·class='xr-sections'><li·class='xr-section-item'><div·class='xr-array-wrap'><input·id='section- | 1345 | ··*·month·····(month)·int64·1·2·3·4·5·6·7·8·9·10·11·12</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.DataArray</div><div·class='xr-array-name'>'tmin'</div><ul·class='xr-dim-list'><li><span·class='xr-has-index'>month</span>:·12</li><li><span·class='xr-has-index'>location</span>:·3</li></ul></div><ul·class='xr-sections'><li·class='xr-section-item'><div·class='xr-array-wrap'><input·id='section-bfbc1a04-bb49-4239-b8b2-835699ad0538'·class='xr-array-in'·type='checkbox'·checked><label·for='section-bfbc1a04-bb49-4239-b8b2-835699ad0538'·title='Show/hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-array-preview·xr-preview'><span>0.9516·0.8871·0.9355·0.8421·0.7193·...·0.2333·0.9355·0.8548·0.8226</span></div><div·class='xr-array-data'><pre>array([[0.9516129·,·0.88709677,·0.93548387], |
1346 | ·······[0.84210526,·0.71929825,·0.77192982], | 1346 | ·······[0.84210526,·0.71929825,·0.77192982], |
1347 | ·······[0.24193548,·0.12903226,·0.16129032], | 1347 | ·······[0.24193548,·0.12903226,·0.16129032], |
1348 | ·······[0.········,·0.········,·0.········], | 1348 | ·······[0.········,·0.········,·0.········], |
1349 | ·······[0.········,·0.········,·0.········], | 1349 | ·······[0.········,·0.········,·0.········], |
1350 | ·······[0.········,·0.········,·0.········], | 1350 | ·······[0.········,·0.········,·0.········], |
1351 | ·······[0.········,·0.········,·0.········], | 1351 | ·······[0.········,·0.········,·0.········], |
1352 | ·······[0.········,·0.········,·0.········], | 1352 | ·······[0.········,·0.········,·0.········], |
1353 | ·······[0.········,·0.········,·0.········], | 1353 | ·······[0.········,·0.········,·0.········], |
1354 | ·······[0.········,·0.01612903,·0.········], | 1354 | ·······[0.········,·0.01612903,·0.········], |
1355 | ·······[0.33333333,·0.35······,·0.23333333], | 1355 | ·······[0.33333333,·0.35······,·0.23333333], |
1356 | ·······[0.93548387,·0.85483871,·0.82258065]])</pre></div></div></li><li·class='xr-section-item'><input·id='section- | 1356 | ·······[0.93548387,·0.85483871,·0.82258065]])</pre></div></div></li><li·class='xr-section-item'><input·id='section-4f1199be-6436-4ed9-863f-3f766c8492f6'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-4f1199be-6436-4ed9-863f-3f766c8492f6'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3721,·SHA:·ea4753a6a8d4d40f3e96e3abbb6586b9f77ba745c5379cdcaa62d1e029520664·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
1357 | </div> | 1357 | </div> |
1358 | <div·class="nbinput·docutils·container"> | 1358 | <div·class="nbinput·docutils·container"> |
1359 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[7]: | 1359 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[7]: |
1360 | </pre></div> | 1360 | </pre></div> |
1361 | </div> | 1361 | </div> |
1362 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">freeze</span><span·class="o">.</span><span·class="n">to_pandas</span><span·class="p">()</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 1362 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">freeze</span><span·class="o">.</span><span·class="n">to_pandas</span><span·class="p">()</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
1363 | </pre></div> | 1363 | </pre></div> |
Offset 1863, 18 lines modified | Offset 1863, 18 lines modified | ||
1863 | Dimensions:·······(time:·731,·location:·3) | 1863 | Dimensions:·······(time:·731,·location:·3) |
1864 | Coordinates: | 1864 | Coordinates: |
1865 | ··*·time··········(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31 | 1865 | ··*·time··········(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31 |
1866 | ··*·location······(location)·<U2·'IA'·'IN'·'IL' | 1866 | ··*·location······(location)·<U2·'IA'·'IN'·'IL' |
1867 | ····month·········(time)·int64·1·1·1·1·1·1·1·1·1·...·12·12·12·12·12·12·12·12·12 | 1867 | ····month·········(time)·int64·1·1·1·1·1·1·1·1·1·...·12·12·12·12·12·12·12·12·12 |
1868 | Data·variables: | 1868 | Data·variables: |
1869 | ····some_missing··(time,·location)·float64·nan·nan·nan·...·2.063·-1.346·-4.544 | 1869 | ····some_missing··(time,·location)·float64·nan·nan·nan·...·2.063·-1.346·-4.544 |
1870 | ····filled········(time,·location)·float64·-5.163·-4.216·...·-1.346·-4.544</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 1870 | ····filled········(time,·location)·float64·-5.163·-4.216·...·-1.346·-4.544</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-215da39f-2e50-4841-a9f6-21849426f680'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-215da39f-2e50-4841-a9f6-21849426f680'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·51c54430f57b5a737286d4dd4821b8c12aac98a2650dbd56c05e8a563f4d774e·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000', |
1871 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', | 1871 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', |
1872 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], | 1872 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], |
1873 | ······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 1873 | ······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-3fba73de-40b0-46cd-acaa-8d316df1f784'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-3fba73de-40b0-46cd-acaa-8d316df1f784'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1112,·SHA:·1ffea3ef9e628245c10788929d29f574316b4bade3d4c217e5e5d8672280cfdc·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([·1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1, |
1874 | ········1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··2,··2,··2, | 1874 | ········1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··2,··2,··2, |
1875 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2, | 1875 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2, |
1876 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··3,··3,··3,··3,··3,··3,··3,··3, | 1876 | ········2,··2,··2,··2,··2,··2,··2,··2,··2,··3,··3,··3,··3,··3,··3,··3,··3, |
1877 | ········3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3, | 1877 | ········3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3, |
1878 | ········3,··3,··3,··3,··3,··3,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, | 1878 | ········3,··3,··3,··3,··3,··3,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, |
1879 | ········4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, | 1879 | ········4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4, |
1880 | ········4,··4,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5, | 1880 | ········4,··4,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5, |
Offset 1906, 34 lines modified | Offset 1906, 34 lines modified | ||
1906 | ········8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··9,··9,··9, | 1906 | ········8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··9,··9,··9, |
1907 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9, | 1907 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9, |
1908 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10, | 1908 | ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10, |
1909 | ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10, | 1909 | ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10, |
1910 | ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, | 1910 | ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, |
1911 | ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, | 1911 | ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11, |
1912 | ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12, | 1912 | ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12, |
1913 | ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 1913 | ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-f6bbbed7-2062-4bc1-b822-ebc25e98bdb0'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-f6bbbed7-2062-4bc1-b822-ebc25e98bdb0'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·d4ab9a9211c38f7313ef376a7a8d3de42b557837f017d429f33dcb74c7d03b38·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·········nan,··········nan,··········nan], |
1914 | ·······[·········nan,··········nan,··········nan], | 1914 | ·······[·········nan,··········nan,··········nan], |
1915 | ·······[·········nan,··········nan,··········nan], | 1915 | ·······[·········nan,··········nan,··········nan], |
1916 | ·······..., | 1916 | ·······..., |
1917 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 1917 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
1918 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 1918 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
1919 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>filled</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>-5.163·-4.216·...·-1.346·-4.544</div><input·id='attrs- | 1919 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>filled</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>-5.163·-4.216·...·-1.346·-4.544</div><input·id='attrs-0ae7ff8e-4f51-47df-974c-54f324f7ae15'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0ae7ff8e-4f51-47df-974c-54f324f7ae15'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·09839838268921767ed3f25c6b27a64425a4958eefd22a1d365486ac03d3550f·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-5.16274935,··-4.21616663,··-4.68137385], |
1920 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], | 1920 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], |
1921 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], | 1921 | ·······[·-5.16274935,··-4.21616663,··-4.68137385], |
1922 | ·······..., | 1922 | ·······..., |
1923 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 1923 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
1924 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 1924 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
1925 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 1925 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-da78fcf0-fdd1-4fd9-a01b-8b5fcf53d2d8'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-da78fcf0-fdd1-4fd9-a01b-8b5fcf53d2d8'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·330,·SHA:·bc5002807ebf2f3b3b4dba3ab652d6b71d2edd853aefd436126ab364a067aa6e·...·]8'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2000-01-01',·'2000-01-02',·'2000-01-03',·'2000-01-04', |
1926 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', | 1926 | ···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08', |
1927 | ···············'2000-01-09',·'2000-01-10', | 1927 | ···············'2000-01-09',·'2000-01-10', |
1928 | ···············... | 1928 | ···············... |
1929 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', | 1929 | ···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25', |
1930 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', | 1930 | ···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29', |
1931 | ···············'2001-12-30',·'2001-12-31'], | 1931 | ···············'2001-12-30',·'2001-12-31'], |
1932 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><div></div><input·id='index- | 1932 | ··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><div></div><input·id='index-b441f729-7786-4e00-8fe6-30e275eeff1e'·class='xr-index-data-in'·type='checkbox'/><label·for='index-b441f729-7786-4e00-8fe6-30e275eeff1e'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·69600bfcad5d1655e628c8b2ea62119c6800915cd7ea28e59292e270ca35e558·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
Max diff block lines reached; 1040/50353 bytes (2.07%) of diff not shown. |
Offset 157, 15 lines modified | Offset 157, 15 lines modified | ||
157 | <AxesSubplot:·xlabel='time'> | 157 | <AxesSubplot:·xlabel='time'> |
158 | [../_images/examples_weather-data_7_1.png] | 158 | [../_images/examples_weather-data_7_1.png] |
159 | ****·Visualize·using·seaborn¶·**** | 159 | ****·Visualize·using·seaborn¶·**** |
160 | [5]: | 160 | [5]: |
161 | sns.pairplot(df.reset_index(),·vars=ds.data_vars) | 161 | sns.pairplot(df.reset_index(),·vars=ds.data_vars) |
162 | [5]: | 162 | [5]: |
163 | <seaborn.axisgrid.PairGrid·at·0x7f | 163 | <seaborn.axisgrid.PairGrid·at·0x7f00ce57a690> |
164 | [../_images/examples_weather-data_9_1.png] | 164 | [../_images/examples_weather-data_9_1.png] |
165 | *****·Probability·of·freeze·by·calendar·month¶·***** | 165 | *****·Probability·of·freeze·by·calendar·month¶·***** |
166 | [6]: | 166 | [6]: |
167 | freeze·=·(ds["tmin"]·<=·0).groupby("time.month").mean("time") | 167 | freeze·=·(ds["tmin"]·<=·0).groupby("time.month").mean("time") |
168 | freeze | 168 | freeze |
169 | [6]: | 169 | [6]: |
Offset 15, 18 lines modified | Offset 15, 18 lines modified | ||
15 | ············"execution_count":·1, | 15 | ············"execution_count":·1, |
16 | ············"metadata":·{ | 16 | ············"metadata":·{ |
17 | ················"ExecuteTime":·{ | 17 | ················"ExecuteTime":·{ |
18 | ····················"end_time":·"2020-01-27T15:43:36.127628Z", | 18 | ····················"end_time":·"2020-01-27T15:43:36.127628Z", |
19 | ····················"start_time":·"2020-01-27T15:43:36.081733Z" | 19 | ····················"start_time":·"2020-01-27T15:43:36.081733Z" |
20 | ················}, | 20 | ················}, |
21 | ················"execution":·{ | 21 | ················"execution":·{ |
22 | ····················"iopub.execute_input":·"202 | 22 | ····················"iopub.execute_input":·"2024-01-12T09:48:44.386940Z", |
23 | ····················"iopub.status.busy":·"202 | 23 | ····················"iopub.status.busy":·"2024-01-12T09:48:44.386362Z", |
24 | ····················"iopub.status.idle":·"202 | 24 | ····················"iopub.status.idle":·"2024-01-12T09:48:50.068914Z", |
25 | ····················"shell.execute_reply":·"202 | 25 | ····················"shell.execute_reply":·"2024-01-12T09:48:50.052867Z" |
26 | ················} | 26 | ················} |
27 | ············}, | 27 | ············}, |
28 | ············"outputs":·[ | 28 | ············"outputs":·[ |
29 | ················{ | 29 | ················{ |
30 | ····················"data":·{ | 30 | ····················"data":·{ |
31 | ························"text/html":·[ | 31 | ························"text/html":·[ |
32 | ····························"<div><svg·style=\"position:·absolute;·width:·0;·height:·0;·overflow:·hidden\">\n", | 32 | ····························"<div><svg·style=\"position:·absolute;·width:·0;·height:·0;·overflow:·hidden\">\n", |
Offset 395, 37 lines modified | Offset 395, 37 lines modified | ||
395 | ····························"</style><pre·class='xr-text-repr-fallback'><xarray.Dataset>\n", | 395 | ····························"</style><pre·class='xr-text-repr-fallback'><xarray.Dataset>\n", |
396 | ····························"Dimensions:···(time:·731,·location:·3)\n", | 396 | ····························"Dimensions:···(time:·731,·location:·3)\n", |
397 | ····························"Coordinates:\n", | 397 | ····························"Coordinates:\n", |
398 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", | 398 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", |
399 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", | 399 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", |
400 | ····························"Data·variables:\n", | 400 | ····························"Data·variables:\n", |
401 | ····························"····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544\n", | 401 | ····························"····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544\n", |
402 | ····························"····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 402 | ····························"····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·style='display:none'><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·240979ccded080936a08150c9a6204f21b7ead3b93bd475c89a94be9b3c43c29·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000',\n", |
403 | ····························"·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000',\n", | 403 | ····························"·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000',\n", |
404 | ····························"·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'],\n", | 404 | ····························"·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'],\n", |
405 | ····························"······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 405 | ····························"······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-e1551431-30d7-4e4e-8453-472687f202bf'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-e1551431-30d7-4e4e-8453-472687f202bf'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·7dbdcdc157dfe70269a3e310a5cdaa8c76f2ee9f3957a766f2c36ce6004aa43d·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201],\n", |
406 | ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n", | 406 | ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n", |
407 | ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n", | 407 | ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n", |
408 | ····························"·······...,\n", | 408 | ····························"·······...,\n", |
409 | ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n", | 409 | ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n", |
410 | ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n", | 410 | ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n", |
411 | ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs- | 411 | ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·94e46468436b897095074362ceb0726a90c672ea4e24fa3ef469da83e011d1de·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382],\n", |
412 | ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n", | 412 | ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n", |
413 | ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n", | 413 | ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n", |
414 | ····························"·······...,\n", | 414 | ····························"·······...,\n", |
415 | ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n", | 415 | ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n", |
416 | ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n", | 416 | ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n", |
417 | ····························"·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 417 | ····························"·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·1cc01914148f7ae7f1ff133d44ffb1a67be705cca1d7d12fbb786cc77323dbdb·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2000-01-01',·'2000-01-02',·'2000-01-03',·'2000-01-04',\n", |
418 | ····························"···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08',\n", | 418 | ····························"···············'2000-01-05',·'2000-01-06',·'2000-01-07',·'2000-01-08',\n", |
419 | ····························"···············'2000-01-09',·'2000-01-10',\n", | 419 | ····························"···············'2000-01-09',·'2000-01-10',\n", |
420 | ····························"···············...\n", | 420 | ····························"···············...\n", |
421 | ····························"···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25',\n", | 421 | ····························"···············'2001-12-22',·'2001-12-23',·'2001-12-24',·'2001-12-25',\n", |
422 | ····························"···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29',\n", | 422 | ····························"···············'2001-12-26',·'2001-12-27',·'2001-12-28',·'2001-12-29',\n", |
423 | ····························"···············'2001-12-30',·'2001-12-31'],\n", | 423 | ····························"···············'2001-12-30',·'2001-12-31'],\n", |
424 | ····························"··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><div></div><input·id='index- | 424 | ····························"··············dtype='datetime64[ns]',·name='time',·length=731,·freq='D'))</pre></div></li><li·class='xr-var-item'><div·class='xr-index-name'><div>location</div></div><div·class='xr-index-preview'>PandasIndex</div><div></div><input·id='index-7019bfb3-f205-4f9c-b19e-ed4840061e73'·class='xr-index-data-in'·type='checkbox'/><label·for='index-7019bfb3-f205-4f9c-b19e-ed4840061e73'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·8f9c7299a66a27e3de4230f7f312cc4f0007d7ffbc993ee6e0ab8b0d309b8753·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div>" |
425 | ························], | 425 | ························], |
426 | ························"text/plain":·[ | 426 | ························"text/plain":·[ |
427 | ····························"<xarray.Dataset>\n", | 427 | ····························"<xarray.Dataset>\n", |
428 | ····························"Dimensions:···(time:·731,·location:·3)\n", | 428 | ····························"Dimensions:···(time:·731,·location:·3)\n", |
429 | ····························"Coordinates:\n", | 429 | ····························"Coordinates:\n", |
430 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", | 430 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", |
431 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", | 431 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", |
Offset 487, 18 lines modified | Offset 487, 18 lines modified | ||
487 | ············"execution_count":·2, | 487 | ············"execution_count":·2, |
488 | ············"metadata":·{ | 488 | ············"metadata":·{ |
489 | ················"ExecuteTime":·{ | 489 | ················"ExecuteTime":·{ |
490 | ····················"end_time":·"2020-01-27T15:47:14.160297Z", | 490 | ····················"end_time":·"2020-01-27T15:47:14.160297Z", |
491 | ····················"start_time":·"2020-01-27T15:47:14.126738Z" | 491 | ····················"start_time":·"2020-01-27T15:47:14.126738Z" |
492 | ················}, | 492 | ················}, |
493 | ················"execution":·{ | 493 | ················"execution":·{ |
494 | ····················"iopub.execute_input":·"202 | 494 | ····················"iopub.execute_input":·"2024-01-12T09:48:50.095728Z", |
495 | ····················"iopub.status.busy":·"202 | 495 | ····················"iopub.status.busy":·"2024-01-12T09:48:50.094748Z", |
496 | ····················"iopub.status.idle":·"202 | 496 | ····················"iopub.status.idle":·"2024-01-12T09:48:50.209010Z", |
497 | ····················"shell.execute_reply":·"202 | 497 | ····················"shell.execute_reply":·"2024-01-12T09:48:50.193759Z" |
498 | ················} | 498 | ················} |
499 | ············}, | 499 | ············}, |
500 | ············"outputs":·[ | 500 | ············"outputs":·[ |
501 | ················{ | 501 | ················{ |
502 | ····················"data":·{ | 502 | ····················"data":·{ |
503 | ························"text/html":·[ | 503 | ························"text/html":·[ |
504 | ····························"<div>\n", | 504 | ····························"<div>\n", |
Offset 587, 18 lines modified | Offset 587, 18 lines modified | ||
587 | ············"execution_count":·3, | 587 | ············"execution_count":·3, |
588 | ············"metadata":·{ | 588 | ············"metadata":·{ |
589 | ················"ExecuteTime":·{ | 589 | ················"ExecuteTime":·{ |
590 | ····················"end_time":·"2020-01-27T15:47:32.682065Z", | 590 | ····················"end_time":·"2020-01-27T15:47:32.682065Z", |
591 | ····················"start_time":·"2020-01-27T15:47:32.652629Z" | 591 | ····················"start_time":·"2020-01-27T15:47:32.652629Z" |
592 | ················}, | 592 | ················}, |
593 | ················"execution":·{ | 593 | ················"execution":·{ |
594 | ····················"iopub.execute_input":·"202 | 594 | ····················"iopub.execute_input":·"2024-01-12T09:48:50.239317Z", |
595 | ····················"iopub.status.busy":·"202 | 595 | ····················"iopub.status.busy":·"2024-01-12T09:48:50.238780Z", |
596 | ····················"iopub.status.idle":·"202 | 596 | ····················"iopub.status.idle":·"2024-01-12T09:48:50.357012Z", |
597 | ····················"shell.execute_reply":·"202 | 597 | ····················"shell.execute_reply":·"2024-01-12T09:48:50.340945Z" |
598 | ················} | 598 | ················} |
599 | ············}, | 599 | ············}, |
600 | ············"outputs":·[ | 600 | ············"outputs":·[ |
601 | ················{ | 601 | ················{ |
602 | ····················"data":·{ | 602 | ····················"data":·{ |
603 | ························"text/html":·[ | 603 | ························"text/html":·[ |
604 | ····························"<div>\n", | 604 | ····························"<div>\n", |
Offset 701, 18 lines modified | Offset 701, 18 lines modified | ||
701 | ············"execution_count":·4, | 701 | ············"execution_count":·4, |
702 | ············"metadata":·{ | 702 | ············"metadata":·{ |
703 | ················"ExecuteTime":·{ | 703 | ················"ExecuteTime":·{ |
704 | ····················"end_time":·"2020-01-27T15:47:34.617042Z", | 704 | ····················"end_time":·"2020-01-27T15:47:34.617042Z", |
705 | ····················"start_time":·"2020-01-27T15:47:34.282605Z" | 705 | ····················"start_time":·"2020-01-27T15:47:34.282605Z" |
706 | ················}, | 706 | ················}, |
707 | ················"execution":·{ | 707 | ················"execution":·{ |
708 | ····················"iopub.execute_input":·"202 | 708 | ····················"iopub.execute_input":·"2024-01-12T09:48:50.387042Z", |
709 | ····················"iopub.status.busy":·"202 | 709 | ····················"iopub.status.busy":·"2024-01-12T09:48:50.386514Z", |
710 | ····················"iopub.status.idle":·"202 | 710 | ····················"iopub.status.idle":·"2024-01-12T09:48:52.012937Z", |
711 | ····················"shell.execute_reply":·"202 | 711 | ····················"shell.execute_reply":·"2024-01-12T09:48:51.996884Z" |
712 | ················} | 712 | ················} |
713 | ············}, | 713 | ············}, |
714 | ············"outputs":·[ | 714 | ············"outputs":·[ |
715 | ················{ | 715 | ················{ |
716 | ····················"data":·{ | 716 | ····················"data":·{ |
717 | ························"text/plain":·[ | 717 | ························"text/plain":·[ |
718 | ····························"<AxesSubplot:·xlabel='time'>" | 718 | ····························"<AxesSubplot:·xlabel='time'>" |
Offset 749, 25 lines modified | Offset 749, 25 lines modified | ||
749 | ············"execution_count":·5, | 749 | ············"execution_count":·5, |
750 | ············"metadata":·{ | 750 | ············"metadata":·{ |
751 | ················"ExecuteTime":·{ | 751 | ················"ExecuteTime":·{ |
752 | ····················"end_time":·"2020-01-27T15:47:37.643175Z", | 752 | ····················"end_time":·"2020-01-27T15:47:37.643175Z", |
753 | ····················"start_time":·"2020-01-27T15:47:37.202479Z" | 753 | ····················"start_time":·"2020-01-27T15:47:37.202479Z" |
754 | ················}, | 754 | ················}, |
755 | ················"execution":·{ | 755 | ················"execution":·{ |
756 | ····················"iopub.execute_input":·"202 | 756 | ····················"iopub.execute_input":·"2024-01-12T09:48:52.038688Z", |
757 | ····················"iopub.status.busy":·"202 | 757 | ····················"iopub.status.busy":·"2024-01-12T09:48:52.038204Z", |
758 | ····················"iopub.status.idle":·"202 | 758 | ····················"iopub.status.idle":·"2024-01-12T09:48:56.900874Z", |
759 | ····················"shell.execute_reply":·"202 | 759 | ····················"shell.execute_reply":·"2024-01-12T09:48:56.884923Z" |
760 | ················} | 760 | ················} |
761 | ············}, | 761 | ············}, |
Max diff block lines reached; 43695/67187 bytes (65.03%) of diff not shown. |
Offset 310, 15 lines modified | Offset 310, 15 lines modified | ||
310 | </pre></div> | 310 | </pre></div> |
311 | </div> | 311 | </div> |
312 | </section> | 312 | </section> |
313 | <section·id="plotting"> | 313 | <section·id="plotting"> |
314 | <h2>Plotting<a·class="headerlink"·href="#plotting"·title="Permalink·to·this·heading">¶</a></h2> | 314 | <h2>Plotting<a·class="headerlink"·href="#plotting"·title="Permalink·to·this·heading">¶</a></h2> |
315 | <p>Visualizing·your·datasets·is·quick·and·convenient:</p> | 315 | <p>Visualizing·your·datasets·is·quick·and·convenient:</p> |
316 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[37]:·</span><span·class="n">data</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 316 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[37]:·</span><span·class="n">data</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
317 | <span·class="gh">Out[37]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0x7f | 317 | <span·class="gh">Out[37]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0x7f56058667d0></span> |
318 | </pre></div> | 318 | </pre></div> |
319 | </div> | 319 | </div> |
320 | <img·alt="../_images/plotting_quick_overview.png"·src="../_images/plotting_quick_overview.png"·/> | 320 | <img·alt="../_images/plotting_quick_overview.png"·src="../_images/plotting_quick_overview.png"·/> |
321 | <p>Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata·attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see·<a·class="reference·internal"·href="../user-guide/plotting.html#plotting"><span·class="std·std-ref">Plotting</span></a>.</p> | 321 | <p>Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata·attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see·<a·class="reference·internal"·href="../user-guide/plotting.html#plotting"><span·class="std·std-ref">Plotting</span></a>.</p> |
322 | </section> | 322 | </section> |
323 | <section·id="pandas"> | 323 | <section·id="pandas"> |
324 | <h2>pandas<a·class="headerlink"·href="#pandas"·title="Permalink·to·this·heading">¶</a></h2> | 324 | <h2>pandas<a·class="headerlink"·href="#pandas"·title="Permalink·to·this·heading">¶</a></h2> |
Offset 269, 15 lines modified | Offset 269, 15 lines modified | ||
269 | Coordinates: | 269 | Coordinates: |
270 | ··*·x········(x)·int64·10·20 | 270 | ··*·x········(x)·int64·10·20 |
271 | Dimensions·without·coordinates:·y | 271 | Dimensions·without·coordinates:·y |
272 | *****·Plotting¶·***** | 272 | *****·Plotting¶·***** |
273 | Visualizing·your·datasets·is·quick·and·convenient: | 273 | Visualizing·your·datasets·is·quick·and·convenient: |
274 | In·[37]:·data.plot() | 274 | In·[37]:·data.plot() |
275 | Out[37]:·<matplotlib.collections.QuadMesh·at·0x7f | 275 | Out[37]:·<matplotlib.collections.QuadMesh·at·0x7f56058667d0> |
276 | [../_images/plotting_quick_overview.png] | 276 | [../_images/plotting_quick_overview.png] |
277 | Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata | 277 | Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata |
278 | attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see | 278 | attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see |
279 | Plotting. | 279 | Plotting. |
280 | *****·pandas¶·***** | 280 | *****·pandas¶·***** |
281 | Xarray·objects·can·be·easily·converted·to·and·from·pandas·objects·using·the | 281 | Xarray·objects·can·be·easily·converted·to·and·from·pandas·objects·using·the |
Offset 1122, 23 lines modified | Offset 1122, 23 lines modified | ||
1122 | ········"british":·6, | 1122 | ········"british":·6, |
1123 | ········"isl":·6, | 1123 | ········"isl":·6, |
1124 | ········"march":·[6,·46], | 1124 | ········"march":·[6,·46], |
1125 | ········"7":·[6,·7,·8,·9,·11,·12,·13,·14,·19,·23,·25,·28,·29,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47], | 1125 | ········"7":·[6,·7,·8,·9,·11,·12,·13,·14,·19,·23,·25,·28,·29,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47], |
1126 | ········"callback":·6, | 1126 | ········"callback":·6, |
1127 | ········"lt":·[6,·14], | 1127 | ········"lt":·[6,·14], |
1128 | ········"_draw_all_if_interact":·6, | 1128 | ········"_draw_all_if_interact":·6, |
1129 | ········"0x7f | 1129 | ········"0x7f8bbe48b880":·6, |
1130 | ········"post_execut":·6, | 1130 | ········"post_execut":·6, |
1131 | ········"permissionerror":·6, | 1131 | ········"permissionerror":·6, |
1132 | ········"usr":·6, | 1132 | ········"usr":·6, |
1133 | ········"lib":·6, | 1133 | ········"lib":·6, |
1134 | ········"dist":·6, | 1134 | ········"dist":·6, |
1135 | ········"119":·[6,·32,·38,·39,·43,·46], | 1135 | ········"119":·[6,·32,·38,·39,·43,·46], |
1136 | ········"117":·[6,·32,·38,·43,·46], | 1136 | ········"117":·[6,·32,·38,·43,·46], |
1137 | ········"118":·[6,·32,·38,·43,·46], | 1137 | ········"118":·[6,·32,·33,·38,·43,·46], |
1138 | ········"is_interact":·6, | 1138 | ········"is_interact":·6, |
1139 | ········"draw_al":·6, | 1139 | ········"draw_al":·6, |
1140 | ········"_pylab_help":·6, | 1140 | ········"_pylab_help":·6, |
1141 | ········"gcf":·6, | 1141 | ········"gcf":·6, |
1142 | ········"cl":·[6,·28,·40], | 1142 | ········"cl":·[6,·28,·40], |
1143 | ········"forc":·[6,·39,·43], | 1143 | ········"forc":·[6,·39,·43], |
1144 | ········"130":·[6,·32,·38,·43], | 1144 | ········"130":·[6,·32,·38,·43], |
Offset 1812, 25 lines modified | Offset 1812, 25 lines modified | ||
1812 | ········"until":·[13,·33,·36,·40,·43], | 1812 | ········"until":·[13,·33,·36,·40,·43], |
1813 | ········"scitool":·[13,·18], | 1813 | ········"scitool":·[13,·18], |
1814 | ········"813":·13, | 1814 | ········"813":·13, |
1815 | ········"band":·[13,·34,·40,·44], | 1815 | ········"band":·[13,·34,·40,·44], |
1816 | ········"color":·[13,·16,·18,·43,·48], | 1816 | ········"color":·[13,·16,·18,·43,·48], |
1817 | ········"r":·[13,·28,·32,·33,·34,·38,·39,·40,·48], | 1817 | ········"r":·[13,·28,·32,·33,·34,·38,·39,·40,·48], |
1818 | ········"tmp":·13, | 1818 | ········"tmp":·13, |
1819 | ········"ipykernel_ | 1819 | ········"ipykernel_1285013":·13, |
1820 | ········"2946363816":·13, | 1820 | ········"2946363816":·13, |
1821 | ········"favor":·[13,·16,·40,·42,·48], | 1821 | ········"favor":·[13,·16,·40,·42,·48], |
1822 | ········"transit":·[13,·40,·43,·48], | 1822 | ········"transit":·[13,·40,·43,·48], |
1823 | ········"corteva":·[13,·40], | 1823 | ········"corteva":·[13,·40], |
1824 | ········"getting_start":·[13,·40], | 1824 | ········"getting_start":·[13,·40], |
1825 | ········"222":·13, | 1825 | ········"222":·13, |
1826 | ········"221":·13, | 1826 | ········"221":·13, |
1827 | ········"223":·13, | 1827 | ········"223":·13, |
1828 | ········"224":·13, | 1828 | ········"224":·13, |
1829 | ········"226":·13, | 1829 | ········"226":·[13,·33], |
1830 | ········"227":·13, | 1830 | ········"227":·13, |
1831 | ········"229":·[13,·48], | 1831 | ········"229":·[13,·48], |
1832 | ········"230":·13, | 1832 | ········"230":·13, |
1833 | ········"cartesian":·[13,·32,·40], | 1833 | ········"cartesian":·[13,·32,·40], |
1834 | ········"might":·[13,·24,·29,·33,·34,·38,·39,·40,·43,·48], | 1834 | ········"might":·[13,·24,·29,·33,·34,·38,·39,·40,·43,·48], |
1835 | ········"handi":·[13,·32,·43], | 1835 | ········"handi":·[13,·32,·43], |
1836 | ········"index":·[13,·14,·16,·18,·20,·21,·31,·32,·33,·35,·36,·39,·40,·42,·43,·45,·47,·48], | 1836 | ········"index":·[13,·14,·16,·18,·20,·21,·31,·32,·33,·35,·36,·39,·40,·42,·43,·45,·47,·48], |
Offset 1982, 15 lines modified | Offset 1982, 15 lines modified | ||
1982 | ········"xlabel":·[14,·43], | 1982 | ········"xlabel":·[14,·43], |
1983 | ········"pairplot":·14, | 1983 | ········"pairplot":·14, |
1984 | ········"reset_index":·[14,·42,·44,·48], | 1984 | ········"reset_index":·[14,·42,·44,·48], |
1985 | ········"var":·[14,·25,·31,·32,·38,·43,·48], | 1985 | ········"var":·[14,·25,·31,·32,·38,·43,·48], |
1986 | ········"data_var":·[14,·32,·34,·38,·40,·44,·48], | 1986 | ········"data_var":·[14,·32,·34,·38,·40,·44,·48], |
1987 | ········"axisgrid":·14, | 1987 | ········"axisgrid":·14, |
1988 | ········"pairgrid":·14, | 1988 | ········"pairgrid":·14, |
1989 | ········"0x7f | 1989 | ········"0x7f00ce57a690":·14, |
1990 | ········"9516129":·14, | 1990 | ········"9516129":·14, |
1991 | ········"88709677":·14, | 1991 | ········"88709677":·14, |
1992 | ········"93548387":·14, | 1992 | ········"93548387":·14, |
1993 | ········"84210526":·14, | 1993 | ········"84210526":·14, |
1994 | ········"71929825":·14, | 1994 | ········"71929825":·14, |
1995 | ········"77192982":·14, | 1995 | ········"77192982":·14, |
1996 | ········"24193548":·14, | 1996 | ········"24193548":·14, |
Offset 2321, 15 lines modified | Offset 2321, 15 lines modified | ||
2321 | ········"36":·[19,·31,·32,·33,·34,·38,·39,·40,·43,·44,·46,·48], | 2321 | ········"36":·[19,·31,·32,·33,·34,·38,·39,·40,·43,·44,·46,·48], |
2322 | ········"9781708":·19, | 2322 | ········"9781708":·19, |
2323 | ········"37342613":·19, | 2323 | ········"37342613":·19, |
2324 | ········"49497537":·19, | 2324 | ········"49497537":·19, |
2325 | ········"33584385":·19, | 2325 | ········"33584385":·19, |
2326 | ········"37":·[19,·31,·32,·33,·34,·36,·38,·39,·40,·43,·44,·48], | 2326 | ········"37":·[19,·31,·32,·33,·34,·36,·38,·39,·40,·43,·44,·48], |
2327 | ········"quadmesh":·[19,·43,·48], | 2327 | ········"quadmesh":·[19,·43,·48], |
2328 | ········"0x7f | 2328 | ········"0x7f56058667d0":·19, |
2329 | ········"paid":·19, | 2329 | ········"paid":·19, |
2330 | ········"customiz":·19, | 2330 | ········"customiz":·19, |
2331 | ········"to_seri":·[19,·42,·48], | 2331 | ········"to_seri":·[19,·42,·48], |
2332 | ········"to_xarrai":·[19,·42], | 2332 | ········"to_xarrai":·[19,·42], |
2333 | ········"38":·[19,·31,·32,·33,·34,·38,·39,·40,·43,·44,·48], | 2333 | ········"38":·[19,·31,·32,·33,·34,·38,·39,·40,·43,·44,·48], |
2334 | ········"469112":·[19,·42], | 2334 | ········"469112":·[19,·42], |
2335 | ········"282863":·[19,·42], | 2335 | ········"282863":·[19,·42], |
Offset 2984, 15 lines modified | Offset 2984, 15 lines modified | ||
2984 | ········"sqrt":·[32,·48], | 2984 | ········"sqrt":·[32,·48], |
2985 | ········"58":·[32,·34,·38,·39,·40,·43,·44,·48], | 2985 | ········"58":·[32,·34,·38,·39,·40,·43,·44,·48], |
2986 | ········"08299933":·32, | 2986 | ········"08299933":·32, |
2987 | ········"59":·[32,·33,·34,·38,·39,·40,·43,·44,·48], | 2987 | ········"59":·[32,·33,·34,·38,·39,·40,·43,·44,·48], |
2988 | ········"60":·[32,·34,·38,·39,·40,·43,·44,·46,·47,·48], | 2988 | ········"60":·[32,·34,·38,·39,·40,·43,·44,·46,·47,·48], |
2989 | ········"61":·[32,·34,·38,·39,·40,·43,·48], | 2989 | ········"61":·[32,·34,·38,·39,·40,·43,·48], |
2990 | ········"incorrectli":·[32,·48], | 2990 | ········"incorrectli":·[32,·48], |
2991 | ········"62":·[32,·34,·38,·39,·40,·43,·48], | 2991 | ········"62":·[32,·33,·34,·38,·39,·40,·43,·48], |
2992 | ········"63":·[32,·34,·38,·39,·40,·43,·48], | 2992 | ········"63":·[32,·34,·38,·39,·40,·43,·48], |
2993 | ········"64":·[32,·34,·38,·39,·40,·43,·48], | 2993 | ········"64":·[32,·34,·38,·39,·40,·43,·48], |
2994 | ········"65":·[32,·34,·38,·40,·43,·48], | 2994 | ········"65":·[32,·34,·38,·40,·43,·48], |
2995 | ········"66":·[32,·34,·38,·39,·40,·43,·48], | 2995 | ········"66":·[32,·34,·38,·39,·40,·43,·48], |
2996 | ········"67":·[32,·34,·36,·38,·40,·43,·48], | 2996 | ········"67":·[32,·34,·36,·38,·40,·43,·48], |
2997 | ········"1999":·32, | 2997 | ········"1999":·32, |
2998 | ········"364":·[32,·46], | 2998 | ········"364":·[32,·46], |
Offset 3227, 15 lines modified | Offset 3227, 15 lines modified | ||
3227 | ········"120":·[32,·38,·40,·43,·46], | 3227 | ········"120":·[32,·38,·40,·43,·46], |
3228 | ········"arithmetic_join":·[32,·41,·48], | 3228 | ········"arithmetic_join":·[32,·41,·48], |
3229 | ········"121":·[32,·38,·43,·46], | 3229 | ········"121":·[32,·38,·43,·46], |
3230 | ········"overhead":·[32,·33,·40], | 3230 | ········"overhead":·[32,·33,·40], |
3231 | ········"repeat":·[32,·43,·46,·48], | 3231 | ········"repeat":·[32,·43,·46,·48], |
3232 | ········"reindex":·[32,·35,·42,·48], | 3232 | ········"reindex":·[32,·35,·42,·48], |
3233 | ········"although":·[32,·34,·36,·40,·44,·48], | 3233 | ········"although":·[32,·34,·36,·40,·44,·48], |
3234 | ········"122":·[32,·3 | 3234 | ········"122":·[32,·38,·43,·46], |
3235 | ········"silent":·[32,·38,·48], | 3235 | ········"silent":·[32,·38,·48], |
3236 | ········"124":·[32,·38,·40,·43,·46], | 3236 | ········"124":·[32,·38,·40,·43,·46], |
3237 | ········"persist":·[32,·33,·34,·38,·48], | 3237 | ········"persist":·[32,·33,·34,·38,·48], |
3238 | ········"125":·[32,·38,·40,·43], | 3238 | ········"125":·[32,·38,·40,·43], |
3239 | ········"126":·[32,·38,·43,·48], | 3239 | ········"126":·[32,·38,·43,·48], |
3240 | ········"127":·[32,·34,·36,·38,·43,·48], | 3240 | ········"127":·[32,·34,·36,·38,·43,·48], |
3241 | ········"x_and_i":·32, | 3241 | ········"x_and_i":·32, |
Offset 3309, 15 lines modified | Offset 3309, 15 lines modified | ||
3309 | ········"178":·33, | 3309 | ········"178":·33, |
3310 | ········"179":·[33,·38], | 3310 | ········"179":·[33,·38], |
3311 | ········"concaten":·[33,·36,·40,·44,·48], | 3311 | ········"concaten":·[33,·36,·40,·44,·48], |
3312 | ········"disclaim":·33, | 3312 | ········"disclaim":·33, |
3313 | ········"execut":·[33,·48], | 3313 | ········"execut":·[33,·48], |
3314 | ········"ineffect":·33, | 3314 | ········"ineffect":·33, |
3315 | ········"reveal":·33, | 3315 | ········"reveal":·33, |
3316 | ········" | 3316 | ········"e465d2fa847582f6a280739021dc3613temperatur":·33, |
3317 | ········"progressbar":·33, | 3317 | ········"progressbar":·33, |
3318 | ········"progress":·[33,·48], | 3318 | ········"progress":·[33,·48], |
3319 | ········"schedul":·[33,·48], | 3319 | ········"schedul":·[33,·48], |
3320 | ········"delayed_obj":·33, | 3320 | ········"delayed_obj":·33, |
3321 | ········"hdf5_use_file_lock":·33, | 3321 | ········"hdf5_use_file_lock":·33, |
Max diff block lines reached; 5513/10120 bytes (54.48%) of diff not shown. |
Offset 114, 15 lines modified | Offset 114, 15 lines modified | ||
114 | <p>You’ll·notice·that·printing·a·dataset·still·shows·a·preview·of·array·values, | 114 | <p>You’ll·notice·that·printing·a·dataset·still·shows·a·preview·of·array·values, |
115 | even·if·they·are·actually·Dask·arrays.·We·can·do·this·quickly·with·Dask·because | 115 | even·if·they·are·actually·Dask·arrays.·We·can·do·this·quickly·with·Dask·because |
116 | we·only·need·to·compute·the·first·few·values·(typically·from·the·first·block). | 116 | we·only·need·to·compute·the·first·few·values·(typically·from·the·first·block). |
117 | To·reveal·the·true·nature·of·an·array,·print·a·DataArray:</p> | 117 | To·reveal·the·true·nature·of·an·array,·print·a·DataArray:</p> |
118 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[3]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span> | 118 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[3]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span> |
119 | <span·class="gh">Out[3]:·</span> | 119 | <span·class="gh">Out[3]:·</span> |
120 | <span·class="go"><xarray.DataArray·'temperature'·(time:·30,·latitude:·180,·longitude:·180)></span> | 120 | <span·class="go"><xarray.DataArray·'temperature'·(time:·30,·latitude:·180,·longitude:·180)></span> |
121 | <span·class="go">dask.array<open_dataset- | 121 | <span·class="go">dask.array<open_dataset-e465d2fa847582f6a280739021dc3613temperature,·shape=(30,·180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray></span> |
122 | <span·class="go">Coordinates:</span> | 122 | <span·class="go">Coordinates:</span> |
123 | <span·class="go">··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30</span> | 123 | <span·class="go">··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30</span> |
124 | <span·class="go">··*·longitude··(longitude)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span> | 124 | <span·class="go">··*·longitude··(longitude)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span> |
125 | <span·class="go">··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5</span> | 125 | <span·class="go">··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5</span> |
126 | </pre></div> | 126 | </pre></div> |
127 | </div> | 127 | </div> |
128 | <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to | 128 | <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to |
Offset 138, 16 lines modified | Offset 138, 17 lines modified | ||
138 | <span·class="go">#·or·distributed.progress·when·using·the·distributed·scheduler</span> | 138 | <span·class="go">#·or·distributed.progress·when·using·the·distributed·scheduler</span> |
139 | <span·class="gp">In·[6]:·</span><span·class="n">delayed_obj</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">to_netcdf</span><span·class="p">(</span><span·class="s2">"manipulated-example-data.nc"</span><span·class="p">,</span>·<span·class="n">compute</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> | 139 | <span·class="gp">In·[6]:·</span><span·class="n">delayed_obj</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">to_netcdf</span><span·class="p">(</span><span·class="s2">"manipulated-example-data.nc"</span><span·class="p">,</span>·<span·class="n">compute</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> |
140 | <span·class="gp">In·[7]:·</span><span·class="k">with</span>·<span·class="n">ProgressBar</span><span·class="p">():</span> | 140 | <span·class="gp">In·[7]:·</span><span·class="k">with</span>·<span·class="n">ProgressBar</span><span·class="p">():</span> |
141 | <span·class="gp">···...:·</span>····<span·class="n">results</span>·<span·class="o">=</span>·<span·class="n">delayed_obj</span><span·class="o">.</span><span·class="n">compute</span><span·class="p">()</span> | 141 | <span·class="gp">···...:·</span>····<span·class="n">results</span>·<span·class="o">=</span>·<span·class="n">delayed_obj</span><span·class="o">.</span><span·class="n">compute</span><span·class="p">()</span> |
142 | <span·class="gp">···...:·</span> | 142 | <span·class="gp">···...:·</span> |
143 | <span·class="go">[········································]·|·0%·Completed·|·1 | 143 | <span·class="go">[········································]·|·0%·Completed·|·10.29·ms</span> |
144 | <span·class="go">[#########################···············]·|·62%·Completed·|·118.03·ms</span> | ||
144 | <span·class="go">[########################################]·|·100%·Completed·|· | 145 | <span·class="go">[########################################]·|·100%·Completed·|·226.13·ms</span> |
145 | </pre></div> | 146 | </pre></div> |
146 | </div> | 147 | </div> |
147 | <div·class="admonition·note"> | 148 | <div·class="admonition·note"> |
148 | <p·class="admonition-title">Note</p> | 149 | <p·class="admonition-title">Note</p> |
149 | <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files, | 150 | <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files, |
150 | it·may·be·necessary·to·set·the·environment·variable·<cite>HDF5_USE_FILE_LOCKING=FALSE</cite> | 151 | it·may·be·necessary·to·set·the·environment·variable·<cite>HDF5_USE_FILE_LOCKING=FALSE</cite> |
151 | to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that | 152 | to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that |
Offset 76, 15 lines modified | Offset 76, 15 lines modified | ||
76 | Youâll·notice·that·printing·a·dataset·still·shows·a·preview·of·array·values, | 76 | Youâll·notice·that·printing·a·dataset·still·shows·a·preview·of·array·values, |
77 | even·if·they·are·actually·Dask·arrays.·We·can·do·this·quickly·with·Dask·because | 77 | even·if·they·are·actually·Dask·arrays.·We·can·do·this·quickly·with·Dask·because |
78 | we·only·need·to·compute·the·first·few·values·(typically·from·the·first·block). | 78 | we·only·need·to·compute·the·first·few·values·(typically·from·the·first·block). |
79 | To·reveal·the·true·nature·of·an·array,·print·a·DataArray: | 79 | To·reveal·the·true·nature·of·an·array,·print·a·DataArray: |
80 | In·[3]:·ds.temperature | 80 | In·[3]:·ds.temperature |
81 | Out[3]: | 81 | Out[3]: |
82 | <xarray.DataArray·'temperature'·(time:·30,·latitude:·180,·longitude:·180)> | 82 | <xarray.DataArray·'temperature'·(time:·30,·latitude:·180,·longitude:·180)> |
83 | dask.array<open_dataset- | 83 | dask.array<open_dataset-e465d2fa847582f6a280739021dc3613temperature,·shape=(30, |
84 | 180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray> | 84 | 180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray> |
85 | Coordinates: | 85 | Coordinates: |
86 | ··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30 | 86 | ··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30 |
87 | ··*·longitude··(longitude)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178 | 87 | ··*·longitude··(longitude)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178 |
88 | 179 | 88 | 179 |
89 | ··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5 | 89 | ··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5 |
90 | Once·youâve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big | 90 | Once·youâve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big |
Offset 98, 16 lines modified | Offset 98, 17 lines modified | ||
98 | In·[6]:·delayed_obj·=·ds.to_netcdf("manipulated-example-data.nc", | 98 | In·[6]:·delayed_obj·=·ds.to_netcdf("manipulated-example-data.nc", |
99 | compute=False) | 99 | compute=False) |
100 | In·[7]:·with·ProgressBar(): | 100 | In·[7]:·with·ProgressBar(): |
101 | ···...:·····results·=·delayed_obj.compute() | 101 | ···...:·····results·=·delayed_obj.compute() |
102 | ···...: | 102 | ···...: |
103 | [········································]·|·0%·Completed·|·1 | 103 | [········································]·|·0%·Completed·|·10.29·ms |
104 | [#########################···············]·|·62%·Completed·|·118.03·ms | ||
104 | [########################################]·|·100%·Completed·|· | 105 | [########################################]·|·100%·Completed·|·226.13·ms |
105 | Note | 106 | Note |
106 | When·using·Daskâs·distributed·scheduler·to·write·NETCDF4·files,·it·may·be | 107 | When·using·Daskâs·distributed·scheduler·to·write·NETCDF4·files,·it·may·be |
107 | necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid | 108 | necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid |
108 | competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing | 109 | competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing |
109 | netCDF·files·with·Daskâs·distributed·scheduler·is·only·supported·for | 110 | netCDF·files·with·Daskâs·distributed·scheduler·is·only·supported·for |
110 | thenetcdf4backend. | 111 | thenetcdf4backend. |
111 | A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe(). | 112 | A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe(). |
Offset 687, 18 lines modified | Offset 687, 18 lines modified | ||
687 | a·method·call·with·an·external·function·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">ds.pipe(func)</span></code>)·instead·of | 687 | a·method·call·with·an·external·function·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">ds.pipe(func)</span></code>)·instead·of |
688 | simply·calling·it·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">func(ds)</span></code>).·This·allows·you·to·write·pipelines·for | 688 | simply·calling·it·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">func(ds)</span></code>).·This·allows·you·to·write·pipelines·for |
689 | transforming·your·data·(using·“method·chaining”)·instead·of·writing·hard·to | 689 | transforming·your·data·(using·“method·chaining”)·instead·of·writing·hard·to |
690 | follow·nested·function·calls:</p> | 690 | follow·nested·function·calls:</p> |
691 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow</span> | 691 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow</span> |
692 | <span·class="go">#·entirely·from·left·to·right</span> | 692 | <span·class="go">#·entirely·from·left·to·right</span> |
693 | <span·class="gp">In·[60]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">((</span><span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">))</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">))</span> | 693 | <span·class="gp">In·[60]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">((</span><span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">))</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">))</span> |
694 | <span·class="gh">Out[60]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f | 694 | <span·class="gh">Out[60]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f55d5461350>]</span> |
695 | <span·class="gp">In·[61]:·</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="k">lambda</span>·<span·class="n">x</span><span·class="p">:</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">x</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">))</span> | 695 | <span·class="gp">In·[61]:·</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="k">lambda</span>·<span·class="n">x</span><span·class="p">:</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">x</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">))</span> |
696 | <span·class="gh">Out[61]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f | 696 | <span·class="gh">Out[61]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f55d54be410>]</span> |
697 | </pre></div> | 697 | </pre></div> |
698 | </div> | 698 | </div> |
699 | <p>Both·<code·class="docutils·literal·notranslate"><span·class="pre">pipe</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">assign</span></code>·replicate·the·pandas·methods·of·the·same·names | 699 | <p>Both·<code·class="docutils·literal·notranslate"><span·class="pre">pipe</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">assign</span></code>·replicate·the·pandas·methods·of·the·same·names |
700 | (<a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html#pandas.DataFrame.pipe"·title="(in·pandas·v1.5.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.pipe</span></code></a>·and | 700 | (<a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html#pandas.DataFrame.pipe"·title="(in·pandas·v1.5.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.pipe</span></code></a>·and |
701 | <a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign"·title="(in·pandas·v1.5.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.assign</span></code></a>).</p> | 701 | <a·class="reference·external"·href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign"·title="(in·pandas·v1.5.3)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.assign</span></code></a>).</p> |
702 | <p>With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if | 702 | <p>With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if |
703 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead | 703 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead |
Offset 574, 19 lines modified | Offset 574, 19 lines modified | ||
574 | There·is·also·the·pipe()·method·that·allows·you·to·use·a·method·call·with·an | 574 | There·is·also·the·pipe()·method·that·allows·you·to·use·a·method·call·with·an |
575 | external·function·(e.g.,·ds.pipe(func))·instead·of·simply·calling·it·(e.g., | 575 | external·function·(e.g.,·ds.pipe(func))·instead·of·simply·calling·it·(e.g., |
576 | func(ds)).·This·allows·you·to·write·pipelines·for·transforming·your·data·(using | 576 | func(ds)).·This·allows·you·to·write·pipelines·for·transforming·your·data·(using |
577 | âmethod·chainingâ)·instead·of·writing·hard·to·follow·nested·function·calls: | 577 | âmethod·chainingâ)·instead·of·writing·hard·to·follow·nested·function·calls: |
578 | #·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow | 578 | #·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow |
579 | #·entirely·from·left·to·right | 579 | #·entirely·from·left·to·right |
580 | In·[60]:·plt.plot((2·*·ds.temperature.sel(x=0)).mean("y")) | 580 | In·[60]:·plt.plot((2·*·ds.temperature.sel(x=0)).mean("y")) |
581 | Out[60]:·[<matplotlib.lines.Line2D·at·0x7f | 581 | Out[60]:·[<matplotlib.lines.Line2D·at·0x7f55d5461350>] |
582 | In·[61]:·(ds.temperature.sel(x=0).pipe(lambda·x:·2·*·x).mean("y").pipe | 582 | In·[61]:·(ds.temperature.sel(x=0).pipe(lambda·x:·2·*·x).mean("y").pipe |
583 | (plt.plot)) | 583 | (plt.plot)) |
584 | Out[61]:·[<matplotlib.lines.Line2D·at·0x7f | 584 | Out[61]:·[<matplotlib.lines.Line2D·at·0x7f55d54be410>] |
585 | Both·pipe·and·assign·replicate·the·pandas·methods·of·the·same·names | 585 | Both·pipe·and·assign·replicate·the·pandas·methods·of·the·same·names |
586 | (DataFrame.pipe·and·DataFrame.assign). | 586 | (DataFrame.pipe·and·DataFrame.assign). |
587 | With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if | 587 | With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if |
588 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead | 588 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead |
589 | of·mutating·existing·objects·often·results·in·easier·to·understand·code,·so·we | 589 | of·mutating·existing·objects·often·results·in·easier·to·understand·code,·so·we |
590 | encourage·using·this·approach. | 590 | encourage·using·this·approach. |
Offset 222, 24 lines modified | Offset 222, 24 lines modified | ||
222 | <span·class="gp">···....:·</span>····<span·class="n">np</span><span·class="o">.</span><span·class="n">sin</span><span·class="p">(</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">pi</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)),</span> | 222 | <span·class="gp">···....:·</span>····<span·class="n">np</span><span·class="o">.</span><span·class="n">sin</span><span·class="p">(</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">pi</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)),</span> |
223 | <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span> | 223 | <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span> |
224 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)},</span> | 224 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)},</span> |
225 | <span·class="gp">···....:·</span><span·class="p">)</span> | 225 | <span·class="gp">···....:·</span><span·class="p">)</span> |
226 | <span·class="gp">···....:·</span> | 226 | <span·class="gp">···....:·</span> |
227 | <span·class="gp">In·[17]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="s2">"o"</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">"original"</span><span·class="p">)</span> | 227 | <span·class="gp">In·[17]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="s2">"o"</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">"original"</span><span·class="p">)</span> |
228 | <span·class="gh">Out[17]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f | 228 | <span·class="gh">Out[17]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f56048b4810>]</span> |
229 | <span·class="gp">In·[18]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">))</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"linear·(default)"</span><span·class="p">)</span> | 229 | <span·class="gp">In·[18]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">))</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"linear·(default)"</span><span·class="p">)</span> |
230 | <span·class="gh">Out[18]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f | 230 | <span·class="gh">Out[18]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f560586f510>]</span> |
231 | <span·class="gp">In·[19]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">),</span>·<span·class="n">method</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span> | 231 | <span·class="gp">In·[19]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">),</span>·<span·class="n">method</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span> |
232 | <span·class="gh">Out[19]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f | 232 | <span·class="gh">Out[19]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f560586fb50>]</span> |
233 | <span·class="gp">In·[20]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 233 | <span·class="gp">In·[20]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
234 | <span·class="gh">Out[20]:·</span><span·class="go"><matplotlib.legend.Legend·at·0x7f | 234 | <span·class="gh">Out[20]:·</span><span·class="go"><matplotlib.legend.Legend·at·0x7f55d3f18ed0></span> |
235 | </pre></div> | 235 | </pre></div> |
236 | </div> | 236 | </div> |
237 | <a·class="reference·internal·image-reference"·href="../_images/interpolation_sample1.png"><img·alt="../_images/interpolation_sample1.png"·src="../_images/interpolation_sample1.png"·style="width:·4in;"·/></a> | 237 | <a·class="reference·internal·image-reference"·href="../_images/interpolation_sample1.png"><img·alt="../_images/interpolation_sample1.png"·src="../_images/interpolation_sample1.png"·style="width:·4in;"·/></a> |
238 | <p>Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.</p> | 238 | <p>Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.</p> |
239 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·fill·0·for·the·outside·of·the·original·coordinates.</span> | 239 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·fill·0·for·the·outside·of·the·original·coordinates.</span> |
240 | <span·class="gp">In·[21]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">0.5</span><span·class="p">,</span>·<span·class="mf">1.5</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">),</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"fill_value"</span><span·class="p">:</span>·<span·class="mf">0.0</span><span·class="p">})</span> | 240 | <span·class="gp">In·[21]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">0.5</span><span·class="p">,</span>·<span·class="mf">1.5</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">),</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"fill_value"</span><span·class="p">:</span>·<span·class="mf">0.0</span><span·class="p">})</span> |
241 | <span·class="gh">Out[21]:·</span> | 241 | <span·class="gh">Out[21]:·</span> |
Offset 615, 15 lines modified | Offset 615, 15 lines modified | ||
615 | <span·class="g·g-Whitespace">····</span><span·class="mi">858</span>·············<span·class="sa">f</span><span·class="s2">"Dimensions·</span><span·class="si">{</span><span·class="n">invalid</span><span·class="si">}</span><span·class="s2">·do·not·exist.·Expected·one·or·more·of·</span><span·class="si">{</span><span·class="n">dims</span><span·class="si">}</span><span·class="s2">"</span> | 615 | <span·class="g·g-Whitespace">····</span><span·class="mi">858</span>·············<span·class="sa">f</span><span·class="s2">"Dimensions·</span><span·class="si">{</span><span·class="n">invalid</span><span·class="si">}</span><span·class="s2">·do·not·exist.·Expected·one·or·more·of·</span><span·class="si">{</span><span·class="n">dims</span><span·class="si">}</span><span·class="s2">"</span> |
616 | <span·class="g·g-Whitespace">····</span><span·class="mi">859</span>·········<span·class="p">)</span> | 616 | <span·class="g·g-Whitespace">····</span><span·class="mi">859</span>·········<span·class="p">)</span> |
617 | <span·class="g·g-Whitespace">····</span><span·class="mi">861</span>·····<span·class="k">return</span>·<span·class="n">indexers</span> | 617 | <span·class="g·g-Whitespace">····</span><span·class="mi">861</span>·····<span·class="k">return</span>·<span·class="n">indexers</span> |
618 | <span·class="g·g-Whitespace">····</span><span·class="mi">863</span>·<span·class="k">elif</span>·<span·class="n">missing_dims</span>·<span·class="o">==</span>·<span·class="s2">"warn"</span><span·class="p">:</span> | 618 | <span·class="g·g-Whitespace">····</span><span·class="mi">863</span>·<span·class="k">elif</span>·<span·class="n">missing_dims</span>·<span·class="o">==</span>·<span·class="s2">"warn"</span><span·class="p">:</span> |
619 | <span·class="g·g-Whitespace">····</span><span·class="mi">864</span>· | 619 | <span·class="g·g-Whitespace">····</span><span·class="mi">864</span>· |
620 | <span·class="g·g-Whitespace">····</span><span·class="mi">865</span>·····<span·class="c1">#·don't·modify·input</span> | 620 | <span·class="g·g-Whitespace">····</span><span·class="mi">865</span>·····<span·class="c1">#·don't·modify·input</span> |
621 | <span·class="ne">ValueError</span>:·Dimensions·{'l | 621 | <span·class="ne">ValueError</span>:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of·Frozen({'x':·3,·'y':·4}) |
622 | <span·class="gp">In·[63]:·</span><span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span> | 622 | <span·class="gp">In·[63]:·</span><span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span> |
623 | <span·class="gt">---------------------------------------------------------------------------</span> | 623 | <span·class="gt">---------------------------------------------------------------------------</span> |
624 | <span·class="ne">NameError</span><span·class="g·g-Whitespace">·································</span>Traceback·(most·recent·call·last) | 624 | <span·class="ne">NameError</span><span·class="g·g-Whitespace">·································</span>Traceback·(most·recent·call·last) |
625 | <span·class="n">Cell</span>·<span·class="n">In</span>·<span·class="p">[</span><span·class="mi">63</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> | 625 | <span·class="n">Cell</span>·<span·class="n">In</span>·<span·class="p">[</span><span·class="mi">63</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span> |
626 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span> | 626 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span> |
Offset 165, 26 lines modified | Offset 165, 26 lines modified | ||
165 | ···....:·····np.sin(np.linspace(0,·2·*·np.pi,·10)), | 165 | ···....:·····np.sin(np.linspace(0,·2·*·np.pi,·10)), |
166 | ···....:·····dims="x", | 166 | ···....:·····dims="x", |
167 | ···....:·····coords={"x":·np.linspace(0,·1,·10)}, | 167 | ···....:·····coords={"x":·np.linspace(0,·1,·10)}, |
168 | ···....:·) | 168 | ···....:·) |
169 | ···....: | 169 | ···....: |
170 | In·[17]:·da.plot.line("o",·label="original") | 170 | In·[17]:·da.plot.line("o",·label="original") |
171 | Out[17]:·[<matplotlib.lines.Line2D·at·0x7f | 171 | Out[17]:·[<matplotlib.lines.Line2D·at·0x7f56048b4810>] |
172 | In·[18]:·da.interp(x=np.linspace(0,·1,·100)).plot.line(label="linear | 172 | In·[18]:·da.interp(x=np.linspace(0,·1,·100)).plot.line(label="linear |
173 | (default)") | 173 | (default)") |
174 | Out[18]:·[<matplotlib.lines.Line2D·at·0x7f | 174 | Out[18]:·[<matplotlib.lines.Line2D·at·0x7f560586f510>] |
175 | In·[19]:·da.interp(x=np.linspace(0,·1,·100),·method="cubic").plot.line | 175 | In·[19]:·da.interp(x=np.linspace(0,·1,·100),·method="cubic").plot.line |
176 | (label="cubic") | 176 | (label="cubic") |
177 | Out[19]:·[<matplotlib.lines.Line2D·at·0x7f | 177 | Out[19]:·[<matplotlib.lines.Line2D·at·0x7f560586fb50>] |
178 | In·[20]:·plt.legend() | 178 | In·[20]:·plt.legend() |
179 | Out[20]:·<matplotlib.legend.Legend·at·0x7f | 179 | Out[20]:·<matplotlib.legend.Legend·at·0x7f55d3f18ed0> |
180 | [../_images/interpolation_sample1.png] | 180 | [../_images/interpolation_sample1.png] |
181 | Additional·keyword·arguments·can·be·passed·to·scipyâs·functions. | 181 | Additional·keyword·arguments·can·be·passed·to·scipyâs·functions. |
182 | #·fill·0·for·the·outside·of·the·original·coordinates. | 182 | #·fill·0·for·the·outside·of·the·original·coordinates. |
183 | In·[21]:·da.interp(x=np.linspace(-0.5,·1.5,·10),·kwargs={"fill_value":·0.0}) | 183 | In·[21]:·da.interp(x=np.linspace(-0.5,·1.5,·10),·kwargs={"fill_value":·0.0}) |
184 | Out[21]: | 184 | Out[21]: |
185 | <xarray.DataArray·(x:·10)> | 185 | <xarray.DataArray·(x:·10)> |
186 | array([·0.···,··0.···,··0.···,··0.814,··0.604,·-0.604,·-0.814,··0.···,··0.···, | 186 | array([·0.···,··0.···,··0.···,··0.814,··0.604,·-0.604,·-0.814,··0.···,··0.···, |
Offset 558, 15 lines modified | Offset 558, 15 lines modified | ||
558 | of·{dims}" | 558 | of·{dims}" |
559 | ····859·········) | 559 | ····859·········) |
560 | ····861·····return·indexers | 560 | ····861·····return·indexers |
561 | ····863·elif·missing_dims·==·"warn": | 561 | ····863·elif·missing_dims·==·"warn": |
562 | ····864 | 562 | ····864 |
563 | ····865·····#·don't·modify·input | 563 | ····865·····#·don't·modify·input |
564 | ValueError:·Dimensions·{'l | 564 | ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of |
565 | Frozen({'x':·3,·'y':·4}) | 565 | Frozen({'x':·3,·'y':·4}) |
566 | In·[63]:·dsi.air.plot(ax=axes[1]) | 566 | In·[63]:·dsi.air.plot(ax=axes[1]) |
567 | --------------------------------------------------------------------------- | 567 | --------------------------------------------------------------------------- |
568 | NameError·································Traceback·(most·recent·call·last) | 568 | NameError·································Traceback·(most·recent·call·last) |
569 | Cell·In·[63],·line·1 | 569 | Cell·In·[63],·line·1 |
570 | ---->·1·dsi.air.plot(ax=axes[1]) | 570 | ---->·1·dsi.air.plot(ax=axes[1]) |
Offset 643, 15 lines modified | Offset 643, 15 lines modified | ||
643 | <span·class="ne">-->·</span><span·class="mi">186</span>·····<span·class="k">raise</span>·<span·class="ne">KeyError</span><span·class="p">(</span><span·class="n">key</span><span·class="p">)</span> | 643 | <span·class="ne">-->·</span><span·class="mi">186</span>·····<span·class="k">raise</span>·<span·class="ne">KeyError</span><span·class="p">(</span><span·class="n">key</span><span·class="p">)</span> |
644 | <span·class="g·g-Whitespace">····</span><span·class="mi">188</span>·<span·class="n">ref_name</span><span·class="p">,</span>·<span·class="n">var_name</span>·<span·class="o">=</span>·<span·class="n">split_key</span> | 644 | <span·class="g·g-Whitespace">····</span><span·class="mi">188</span>·<span·class="n">ref_name</span><span·class="p">,</span>·<span·class="n">var_name</span>·<span·class="o">=</span>·<span·class="n">split_key</span> |
645 | <span·class="g·g-Whitespace">····</span><span·class="mi">189</span>·<span·class="n">ref_var</span>·<span·class="o">=</span>·<span·class="n">variables</span><span·class="p">[</span><span·class="n">ref_name</span><span·class="p">]</span> | 645 | <span·class="g·g-Whitespace">····</span><span·class="mi">189</span>·<span·class="n">ref_var</span>·<span·class="o">=</span>·<span·class="n">variables</span><span·class="p">[</span><span·class="n">ref_name</span><span·class="p">]</span> |
646 | <span·class="ne">KeyError</span>:·'lat' | 646 | <span·class="ne">KeyError</span>:·'lat' |
647 | <span·class="gp">In·[51]:·</span><span·class="n">b</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 647 | <span·class="gp">In·[51]:·</span><span·class="n">b</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
648 | <span·class="gh">Out[51]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f | 648 | <span·class="gh">Out[51]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x7f5685e7e750>]</span> |
649 | </pre></div> | 649 | </pre></div> |
650 | </div> | 650 | </div> |
651 | <a·class="reference·internal·image-reference"·href="../_images/plotting_nonuniform_coords.png"><img·alt="../_images/plotting_nonuniform_coords.png"·src="../_images/plotting_nonuniform_coords.png"·style="width:·4in;"·/></a> | 651 | <a·class="reference·internal·image-reference"·href="../_images/plotting_nonuniform_coords.png"><img·alt="../_images/plotting_nonuniform_coords.png"·src="../_images/plotting_nonuniform_coords.png"·style="width:·4in;"·/></a> |
652 | </section> | 652 | </section> |
653 | <section·id="other-types-of-plot"> | 653 | <section·id="other-types-of-plot"> |
654 | <h4>Other·types·of·plot<a·class="headerlink"·href="#other-types-of-plot"·title="Permalink·to·this·heading">¶</a></h4> | 654 | <h4>Other·types·of·plot<a·class="headerlink"·href="#other-types-of-plot"·title="Permalink·to·this·heading">¶</a></h4> |
655 | <p>There·are·several·other·options·for·plotting·2D·data.</p> | 655 | <p>There·are·several·other·options·for·plotting·2D·data.</p> |
Offset 1205, 104 lines modified | Offset 1205, 104 lines modified | ||
1205 | <span·class="go">··*·y········(y)·float64·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0</span> | 1205 | <span·class="go">··*·y········(y)·float64·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0</span> |
1206 | <span·class="go">··*·z········(z)·int64·0·1·2·3</span> | 1206 | <span·class="go">··*·z········(z)·int64·0·1·2·3</span> |
1207 | <span·class="go">··*·w········(w)·<U5·'one'·'two'·'three'·'five'</span> | 1207 | <span·class="go">··*·w········(w)·<U5·'one'·'two'·'three'·'five'</span> |
1208 | <span·class="go">Attributes:</span> | 1208 | <span·class="go">Attributes:</span> |
1209 | <span·class="go">····units:····Aunits</span> | 1209 | <span·class="go">····units:····Aunits</span> |
1210 | <span·class="gp">In·[99]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">A</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">)</span> | 1210 | <span·class="gp">In·[99]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">A</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">)</span> |
1211 | <span·class="gh">Out[99]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1211 | <span·class="gh">Out[99]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f5685d2bed0></span> |
1212 | </pre></div> | 1212 | </pre></div> |
1213 | </div> | 1213 | </div> |
1214 | <img·alt="../_images/da_A_y.png"·src="../_images/da_A_y.png"·/> | 1214 | <img·alt="../_images/da_A_y.png"·src="../_images/da_A_y.png"·/> |
1215 | <p>Same·plot·can·be·displayed·using·the·dataset:</p> | 1215 | <p>Same·plot·can·be·displayed·using·the·dataset:</p> |
1216 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[100]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">)</span> | 1216 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[100]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">)</span> |
1217 | <span·class="gh">Out[100]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1217 | <span·class="gh">Out[100]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f5685c6ba90></span> |
1218 | </pre></div> | 1218 | </pre></div> |
1219 | </div> | 1219 | </div> |
1220 | <img·alt="../_images/ds_A_y.png"·src="../_images/ds_A_y.png"·/> | 1220 | <img·alt="../_images/ds_A_y.png"·src="../_images/ds_A_y.png"·/> |
1221 | <p>Now·suppose·we·want·to·scatter·the·<code·class="docutils·literal·notranslate"><span·class="pre">A</span></code>·DataArray·against·the·<code·class="docutils·literal·notranslate"><span·class="pre">B</span></code>·DataArray</p> | 1221 | <p>Now·suppose·we·want·to·scatter·the·<code·class="docutils·literal·notranslate"><span·class="pre">A</span></code>·DataArray·against·the·<code·class="docutils·literal·notranslate"><span·class="pre">B</span></code>·DataArray</p> |
1222 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[101]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> | 1222 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[101]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> |
1223 | <span·class="gh">Out[101]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1223 | <span·class="gh">Out[101]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f5685cd6cd0></span> |
1224 | </pre></div> | 1224 | </pre></div> |
1225 | </div> | 1225 | </div> |
1226 | <img·alt="../_images/ds_simple_scatter.png"·src="../_images/ds_simple_scatter.png"·/> | 1226 | <img·alt="../_images/ds_simple_scatter.png"·src="../_images/ds_simple_scatter.png"·/> |
1227 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">hue</span></code>·kwarg·lets·you·vary·the·color·by·variable·value</p> | 1227 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">hue</span></code>·kwarg·lets·you·vary·the·color·by·variable·value</p> |
1228 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[102]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 1228 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[102]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
1229 | <span·class="gh">Out[102]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1229 | <span·class="gh">Out[102]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f5685c38c10></span> |
1230 | </pre></div> | 1230 | </pre></div> |
1231 | </div> | 1231 | </div> |
1232 | <img·alt="../_images/ds_hue_scatter.png"·src="../_images/ds_hue_scatter.png"·/> | 1232 | <img·alt="../_images/ds_hue_scatter.png"·src="../_images/ds_hue_scatter.png"·/> |
1233 | <p>You·can·force·a·legend·instead·of·a·colorbar·by·setting·<code·class="docutils·literal·notranslate"><span·class="pre">add_legend=True,</span>·<span·class="pre">add_colorbar=False</span></code>.</p> | 1233 | <p>You·can·force·a·legend·instead·of·a·colorbar·by·setting·<code·class="docutils·literal·notranslate"><span·class="pre">add_legend=True,</span>·<span·class="pre">add_colorbar=False</span></code>.</p> |
1234 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[103]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> | 1234 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[103]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span> |
1235 | <span·class="gh">Out[103]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1235 | <span·class="gh">Out[103]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f55d343ccd0></span> |
1236 | </pre></div> | 1236 | </pre></div> |
1237 | </div> | 1237 | </div> |
1238 | <img·alt="../_images/ds_discrete_legend_hue_scatter.png"·src="../_images/ds_discrete_legend_hue_scatter.png"·/> | 1238 | <img·alt="../_images/ds_discrete_legend_hue_scatter.png"·src="../_images/ds_discrete_legend_hue_scatter.png"·/> |
1239 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[104]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span> | 1239 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[104]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">add_legend</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">add_colorbar</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span> |
1240 | <span·class="gh">Out[104]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1240 | <span·class="gh">Out[104]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f55d3475dd0></span> |
1241 | </pre></div> | 1241 | </pre></div> |
1242 | </div> | 1242 | </div> |
1243 | <img·alt="../_images/ds_discrete_colorbar_hue_scatter.png"·src="../_images/ds_discrete_colorbar_hue_scatter.png"·/> | 1243 | <img·alt="../_images/ds_discrete_colorbar_hue_scatter.png"·src="../_images/ds_discrete_colorbar_hue_scatter.png"·/> |
1244 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">markersize</span></code>·kwarg·lets·you·vary·the·point’s·size·by·variable·value. | 1244 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">markersize</span></code>·kwarg·lets·you·vary·the·point’s·size·by·variable·value. |
1245 | You·can·additionally·pass·<code·class="docutils·literal·notranslate"><span·class="pre">size_norm</span></code>·to·control·how·the·variable’s·values·are·mapped·to·point·sizes.</p> | 1245 | You·can·additionally·pass·<code·class="docutils·literal·notranslate"><span·class="pre">size_norm</span></code>·to·control·how·the·variable’s·values·are·mapped·to·point·sizes.</p> |
1246 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[105]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">)</span> | 1246 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[105]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">)</span> |
1247 | <span·class="gh">Out[105]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f | 1247 | <span·class="gh">Out[105]:·</span><span·class="go"><matplotlib.collections.PathCollection·at·0x7f55d32d1a50></span> |
1248 | </pre></div> | 1248 | </pre></div> |
1249 | </div> | 1249 | </div> |
1250 | <img·alt="../_images/ds_hue_size_scatter.png"·src="../_images/ds_hue_size_scatter.png"·/> | 1250 | <img·alt="../_images/ds_hue_size_scatter.png"·src="../_images/ds_hue_size_scatter.png"·/> |
1251 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">z</span></code>·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well.</p> | 1251 | <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">z</span></code>·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well.</p> |
1252 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[106]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">)</span> | 1252 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[106]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">)</span> |
1253 | <span·class="gh">Out[106]:·</span><span·class="go"><mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f | 1253 | <span·class="gh">Out[106]:·</span><span·class="go"><mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f55d32f0190></span> |
1254 | </pre></div> | 1254 | </pre></div> |
1255 | </div> | 1255 | </div> |
1256 | <img·alt="../_images/ds_hue_size_scatter_z.png"·src="../_images/ds_hue_size_scatter_z.png"·/> | 1256 | <img·alt="../_images/ds_hue_size_scatter_z.png"·src="../_images/ds_hue_size_scatter_z.png"·/> |
1257 | <p>Faceting·is·also·possible</p> | 1257 | <p>Faceting·is·also·possible</p> |
1258 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[107]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 1258 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[107]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
1259 | <span·class="gh">Out[107]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f | 1259 | <span·class="gh">Out[107]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f55d6b7a050></span> |
1260 | </pre></div> | 1260 | </pre></div> |
1261 | </div> | 1261 | </div> |
1262 | <img·alt="../_images/ds_facet_scatter.png"·src="../_images/ds_facet_scatter.png"·/> | 1262 | <img·alt="../_images/ds_facet_scatter.png"·src="../_images/ds_facet_scatter.png"·/> |
1263 | <p>And·adding·the·z-axis</p> | 1263 | <p>And·adding·the·z-axis</p> |
1264 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[108]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 1264 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[108]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">scatter</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
1265 | <span·class="gh">Out[108]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f | 1265 | <span·class="gh">Out[108]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f55d305c610></span> |
1266 | </pre></div> | 1266 | </pre></div> |
1267 | </div> | 1267 | </div> |
1268 | <img·alt="../_images/ds_facet_scatter_z.png"·src="../_images/ds_facet_scatter_z.png"·/> | 1268 | <img·alt="../_images/ds_facet_scatter_z.png"·src="../_images/ds_facet_scatter_z.png"·/> |
1269 | <p>For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data·variables | 1269 | <p>For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data·variables |
1270 | to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities·of·<code·class="docutils·literal·notranslate"><span·class="pre">seaborn</span></code>.</p> | 1270 | to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities·of·<code·class="docutils·literal·notranslate"><span·class="pre">seaborn</span></code>.</p> |
1271 | </section> | 1271 | </section> |
1272 | <section·id="quiver"> | 1272 | <section·id="quiver"> |
1273 | <h3>Quiver<a·class="headerlink"·href="#quiver"·title="Permalink·to·this·heading">¶</a></h3> | 1273 | <h3>Quiver<a·class="headerlink"·href="#quiver"·title="Permalink·to·this·heading">¶</a></h3> |
1274 | <p>Visualizing·vector·fields·is·supported·with·quiver·plots:</p> | 1274 | <p>Visualizing·vector·fields·is·supported·with·quiver·plots:</p> |
1275 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[109]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> | 1275 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[109]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> |
1276 | <span·class="gh">Out[109]:·</span><span·class="go"><matplotlib.quiver.Quiver·at·0x7f | 1276 | <span·class="gh">Out[109]:·</span><span·class="go"><matplotlib.quiver.Quiver·at·0x7f55d2c8cb90></span> |
1277 | </pre></div> | 1277 | </pre></div> |
1278 | </div> | 1278 | </div> |
1279 | <img·alt="../_images/ds_simple_quiver.png"·src="../_images/ds_simple_quiver.png"·/> | 1279 | <img·alt="../_images/ds_simple_quiver.png"·src="../_images/ds_simple_quiver.png"·/> |
1280 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·arrow·vectors.·Again,·faceting·is·also·possible:</p> | 1280 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·arrow·vectors.·Again,·faceting·is·also·possible:</p> |
1281 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[110]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">scale</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">)</span> | 1281 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[110]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">quiver</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">,</span>·<span·class="n">scale</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">)</span> |
1282 | <span·class="gh">Out[110]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f | 1282 | <span·class="gh">Out[110]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f55d2d61bd0></span> |
1283 | </pre></div> | 1283 | </pre></div> |
1284 | </div> | 1284 | </div> |
1285 | <img·alt="../_images/ds_facet_quiver.png"·src="../_images/ds_facet_quiver.png"·/> | 1285 | <img·alt="../_images/ds_facet_quiver.png"·src="../_images/ds_facet_quiver.png"·/> |
1286 | <p><code·class="docutils·literal·notranslate"><span·class="pre">scale</span></code>·is·required·for·faceted·quiver·plots. | 1286 | <p><code·class="docutils·literal·notranslate"><span·class="pre">scale</span></code>·is·required·for·faceted·quiver·plots. |
1287 | The·scale·determines·the·number·of·data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the·arrow·longer.</p> | 1287 | The·scale·determines·the·number·of·data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the·arrow·longer.</p> |
1288 | </section> | 1288 | </section> |
1289 | <section·id="streamplot"> | 1289 | <section·id="streamplot"> |
1290 | <h3>Streamplot<a·class="headerlink"·href="#streamplot"·title="Permalink·to·this·heading">¶</a></h3> | 1290 | <h3>Streamplot<a·class="headerlink"·href="#streamplot"·title="Permalink·to·this·heading">¶</a></h3> |
1291 | <p>Visualizing·vector·fields·is·also·supported·with·streamline·plots:</p> | 1291 | <p>Visualizing·vector·fields·is·also·supported·with·streamline·plots:</p> |
1292 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[111]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">streamplot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> | 1292 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[111]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">isel</span><span·class="p">(</span><span·class="n">w</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">streamplot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">)</span> |
1293 | <span·class="gh">Out[111]:·</span><span·class="go"><matplotlib.collections.LineCollection·at·0x7f | 1293 | <span·class="gh">Out[111]:·</span><span·class="go"><matplotlib.collections.LineCollection·at·0x7f55d29493d0></span> |
1294 | </pre></div> | 1294 | </pre></div> |
1295 | </div> | 1295 | </div> |
1296 | <img·alt="../_images/ds_simple_streamplot.png"·src="../_images/ds_simple_streamplot.png"·/> | 1296 | <img·alt="../_images/ds_simple_streamplot.png"·src="../_images/ds_simple_streamplot.png"·/> |
1297 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to·the·streamlines. | 1297 | <p>where·<code·class="docutils·literal·notranslate"><span·class="pre">u</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">v</span></code>·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to·the·streamlines. |
1298 | Again,·faceting·is·also·possible:</p> | 1298 | Again,·faceting·is·also·possible:</p> |
1299 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[112]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">streamplot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">)</span> | 1299 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[112]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">streamplot</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">"y"</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">"A"</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">"B"</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">"z"</span><span·class="p">)</span> |
1300 | <span·class="gh">Out[112]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f | 1300 | <span·class="gh">Out[112]:·</span><span·class="go"><xarray.plot.facetgrid.FacetGrid·at·0x7f55d2772690></span> |
1301 | </pre></div> | 1301 | </pre></div> |
1302 | </div> | 1302 | </div> |
1303 | <img·alt="../_images/ds_facet_streamplot.png"·src="../_images/ds_facet_streamplot.png"·/> | 1303 | <img·alt="../_images/ds_facet_streamplot.png"·src="../_images/ds_facet_streamplot.png"·/> |
1304 | </section> | 1304 | </section> |
1305 | </section> | 1305 | </section> |
1306 | <section·id="maps"> | 1306 | <section·id="maps"> |
1307 | <span·id="plot-maps"></span><h2>Maps<a·class="headerlink"·href="#maps"·title="Permalink·to·this·heading">¶</a></h2> | 1307 | <span·id="plot-maps"></span><h2>Maps<a·class="headerlink"·href="#maps"·title="Permalink·to·this·heading">¶</a></h2> |
Offset 1424, 24 lines modified | Offset 1424, 24 lines modified | ||
1424 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[121]:·</span><span·class="kn">import</span>·<span·class="nn">xarray.plot</span>·<span·class="k">as</span>·<span·class="nn">xplt</span> | 1424 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[121]:·</span><span·class="kn">import</span>·<span·class="nn">xarray.plot</span>·<span·class="k">as</span>·<span·class="nn">xplt</span> |
1425 | <span·class="gp">In·[122]:·</span><span·class="n">da</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">DataArray</span><span·class="p">(</span><span·class="nb">range</span><span·class="p">(</span><span·class="mi">5</span><span·class="p">))</span> | 1425 | <span·class="gp">In·[122]:·</span><span·class="n">da</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">DataArray</span><span·class="p">(</span><span·class="nb">range</span><span·class="p">(</span><span·class="mi">5</span><span·class="p">))</span> |
1426 | <span·class="gp">In·[123]:·</span><span·class="n">fig</span><span·class="p">,</span>·<span·class="n">axs</span>·<span·class="o">=</span>·<span·class="n">plt</span><span·class="o">.</span><span·class="n">subplots</span><span·class="p">(</span><span·class="n">ncols</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">nrows</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">)</span> | 1426 | <span·class="gp">In·[123]:·</span><span·class="n">fig</span><span·class="p">,</span>·<span·class="n">axs</span>·<span·class="o">=</span>·<span·class="n">plt</span><span·class="o">.</span><span·class="n">subplots</span><span·class="p">(</span><span·class="n">ncols</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">nrows</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">)</span> |
Max diff block lines reached; 16761/38857 bytes (43.14%) of diff not shown. |
Offset 541, 15 lines modified | Offset 541, 15 lines modified | ||
541 | -->·186·····raise·KeyError(key) | 541 | -->·186·····raise·KeyError(key) |
542 | ····188·ref_name,·var_name·=·split_key | 542 | ····188·ref_name,·var_name·=·split_key |
543 | ····189·ref_var·=·variables[ref_name] | 543 | ····189·ref_var·=·variables[ref_name] |
544 | KeyError:·'lat' | 544 | KeyError:·'lat' |
545 | In·[51]:·b.plot() | 545 | In·[51]:·b.plot() |
546 | Out[51]:·[<matplotlib.lines.Line2D·at·0x7f | 546 | Out[51]:·[<matplotlib.lines.Line2D·at·0x7f5685e7e750>] |
547 | [../_images/plotting_nonuniform_coords.png] | 547 | [../_images/plotting_nonuniform_coords.png] |
548 | ***·Other·types·of·plot¶·*** | 548 | ***·Other·types·of·plot¶·*** |
549 | There·are·several·other·options·for·plotting·2D·data. | 549 | There·are·several·other·options·for·plotting·2D·data. |
550 | Contour·plot·using·DataArray.plot.contour() | 550 | Contour·plot·using·DataArray.plot.contour() |
551 | In·[52]:·air2d.plot.contour() | 551 | In·[52]:·air2d.plot.contour() |
552 | --------------------------------------------------------------------------- | 552 | --------------------------------------------------------------------------- |
553 | NameError·································Traceback·(most·recent·call·last) | 553 | NameError·································Traceback·(most·recent·call·last) |
Offset 1030, 85 lines modified | Offset 1030, 85 lines modified | ||
1030 | ··*·y········(y)·float64·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0 | 1030 | ··*·y········(y)·float64·0.0·0.1·0.2·0.3·0.4·0.5·0.6·0.7·0.8·0.9·1.0 |
1031 | ··*·z········(z)·int64·0·1·2·3 | 1031 | ··*·z········(z)·int64·0·1·2·3 |
1032 | ··*·w········(w)·<U5·'one'·'two'·'three'·'five' | 1032 | ··*·w········(w)·<U5·'one'·'two'·'three'·'five' |
1033 | Attributes: | 1033 | Attributes: |
1034 | ····units:····Aunits | 1034 | ····units:····Aunits |
1035 | In·[99]:·ds.A.plot.scatter(x="y") | 1035 | In·[99]:·ds.A.plot.scatter(x="y") |
1036 | Out[99]:·<matplotlib.collections.PathCollection·at·0x7f | 1036 | Out[99]:·<matplotlib.collections.PathCollection·at·0x7f5685d2bed0> |
1037 | [../_images/da_A_y.png] | 1037 | [../_images/da_A_y.png] |
1038 | Same·plot·can·be·displayed·using·the·dataset: | 1038 | Same·plot·can·be·displayed·using·the·dataset: |
1039 | In·[100]:·ds.plot.scatter(x="y",·y="A") | 1039 | In·[100]:·ds.plot.scatter(x="y",·y="A") |
1040 | Out[100]:·<matplotlib.collections.PathCollection·at·0x7f | 1040 | Out[100]:·<matplotlib.collections.PathCollection·at·0x7f5685c6ba90> |
1041 | [../_images/ds_A_y.png] | 1041 | [../_images/ds_A_y.png] |
1042 | Now·suppose·we·want·to·scatter·the·A·DataArray·against·the·B·DataArray | 1042 | Now·suppose·we·want·to·scatter·the·A·DataArray·against·the·B·DataArray |
1043 | In·[101]:·ds.plot.scatter(x="A",·y="B") | 1043 | In·[101]:·ds.plot.scatter(x="A",·y="B") |
1044 | Out[101]:·<matplotlib.collections.PathCollection·at·0x7f | 1044 | Out[101]:·<matplotlib.collections.PathCollection·at·0x7f5685cd6cd0> |
1045 | [../_images/ds_simple_scatter.png] | 1045 | [../_images/ds_simple_scatter.png] |
1046 | The·hue·kwarg·lets·you·vary·the·color·by·variable·value | 1046 | The·hue·kwarg·lets·you·vary·the·color·by·variable·value |
1047 | In·[102]:·ds.plot.scatter(x="A",·y="B",·hue="w") | 1047 | In·[102]:·ds.plot.scatter(x="A",·y="B",·hue="w") |
1048 | Out[102]:·<matplotlib.collections.PathCollection·at·0x7f | 1048 | Out[102]:·<matplotlib.collections.PathCollection·at·0x7f5685c38c10> |
1049 | [../_images/ds_hue_scatter.png] | 1049 | [../_images/ds_hue_scatter.png] |
1050 | You·can·force·a·legend·instead·of·a·colorbar·by·setting·add_legend=True, | 1050 | You·can·force·a·legend·instead·of·a·colorbar·by·setting·add_legend=True, |
1051 | add_colorbar=False. | 1051 | add_colorbar=False. |
1052 | In·[103]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=True, | 1052 | In·[103]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=True, |
1053 | add_colorbar=False) | 1053 | add_colorbar=False) |
1054 | Out[103]:·<matplotlib.collections.PathCollection·at·0x7f | 1054 | Out[103]:·<matplotlib.collections.PathCollection·at·0x7f55d343ccd0> |
1055 | [../_images/ds_discrete_legend_hue_scatter.png] | 1055 | [../_images/ds_discrete_legend_hue_scatter.png] |
1056 | In·[104]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=False, | 1056 | In·[104]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=False, |
1057 | add_colorbar=True) | 1057 | add_colorbar=True) |
1058 | Out[104]:·<matplotlib.collections.PathCollection·at·0x7f | 1058 | Out[104]:·<matplotlib.collections.PathCollection·at·0x7f55d3475dd0> |
1059 | [../_images/ds_discrete_colorbar_hue_scatter.png] | 1059 | [../_images/ds_discrete_colorbar_hue_scatter.png] |
1060 | The·markersize·kwarg·lets·you·vary·the·pointâs·size·by·variable·value.·You | 1060 | The·markersize·kwarg·lets·you·vary·the·pointâs·size·by·variable·value.·You |
1061 | can·additionally·pass·size_norm·to·control·how·the·variableâs·values·are | 1061 | can·additionally·pass·size_norm·to·control·how·the·variableâs·values·are |
1062 | mapped·to·point·sizes. | 1062 | mapped·to·point·sizes. |
1063 | In·[105]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="z") | 1063 | In·[105]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="z") |
1064 | Out[105]:·<matplotlib.collections.PathCollection·at·0x7f | 1064 | Out[105]:·<matplotlib.collections.PathCollection·at·0x7f55d32d1a50> |
1065 | [../_images/ds_hue_size_scatter.png] | 1065 | [../_images/ds_hue_size_scatter.png] |
1066 | The·z·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well. | 1066 | The·z·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well. |
1067 | In·[106]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x") | 1067 | In·[106]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x") |
1068 | Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f | 1068 | Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f55d32f0190> |
1069 | [../_images/ds_hue_size_scatter_z.png] | 1069 | [../_images/ds_hue_size_scatter_z.png] |
1070 | Faceting·is·also·possible | 1070 | Faceting·is·also·possible |
1071 | In·[107]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="x",·row="x", | 1071 | In·[107]:·ds.plot.scatter(x="A",·y="B",·hue="y",·markersize="x",·row="x", |
1072 | col="w") | 1072 | col="w") |
1073 | Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f | 1073 | Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d6b7a050> |
1074 | [../_images/ds_facet_scatter.png] | 1074 | [../_images/ds_facet_scatter.png] |
1075 | And·adding·the·z-axis | 1075 | And·adding·the·z-axis |
1076 | In·[108]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x", | 1076 | In·[108]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x", |
1077 | row="x",·col="w") | 1077 | row="x",·col="w") |
1078 | Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f | 1078 | Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d305c610> |
1079 | [../_images/ds_facet_scatter_z.png] | 1079 | [../_images/ds_facet_scatter_z.png] |
1080 | For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data | 1080 | For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data |
1081 | variables·to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities | 1081 | variables·to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities |
1082 | of·seaborn. | 1082 | of·seaborn. |
1083 | ****·Quiver¶·**** | 1083 | ****·Quiver¶·**** |
1084 | Visualizing·vector·fields·is·supported·with·quiver·plots: | 1084 | Visualizing·vector·fields·is·supported·with·quiver·plots: |
1085 | In·[109]:·ds.isel(w=1,·z=1).plot.quiver(x="x",·y="y",·u="A",·v="B") | 1085 | In·[109]:·ds.isel(w=1,·z=1).plot.quiver(x="x",·y="y",·u="A",·v="B") |
1086 | Out[109]:·<matplotlib.quiver.Quiver·at·0x7f | 1086 | Out[109]:·<matplotlib.quiver.Quiver·at·0x7f55d2c8cb90> |
1087 | [../_images/ds_simple_quiver.png] | 1087 | [../_images/ds_simple_quiver.png] |
1088 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·arrow·vectors. | 1088 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·arrow·vectors. |
1089 | Again,·faceting·is·also·possible: | 1089 | Again,·faceting·is·also·possible: |
1090 | In·[110]:·ds.plot.quiver(x="x",·y="y",·u="A",·v="B",·col="w",·row="z",·scale=4) | 1090 | In·[110]:·ds.plot.quiver(x="x",·y="y",·u="A",·v="B",·col="w",·row="z",·scale=4) |
1091 | Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f | 1091 | Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d2d61bd0> |
1092 | [../_images/ds_facet_quiver.png] | 1092 | [../_images/ds_facet_quiver.png] |
1093 | scale·is·required·for·faceted·quiver·plots.·The·scale·determines·the·number·of | 1093 | scale·is·required·for·faceted·quiver·plots.·The·scale·determines·the·number·of |
1094 | data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the | 1094 | data·units·per·arrow·length·unit,·i.e.·a·smaller·scale·parameter·makes·the |
1095 | arrow·longer. | 1095 | arrow·longer. |
1096 | ****·Streamplot¶·**** | 1096 | ****·Streamplot¶·**** |
1097 | Visualizing·vector·fields·is·also·supported·with·streamline·plots: | 1097 | Visualizing·vector·fields·is·also·supported·with·streamline·plots: |
1098 | In·[111]:·ds.isel(w=1,·z=1).plot.streamplot(x="x",·y="y",·u="A",·v="B") | 1098 | In·[111]:·ds.isel(w=1,·z=1).plot.streamplot(x="x",·y="y",·u="A",·v="B") |
1099 | Out[111]:·<matplotlib.collections.LineCollection·at·0x7f | 1099 | Out[111]:·<matplotlib.collections.LineCollection·at·0x7f55d29493d0> |
1100 | [../_images/ds_simple_streamplot.png] | 1100 | [../_images/ds_simple_streamplot.png] |
1101 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to | 1101 | where·u·and·v·denote·the·x·and·y·direction·components·of·the·vectors·tangent·to |
1102 | the·streamlines.·Again,·faceting·is·also·possible: | 1102 | the·streamlines.·Again,·faceting·is·also·possible: |
1103 | In·[112]:·ds.plot.streamplot(x="x",·y="y",·u="A",·v="B",·col="w",·row="z") | 1103 | In·[112]:·ds.plot.streamplot(x="x",·y="y",·u="A",·v="B",·col="w",·row="z") |
1104 | Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f | 1104 | Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d2772690> |
1105 | [../_images/ds_facet_streamplot.png] | 1105 | [../_images/ds_facet_streamplot.png] |
1106 | *****·Maps¶·***** | 1106 | *****·Maps¶·***** |
1107 | To·follow·this·section·youâll·need·to·have·Cartopy·installed·and·working. | 1107 | To·follow·this·section·youâll·need·to·have·Cartopy·installed·and·working. |
1108 | This·script·will·plot·the·air·temperature·on·a·map. | 1108 | This·script·will·plot·the·air·temperature·on·a·map. |
1109 | In·[113]:·import·cartopy.crs·as·ccrs | 1109 | In·[113]:·import·cartopy.crs·as·ccrs |
1110 | In·[114]:·air·=·xr.tutorial.open_dataset("air_temperature").air | 1110 | In·[114]:·air·=·xr.tutorial.open_dataset("air_temperature").air |
Offset 1221, 24 lines modified | Offset 1221, 24 lines modified | ||
1221 | In·[121]:·import·xarray.plot·as·xplt | 1221 | In·[121]:·import·xarray.plot·as·xplt |
1222 | In·[122]:·da·=·xr.DataArray(range(5)) | 1222 | In·[122]:·da·=·xr.DataArray(range(5)) |
1223 | In·[123]:·fig,·axs·=·plt.subplots(ncols=2,·nrows=2) | 1223 | In·[123]:·fig,·axs·=·plt.subplots(ncols=2,·nrows=2) |
1224 | In·[124]:·da.plot(ax=axs[0,·0]) | 1224 | In·[124]:·da.plot(ax=axs[0,·0]) |
1225 | Out[124]:·[<matplotlib.lines.Line2D·at·0x7f | 1225 | Out[124]:·[<matplotlib.lines.Line2D·at·0x7f55d31f1ad0>] |
1226 | In·[125]:·da.plot.line(ax=axs[0,·1]) | 1226 | In·[125]:·da.plot.line(ax=axs[0,·1]) |
1227 | Out[125]:·[<matplotlib.lines.Line2D·at·0x7f | 1227 | Out[125]:·[<matplotlib.lines.Line2D·at·0x7f55d197f910>] |
1228 | In·[126]:·xplt.plot(da,·ax=axs[1,·0]) | 1228 | In·[126]:·xplt.plot(da,·ax=axs[1,·0]) |
1229 | Out[126]:·[<matplotlib.lines.Line2D·at·0x7f | 1229 | Out[126]:·[<matplotlib.lines.Line2D·at·0x7f55d18ed490>] |
1230 | In·[127]:·xplt.line(da,·ax=axs[1,·1]) | 1230 | In·[127]:·xplt.line(da,·ax=axs[1,·1]) |
1231 | Out[127]:·[<matplotlib.lines.Line2D·at·0x7f | 1231 | Out[127]:·[<matplotlib.lines.Line2D·at·0x7f55d18edf50>] |
1232 | In·[128]:·plt.tight_layout() | 1232 | In·[128]:·plt.tight_layout() |
1233 | In·[129]:·plt.draw() | 1233 | In·[129]:·plt.draw() |
1234 | [../_images/plotting_ways_to_use.png] | 1234 | [../_images/plotting_ways_to_use.png] |
1235 | Here·the·output·is·the·same.·Since·the·data·is·1·dimensional·the·line·plot·was | 1235 | Here·the·output·is·the·same.·Since·the·data·is·1·dimensional·the·line·plot·was |
1236 | used. | 1236 | used. |
Offset 1270, 15 lines modified | Offset 1270, 15 lines modified | ||
Max diff block lines reached; 4927/11679 bytes (42.19%) of diff not shown. |
Offset 5855, 15 lines modified | Offset 5855, 15 lines modified | ||
5855 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.where</span></code>·method·for·masking·xray·objects·according | 5855 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.where</span></code>·method·for·masking·xray·objects·according |
5856 | to·some·criteria.·This·works·particularly·well·with·multi-dimensional·data:</p> | 5856 | to·some·criteria.·This·works·particularly·well·with·multi-dimensional·data:</p> |
5857 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[44]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xray</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span><span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">),</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">)})</span> | 5857 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[44]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xray</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span><span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">),</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">)})</span> |
5858 | <span·class="gp">In·[45]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"distance"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">sqrt</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">x</span><span·class="o">**</span><span·class="mi">2</span>·<span·class="o">+</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">y</span><span·class="o">**</span><span·class="mi">2</span><span·class="p">)</span> | 5858 | <span·class="gp">In·[45]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"distance"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">sqrt</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">x</span><span·class="o">**</span><span·class="mi">2</span>·<span·class="o">+</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">y</span><span·class="o">**</span><span·class="mi">2</span><span·class="p">)</span> |
5859 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span><span·class="o">.</span><span·class="n">where</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span>·<span·class="o"><</span>·<span·class="mi">100</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 5859 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span><span·class="o">.</span><span·class="n">where</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span>·<span·class="o"><</span>·<span·class="mi">100</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
5860 | <span·class="gh">Out[46]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0x7f | 5860 | <span·class="gh">Out[46]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0x7f55cdfdded0></span> |
5861 | </pre></div> | 5861 | </pre></div> |
5862 | </div> | 5862 | </div> |
5863 | <a·class="reference·internal·image-reference"·href="_images/where_example.png"><img·alt="_images/where_example.png"·src="_images/where_example.png"·style="width:·4in;·height:·4in;"·/></a> | 5863 | <a·class="reference·internal·image-reference"·href="_images/where_example.png"><img·alt="_images/where_example.png"·src="_images/where_example.png"·style="width:·4in;·height:·4in;"·/></a> |
5864 | </li> | 5864 | </li> |
5865 | <li><p>Added·new·methods·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.diff</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.diff</span></code> | 5865 | <li><p>Added·new·methods·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.diff</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.diff</span></code> |
5866 | for·finite·difference·calculations·along·a·given·axis.</p></li> | 5866 | for·finite·difference·calculations·along·a·given·axis.</p></li> |
5867 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.to_masked_array</span></code>·convenience·method·for | 5867 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.to_masked_array</span></code>·convenience·method·for |
Offset 4049, 15 lines modified | Offset 4049, 15 lines modified | ||
4049 | ····*·New·xray.Dataset.where·method·for·masking·xray·objects·according·to·some | 4049 | ····*·New·xray.Dataset.where·method·for·masking·xray·objects·according·to·some |
4050 | ······criteria.·This·works·particularly·well·with·multi-dimensional·data: | 4050 | ······criteria.·This·works·particularly·well·with·multi-dimensional·data: |
4051 | ······In·[44]:·ds·=·xray.Dataset(coords={"x":·range(100),·"y":·range(100)}) | 4051 | ······In·[44]:·ds·=·xray.Dataset(coords={"x":·range(100),·"y":·range(100)}) |
4052 | ······In·[45]:·ds["distance"]·=·np.sqrt(ds.x**2·+·ds.y**2) | 4052 | ······In·[45]:·ds["distance"]·=·np.sqrt(ds.x**2·+·ds.y**2) |
4053 | ······In·[46]:·ds.distance.where(ds.distance·<·100).plot() | 4053 | ······In·[46]:·ds.distance.where(ds.distance·<·100).plot() |
4054 | ······Out[46]:·<matplotlib.collections.QuadMesh·at·0x7f | 4054 | ······Out[46]:·<matplotlib.collections.QuadMesh·at·0x7f55cdfdded0> |
4055 | ······[_images/where_example.png] | 4055 | ······[_images/where_example.png] |
4056 | ····*·Added·new·methods·xray.DataArray.diff·and·xray.Dataset.diff·for·finite | 4056 | ····*·Added·new·methods·xray.DataArray.diff·and·xray.Dataset.diff·for·finite |
4057 | ······difference·calculations·along·a·given·axis. | 4057 | ······difference·calculations·along·a·given·axis. |
4058 | ····*·New·xray.DataArray.to_masked_array·convenience·method·for·returning·a | 4058 | ····*·New·xray.DataArray.to_masked_array·convenience·method·for·returning·a |
4059 | ······numpy.ma.MaskedArray. | 4059 | ······numpy.ma.MaskedArray. |
4060 | ······In·[47]:·da·=·xray.DataArray(np.random.random_sample(size=(5,·4))) | 4060 | ······In·[47]:·da·=·xray.DataArray(np.random.random_sample(size=(5,·4))) |