288 KB
/srv/reproducible-results/rbuild-debian/r-b-build.fJv1aePw/b1/python-xarray_2023.01.0-1.1_armhf.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.fJv1aePw/b2/python-xarray_2023.01.0-1.1_armhf.changes
315 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·f2c747a67f8200ce5498424acef0c8e1·5277120·doc·optional·python-xarray-doc_2023.01.0-1.1_all.deb1 ·44e33ac1c4d118fd91e800b7932faaee·5277408·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.deb2 ·6e5f6af35de770365644ec5792cfe64e·630312·python·optional·python3-xarray_2023.01.0-1.1_all.deb
287 KB
python-xarray-doc_2023.01.0-1.1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2023-02-19·00:50:57.000000·debian-binary1 -rw-r--r--···0········0········0········4·2023-02-19·00:50:57.000000·debian-binary
2 -rw-r--r--···0········0········0·····6248·2023-02-19·00:50:57.000000·control.tar.xz2 -rw-r--r--···0········0········0·····6248·2023-02-19·00:50:57.000000·control.tar.xz
3 -rw-r--r--···0········0········0··5270680·2023-02-19·00:50:57.000000·data.tar.xz3 -rw-r--r--···0········0········0··5270968·2023-02-19·00:50:57.000000·data.tar.xz
681 B
control.tar.xz
653 B
control.tar
583 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·python-xarray-doc1 Package:·python-xarray-doc
2 Source:·python-xarray2 Source:·python-xarray
3 Version:·2023.01.0-1.13 Version:·2023.01.0-1.1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Debian·Science·Maintainers·<debian-science-maintainers@lists.alioth.debian.org>5 Maintainer:·Debian·Science·Maintainers·<debian-science-maintainers@lists.alioth.debian.org>
6 Installed-Size:·130256 Installed-Size:·13026
7 Depends:·libjs-sphinxdoc·(>=·5.2),·libjs-mathjax,·libjs-requirejs7 Depends:·libjs-sphinxdoc·(>=·5.2),·libjs-mathjax,·libjs-requirejs
8 Built-Using:·alabaster·(=·0.7.12-1),·sphinx·(=·5.3.0-4)8 Built-Using:·alabaster·(=·0.7.12-1),·sphinx·(=·5.3.0-4)
9 Section:·doc9 Section:·doc
10 Priority:·optional10 Priority:·optional
11 Homepage:·http://xarray.pydata.org/11 Homepage:·http://xarray.pydata.org/
12 Description:·documentation·for·xarray12 Description:·documentation·for·xarray
13 ·xarray·(formerly·xray)·is·an·open·source·project·and·Python·package·that·aims13 ·xarray·(formerly·xray)·is·an·open·source·project·and·Python·package·that·aims
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
286 KB
data.tar.xz
286 KB
data.tar
9.33 KB
file list
    
Offset 233, 31 lines modifiedOffset 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.html233 -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.html234 -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.html235 -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.html236 -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.html237 -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)···108993·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html239 -rw-r--r--···0·root·········(0)·root·········(0)···108993·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)·····6551·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz240 -rw-r--r--···0·root·········(0)·root·········(0)·····6548·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.html241 -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)····24060·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz242 -rw-r--r--···0·root·········(0)·root·········(0)····24072·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.html243 -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)·····9548·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz244 -rw-r--r--···0·root·········(0)·root·········(0)·····9576·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.html245 -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)····21769·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz246 -rw-r--r--···0·root·········(0)·root·········(0)····21786·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.html247 -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)·····1561·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz248 -rw-r--r--···0·root·········(0)·root·········(0)·····1563·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.html249 -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)·····3558·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz250 -rw-r--r--···0·root·········(0)·root·········(0)·····3568·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.html251 -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)····11197·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz252 -rw-r--r--···0·root·········(0)·root·········(0)····11212·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)····65410·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html253 -rw-r--r--···0·root·········(0)·root·········(0)····65410·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)·····4684·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz254 -rw-r--r--···0·root·········(0)·root·········(0)·····4702·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)····92379·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html255 -rw-r--r--···0·root·········(0)·root·········(0)····92379·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)···367787·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz256 -rw-r--r--···0·root·········(0)·root·········(0)···367812·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.html257 -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.html258 -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.html260 -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.html261 -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.html262 -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)····42869·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/quick-overview.html263 -rw-r--r--···0·root·········(0)·root·········(0)····42869·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/quick-overview.html
Offset 271, 20 lines modifiedOffset 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.html271 -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.html272 -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.html273 -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.inv274 -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.html275 -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.html276 -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.html277 -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)···198563·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js278 -rw-r--r--···0·root·········(0)·root·········(0)···198602·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.html279 -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.html281 -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.html282 -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)····74640·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/dask.html283 -rw-r--r--···0·root·········(0)·root·········(0)····74829·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)····98807·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html284 -rw-r--r--···0·root·········(0)·root·········(0)····98807·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.html285 -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.html286 -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.html287 -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.html288 -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)····91318·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html289 -rw-r--r--···0·root·········(0)·root·········(0)····91318·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.html290 -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
1.51 KB
./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html
    
Offset 433, 15 lines modifiedOffset 433, 15 lines modified
433 </pre></div></div>433 </pre></div></div>
434 </div>434 </div>
435 <div·class="nboutput·docutils·container">435 <div·class="nboutput·docutils·container">
436 <div·class="prompt·empty·docutils·container">436 <div·class="prompt·empty·docutils·container">
437 </div>437 </div>
438 <div·class="output_area·docutils·container">438 <div·class="output_area·docutils·container">
439 <div·class="highlight"><pre>439 <div·class="highlight"><pre>
440 Error·in·callback·&lt;function·_draw_all_if_interactive·at·0xab993398&gt;·(for·post_execute):440 Error·in·callback·&lt;function·_draw_all_if_interactive·at·0xec4c83e8&gt;·(for·post_execute):
441 </pre></div></div>441 </pre></div></div>
442 </div>442 </div>
443 <div·class="nboutput·docutils·container">443 <div·class="nboutput·docutils·container">
444 <div·class="prompt·empty·docutils·container">444 <div·class="prompt·empty·docutils·container">
445 </div>445 </div>
446 <div·class="output_area·docutils·container">446 <div·class="output_area·docutils·container">
447 <div·class="highlight"><pre>447 <div·class="highlight"><pre>
788 B
html2text {}
    
Offset 99, 15 lines modifiedOffset 99, 15 lines modified
99 ---->·7·plot·=·ds.t2m[0].plot(99 ---->·7·plot·=·ds.t2m[0].plot(
100 ······8·····cmap=plt.cm.coolwarm,·transform=ccrs.PlateCarree(),·cbar_kwargs=100 ······8·····cmap=plt.cm.coolwarm,·transform=ccrs.PlateCarree(),·cbar_kwargs=
101 {"shrink":·0.6}101 {"shrink":·0.6}
102 ······9·)102 ······9·)
103 ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019")103 ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019")
  
104 NameError:·name·'ds'·is·not·defined104 NameError:·name·'ds'·is·not·defined
105 Error·in·callback·<function·_draw_all_if_interactive·at·0xab993398>·(for105 Error·in·callback·<function·_draw_all_if_interactive·at·0xec4c83e8>·(for
106 post_execute):106 post_execute):
107 ---------------------------------------------------------------------------107 ---------------------------------------------------------------------------
108 PermissionError···························Traceback·(most·recent·call·last)108 PermissionError···························Traceback·(most·recent·call·last)
109 File·/usr/lib/python3/dist-packages/matplotlib/pyplot.py:119,·in109 File·/usr/lib/python3/dist-packages/matplotlib/pyplot.py:119,·in
110 _draw_all_if_interactive()110 _draw_all_if_interactive()
111 ····117·def·_draw_all_if_interactive():111 ····117·def·_draw_all_if_interactive():
112 ····118·····if·matplotlib.is_interactive():112 ····118·····if·matplotlib.is_interactive():
6.48 KB
./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz
6.34 KB
ERA5-GRIB-example.ipynb
6.29 KB
Pretty-printed
Similarity: 0.9985416666666667% Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:11:32.555303Z', " "'iopub.status.busy': '2024-01-12T07:11:32.544632Z', 'iopub.status.idle': " "'2024-01-12T07:12:00.141414Z', 'shell.execute_reply': " "'2024-01-12T07:12:00.137464Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:12:00.186716Z', 'iopub.status.busy': " "'2024-01-12T07:12:00.172439Z', 'iopub.status.idle': '2024-01-12T07:12:0 […]
    
Offset 15, 18 lines modifiedOffset 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":·"2024-01-12T06:27:45.659634Z",22 ····················"iopub.execute_input":·"2024-01-12T07:11:32.555303Z",
23 ····················"iopub.status.busy":·"2024-01-12T06:27:45.658603Z",23 ····················"iopub.status.busy":·"2024-01-12T07:11:32.544632Z",
24 ····················"iopub.status.idle":·"2024-01-12T06:27:56.981312Z",24 ····················"iopub.status.idle":·"2024-01-12T07:12:00.141414Z",
25 ····················"shell.execute_reply":·"2024-01-12T06:27:56.974026Z"25 ····················"shell.execute_reply":·"2024-01-12T07:12:00.137464Z"
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 54, 18 lines modifiedOffset 54, 18 lines modified
54 ············]54 ············]
55 ········},55 ········},
56 ········{56 ········{
57 ············"cell_type":·"code",57 ············"cell_type":·"code",
58 ············"execution_count":·2,58 ············"execution_count":·2,
59 ············"metadata":·{59 ············"metadata":·{
60 ················"execution":·{60 ················"execution":·{
61 ····················"iopub.execute_input":·"2024-01-12T06:27:56.995943Z",61 ····················"iopub.execute_input":·"2024-01-12T07:12:00.186716Z",
62 ····················"iopub.status.busy":·"2024-01-12T06:27:56.994799Z",62 ····················"iopub.status.busy":·"2024-01-12T07:12:00.172439Z",
63 ····················"iopub.status.idle":·"2024-01-12T06:27:58.504791Z",63 ····················"iopub.status.idle":·"2024-01-12T07:12:03.490813Z",
64 ····················"shell.execute_reply":·"2024-01-12T06:27:58.493195Z"64 ····················"shell.execute_reply":·"2024-01-12T07:12:03.481047Z"
65 ················}65 ················}
66 ············},66 ············},
67 ············"outputs":·[67 ············"outputs":·[
68 ················{68 ················{
69 ····················"ename":·"ImportError",69 ····················"ename":·"ImportError",
70 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",70 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
71 ····················"output_type":·"error",71 ····················"output_type":·"error",
Offset 95, 18 lines modifiedOffset 95, 18 lines modified
95 ············]95 ············]
96 ········},96 ········},
97 ········{97 ········{
98 ············"cell_type":·"code",98 ············"cell_type":·"code",
99 ············"execution_count":·3,99 ············"execution_count":·3,
100 ············"metadata":·{100 ············"metadata":·{
101 ················"execution":·{101 ················"execution":·{
102 ····················"iopub.execute_input":·"2024-01-12T06:27:58.531900Z",102 ····················"iopub.execute_input":·"2024-01-12T07:12:03.530528Z",
103 ····················"iopub.status.busy":·"2024-01-12T06:27:58.530912Z",103 ····················"iopub.status.busy":·"2024-01-12T07:12:03.516818Z",
104 ····················"iopub.status.idle":·"2024-01-12T06:27:58.668475Z",104 ····················"iopub.status.idle":·"2024-01-12T07:12:03.758827Z",
105 ····················"shell.execute_reply":·"2024-01-12T06:27:58.655996Z"105 ····················"shell.execute_reply":·"2024-01-12T07:12:03.752318Z"
106 ················}106 ················}
107 ············},107 ············},
108 ············"outputs":·[108 ············"outputs":·[
109 ················{109 ················{
110 ····················"ename":·"NameError",110 ····················"ename":·"NameError",
111 ····················"evalue":·"name·'ds'·is·not·defined",111 ····················"evalue":·"name·'ds'·is·not·defined",
112 ····················"output_type":·"error",112 ····················"output_type":·"error",
Offset 131, 18 lines modifiedOffset 131, 18 lines modified
131 ············]131 ············]
132 ········},132 ········},
133 ········{133 ········{
134 ············"cell_type":·"code",134 ············"cell_type":·"code",
135 ············"execution_count":·4,135 ············"execution_count":·4,
136 ············"metadata":·{136 ············"metadata":·{
137 ················"execution":·{137 ················"execution":·{
138 ····················"iopub.execute_input":·"2024-01-12T06:27:58.688901Z",138 ····················"iopub.execute_input":·"2024-01-12T07:12:03.802179Z",
139 ····················"iopub.status.busy":·"2024-01-12T06:27:58.682330Z",139 ····················"iopub.status.busy":·"2024-01-12T07:12:03.788211Z",
140 ····················"iopub.status.idle":·"2024-01-12T06:28:07.904844Z",140 ····················"iopub.status.idle":·"2024-01-12T07:12:43.422803Z",
141 ····················"shell.execute_reply":·"2024-01-12T06:28:07.900757Z"141 ····················"shell.execute_reply":·"2024-01-12T07:12:43.409443Z"
142 ················}142 ················}
143 ············},143 ············},
144 ············"outputs":·[144 ············"outputs":·[
145 ················{145 ················{
146 ····················"ename":·"NameError",146 ····················"ename":·"NameError",
147 ····················"evalue":·"name·'ds'·is·not·defined",147 ····················"evalue":·"name·'ds'·is·not·defined",
148 ····················"output_type":·"error",148 ····················"output_type":·"error",
Offset 153, 15 lines modifiedOffset 153, 15 lines modified
153 ························"\u001b[0;31mNameError\u001b[0m:·name·'ds'·is·not·defined"153 ························"\u001b[0;31mNameError\u001b[0m:·name·'ds'·is·not·defined"
154 ····················]154 ····················]
155 ················},155 ················},
156 ················{156 ················{
157 ····················"name":·"stdout",157 ····················"name":·"stdout",
158 ····················"output_type":·"stream",158 ····················"output_type":·"stream",
159 ····················"text":·[159 ····················"text":·[
160 ························"Error·in·callback·<function·_draw_all_if_interactive·at·0xab993398>·(for·post_execute):\n"160 ························"Error·in·callback·<function·_draw_all_if_interactive·at·0xec4c83e8>·(for·post_execute):\n"
161 ····················]161 ····················]
162 ················},162 ················},
163 ················{163 ················{
164 ····················"ename":·"PermissionError",164 ····················"ename":·"PermissionError",
165 ····················"evalue":·"[Errno·13]·Permission·denied:·'/nonexistent'",165 ····················"evalue":·"[Errno·13]·Permission·denied:·'/nonexistent'",
166 ····················"output_type":·"error",166 ····················"output_type":·"error",
167 ····················"traceback":·[167 ····················"traceback":·[
Offset 262, 18 lines modifiedOffset 262, 18 lines modified
262 ············]262 ············]
263 ········},263 ········},
264 ········{264 ········{
265 ············"cell_type":·"code",265 ············"cell_type":·"code",
266 ············"execution_count":·5,266 ············"execution_count":·5,
267 ············"metadata":·{267 ············"metadata":·{
268 ················"execution":·{268 ················"execution":·{
269 ····················"iopub.execute_input":·"2024-01-12T06:28:07.934908Z",269 ····················"iopub.execute_input":·"2024-01-12T07:12:43.491677Z",
270 ····················"iopub.status.busy":·"2024-01-12T06:28:07.933593Z",270 ····················"iopub.status.busy":·"2024-01-12T07:12:43.476951Z",
271 ····················"iopub.status.idle":·"2024-01-12T06:28:08.016535Z",271 ····················"iopub.status.idle":·"2024-01-12T07:12:43.841505Z",
272 ····················"shell.execute_reply":·"2024-01-12T06:28:08.014220Z"272 ····················"shell.execute_reply":·"2024-01-12T07:12:43.833471Z"
273 ················}273 ················}
274 ············},274 ············},
275 ············"outputs":·[275 ············"outputs":·[
276 ················{276 ················{
277 ····················"ename":·"NameError",277 ····················"ename":·"NameError",
278 ····················"evalue":·"name·'ds'·is·not·defined",278 ····················"evalue":·"name·'ds'·is·not·defined",
279 ····················"output_type":·"error",279 ····················"output_type":·"error",
7.7 KB
./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz
7.56 KB
ROMS_ocean_model.ipynb
7.51 KB
Pretty-printed
Similarity: 0.9988051470588235% Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:13:28.895559Z', " "'iopub.status.busy': '2024-01-12T07:13:28.884752Z', 'iopub.status.idle': " "'2024-01-12T07:13:50.738928Z', 'shell.execute_reply': " "'2024-01-12T07:13:50.725448Z'}}}, 5: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:13:50.800417Z', 'iopub.status.busy': " "'2024-01-12T07:13:50.785000Z', 'iopub.status.idle': '2024-01-12T07:13:5 […]
    
Offset 17, 18 lines modifiedOffset 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":·"2024-01-12T06:28:20.016913Z",24 ····················"iopub.execute_input":·"2024-01-12T07:13:28.895559Z",
25 ····················"iopub.status.busy":·"2024-01-12T06:28:20.015742Z",25 ····················"iopub.status.busy":·"2024-01-12T07:13:28.884752Z",
26 ····················"iopub.status.idle":·"2024-01-12T06:28:26.407406Z",26 ····················"iopub.status.idle":·"2024-01-12T07:13:50.738928Z",
27 ····················"shell.execute_reply":·"2024-01-12T06:28:26.400924Z"27 ····················"shell.execute_reply":·"2024-01-12T07:13:50.725448Z"
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 modifiedOffset 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":·"2024-01-12T06:28:26.451149Z",82 ····················"iopub.execute_input":·"2024-01-12T07:13:50.800417Z",
83 ····················"iopub.status.busy":·"2024-01-12T06:28:26.444092Z",83 ····················"iopub.status.busy":·"2024-01-12T07:13:50.785000Z",
84 ····················"iopub.status.idle":·"2024-01-12T06:28:27.880056Z",84 ····················"iopub.status.idle":·"2024-01-12T07:13:55.779942Z",
85 ····················"shell.execute_reply":·"2024-01-12T06:28:27.876540Z"85 ····················"shell.execute_reply":·"2024-01-12T07:13:55.773502Z"
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 modifiedOffset 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":·"2024-01-12T06:28:27.905009Z",137 ····················"iopub.execute_input":·"2024-01-12T07:13:55.848873Z",
138 ····················"iopub.status.busy":·"2024-01-12T06:28:27.902910Z",138 ····················"iopub.status.busy":·"2024-01-12T07:13:55.846611Z",
139 ····················"iopub.status.idle":·"2024-01-12T06:28:28.022945Z",139 ····················"iopub.status.idle":·"2024-01-12T07:13:56.399557Z",
140 ····················"shell.execute_reply":·"2024-01-12T06:28:28.020466Z"140 ····················"shell.execute_reply":·"2024-01-12T07:13:56.393503Z"
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 modifiedOffset 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":·"2024-01-12T06:28:28.034440Z",182 ····················"iopub.execute_input":·"2024-01-12T07:13:56.460876Z",
183 ····················"iopub.status.busy":·"2024-01-12T06:28:28.033593Z",183 ····················"iopub.status.busy":·"2024-01-12T07:13:56.458607Z",
184 ····················"iopub.status.idle":·"2024-01-12T06:28:28.152468Z",184 ····················"iopub.status.idle":·"2024-01-12T07:13:56.836022Z",
185 ····················"shell.execute_reply":·"2024-01-12T06:28:28.147071Z"185 ····················"shell.execute_reply":·"2024-01-12T07:13:56.829521Z"
186 ················},186 ················},
187 ················"scrolled":·false187 ················"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 modifiedOffset 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":·"2024-01-12T06:28:28.166343Z",218 ····················"iopub.execute_input":·"2024-01-12T07:13:56.888719Z",
219 ····················"iopub.status.busy":·"2024-01-12T06:28:28.165553Z",219 ····················"iopub.status.busy":·"2024-01-12T07:13:56.886430Z",
220 ····················"iopub.status.idle":·"2024-01-12T06:28:28.233905Z",220 ····················"iopub.status.idle":·"2024-01-12T07:13:57.131933Z",
221 ····················"shell.execute_reply":·"2024-01-12T06:28:28.231522Z"221 ····················"shell.execute_reply":·"2024-01-12T07:13:57.113508Z"
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 modifiedOffset 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":·"2024-01-12T06:28:28.245275Z",257 ····················"iopub.execute_input":·"2024-01-12T07:13:57.192900Z",
258 ····················"iopub.status.busy":·"2024-01-12T06:28:28.244359Z",258 ····················"iopub.status.busy":·"2024-01-12T07:13:57.190651Z",
259 ····················"iopub.status.idle":·"2024-01-12T06:28:28.313242Z",259 ····················"iopub.status.idle":·"2024-01-12T07:13:57.571773Z",
260 ····················"shell.execute_reply":·"2024-01-12T06:28:28.309503Z"260 ····················"shell.execute_reply":·"2024-01-12T07:13:57.565505Z"
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 modifiedOffset 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":·"2024-01-12T06:28:28.326428Z",292 ····················"iopub.execute_input":·"2024-01-12T07:13:57.638944Z",
293 ····················"iopub.status.busy":·"2024-01-12T06:28:28.325587Z",293 ····················"iopub.status.busy":·"2024-01-12T07:13:57.636493Z",
294 ····················"iopub.status.idle":·"2024-01-12T06:28:29.224496Z",294 ····················"iopub.status.idle":·"2024-01-12T07:14:01.305608Z",
295 ····················"shell.execute_reply":·"2024-01-12T06:28:29.212455Z"295 ····················"shell.execute_reply":·"2024-01-12T07:14:01.289508Z"
296 ················}296 ················}
297 ············},297 ············},
Max diff block lines reached; 166/7112 bytes (2.33%) of diff not shown.
17.3 KB
./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz
17.1 KB
apply_ufunc_vectorize_1d.ipynb
17.0 KB
Pretty-printed
Similarity: 0.9994283536585367% Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:14:40.539598Z', " "'iopub.status.busy': '2024-01-12T07:14:40.524738Z', 'iopub.status.idle': " "'2024-01-12T07:14:57.157626Z', 'shell.execute_reply': " "'2024-01-12T07:14:57.141523Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:14:57.233942Z', 'iopub.status.busy': " "'2024-01-12T07:14:57.215378Z', 'iopub.status.idle': '2024-01-12T07:14:5 […]
    
Offset 36, 18 lines modifiedOffset 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":·"2024-01-12T06:28:39.751599Z",43 ····················"iopub.execute_input":·"2024-01-12T07:14:40.539598Z",
44 ····················"iopub.status.busy":·"2024-01-12T06:28:39.750572Z",44 ····················"iopub.status.busy":·"2024-01-12T07:14:40.524738Z",
45 ····················"iopub.status.idle":·"2024-01-12T06:28:44.092490Z",45 ····················"iopub.status.idle":·"2024-01-12T07:14:57.157626Z",
46 ····················"shell.execute_reply":·"2024-01-12T06:28:44.076476Z"46 ····················"shell.execute_reply":·"2024-01-12T07:14:57.141523Z"
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 modifiedOffset 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":·"2024-01-12T06:28:44.119492Z",98 ····················"iopub.execute_input":·"2024-01-12T07:14:57.233942Z",
99 ····················"iopub.status.busy":·"2024-01-12T06:28:44.118634Z",99 ····················"iopub.status.busy":·"2024-01-12T07:14:57.215378Z",
100 ····················"iopub.status.idle":·"2024-01-12T06:28:44.247113Z",100 ····················"iopub.status.idle":·"2024-01-12T07:14:57.633622Z",
101 ····················"shell.execute_reply":·"2024-01-12T06:28:44.236806Z"101 ····················"shell.execute_reply":·"2024-01-12T07:14:57.617543Z"
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 modifiedOffset 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":·"2024-01-12T06:28:44.270162Z",138 ····················"iopub.execute_input":·"2024-01-12T07:14:57.701391Z",
139 ····················"iopub.status.busy":·"2024-01-12T06:28:44.269283Z",139 ····················"iopub.status.busy":·"2024-01-12T07:14:57.683097Z",
140 ····················"iopub.status.idle":·"2024-01-12T06:28:44.363112Z",140 ····················"iopub.status.idle":·"2024-01-12T07:14:58.175688Z",
141 ····················"shell.execute_reply":·"2024-01-12T06:28:44.359855Z"141 ····················"shell.execute_reply":·"2024-01-12T07:14:58.165509Z"
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 modifiedOffset 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":·"2024-01-12T06:28:44.385668Z",197 ····················"iopub.execute_input":·"2024-01-12T07:14:58.242575Z",
198 ····················"iopub.status.busy":·"2024-01-12T06:28:44.384804Z",198 ····················"iopub.status.busy":·"2024-01-12T07:14:58.227957Z",
199 ····················"iopub.status.idle":·"2024-01-12T06:28:44.477476Z",199 ····················"iopub.status.idle":·"2024-01-12T07:14:58.631494Z",
200 ····················"shell.execute_reply":·"2024-01-12T06:28:44.471236Z"200 ····················"shell.execute_reply":·"2024-01-12T07:14:58.625504Z"
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 modifiedOffset 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":·"2024-01-12T06:28:44.501794Z",263 ····················"iopub.execute_input":·"2024-01-12T07:14:58.665407Z",
264 ····················"iopub.status.busy":·"2024-01-12T06:28:44.500890Z",264 ····················"iopub.status.busy":·"2024-01-12T07:14:58.663024Z",
265 ····················"iopub.status.idle":·"2024-01-12T06:28:44.575515Z",265 ····················"iopub.status.idle":·"2024-01-12T07:14:58.929278Z",
266 ····················"shell.execute_reply":·"2024-01-12T06:28:44.571338Z"266 ····················"shell.execute_reply":·"2024-01-12T07:14:58.923146Z"
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 modifiedOffset 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":·"2024-01-12T06:28:44.587475Z",341 ····················"iopub.execute_input":·"2024-01-12T07:14:58.960788Z",
342 ····················"iopub.status.busy":·"2024-01-12T06:28:44.586623Z",342 ····················"iopub.status.busy":·"2024-01-12T07:14:58.958714Z",
343 ····················"iopub.status.idle":·"2024-01-12T06:28:44.680573Z",343 ····················"iopub.status.idle":·"2024-01-12T07:14:59.180814Z",
344 ····················"shell.execute_reply":·"2024-01-12T06:28:44.678336Z"344 ····················"shell.execute_reply":·"2024-01-12T07:14:59.173256Z"
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 modifiedOffset 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":·"2024-01-12T06:28:44.694533Z",387 ····················"iopub.execute_input":·"2024-01-12T07:14:59.217092Z",
388 ····················"iopub.status.busy":·"2024-01-12T06:28:44.691814Z",388 ····················"iopub.status.busy":·"2024-01-12T07:14:59.214657Z",
389 ····················"iopub.status.idle":·"2024-01-12T06:28:44.777794Z",389 ····················"iopub.status.idle":·"2024-01-12T07:14:59.435088Z",
390 ····················"shell.execute_reply":·"2024-01-12T06:28:44.775113Z"390 ····················"shell.execute_reply":·"2024-01-12T07:14:59.428350Z"
391 ················}391 ················}
392 ············},392 ············},
Max diff block lines reached; 9140/16869 bytes (54.18%) of diff not shown.
8.49 KB
./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz
8.33 KB
area_weighted_temperature.ipynb
8.26 KB
Pretty-printed
Similarity: 0.99921875% Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:16:10.459385Z', " "'iopub.status.busy': '2024-01-12T07:16:10.448667Z', 'iopub.status.idle': " "'2024-01-12T07:16:35.914804Z', 'shell.execute_reply': " "'2024-01-12T07:16:35.905449Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:16:35.971728Z', 'iopub.status.busy': " "'2024-01-12T07:16:35.948614Z', 'iopub.status.idle': '2024-01-12T07:16:4 […]
    
Offset 28, 18 lines modifiedOffset 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":·"2024-01-12T06:28:59.089378Z",35 ····················"iopub.execute_input":·"2024-01-12T07:16:10.459385Z",
36 ····················"iopub.status.busy":·"2024-01-12T06:28:59.088185Z",36 ····················"iopub.status.busy":·"2024-01-12T07:16:10.448667Z",
37 ····················"iopub.status.idle":·"2024-01-12T06:29:03.777284Z",37 ····················"iopub.status.idle":·"2024-01-12T07:16:35.914804Z",
38 ····················"shell.execute_reply":·"2024-01-12T06:29:03.770050Z"38 ····················"shell.execute_reply":·"2024-01-12T07:16:35.905449Z"
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 modifiedOffset 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":·"2024-01-12T06:29:03.793926Z",70 ····················"iopub.execute_input":·"2024-01-12T07:16:35.971728Z",
71 ····················"iopub.status.busy":·"2024-01-12T06:29:03.792657Z",71 ····················"iopub.status.busy":·"2024-01-12T07:16:35.948614Z",
72 ····················"iopub.status.idle":·"2024-01-12T06:29:04.470927Z",72 ····················"iopub.status.idle":·"2024-01-12T07:16:41.299922Z",
73 ····················"shell.execute_reply":·"2024-01-12T06:29:04.468775Z"73 ····················"shell.execute_reply":·"2024-01-12T07:16:41.293026Z"
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 modifiedOffset 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":·"2024-01-12T06:29:04.481977Z",123 ····················"iopub.execute_input":·"2024-01-12T07:16:41.332536Z",
124 ····················"iopub.status.busy":·"2024-01-12T06:29:04.481186Z",124 ····················"iopub.status.busy":·"2024-01-12T07:16:41.330116Z",
125 ····················"iopub.status.idle":·"2024-01-12T06:29:04.892126Z",125 ····················"iopub.status.idle":·"2024-01-12T07:16:43.533614Z",
126 ····················"shell.execute_reply":·"2024-01-12T06:29:04.889926Z"126 ····················"shell.execute_reply":·"2024-01-12T07:16:43.517573Z"
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 modifiedOffset 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":·"2024-01-12T06:29:04.907607Z",179 ····················"iopub.execute_input":·"2024-01-12T07:16:43.597108Z",
180 ····················"iopub.status.busy":·"2024-01-12T06:29:04.906468Z",180 ····················"iopub.status.busy":·"2024-01-12T07:16:43.594791Z",
181 ····················"iopub.status.idle":·"2024-01-12T06:29:04.969062Z",181 ····················"iopub.status.idle":·"2024-01-12T07:16:43.997593Z",
182 ····················"shell.execute_reply":·"2024-01-12T06:29:04.966736Z"182 ····················"shell.execute_reply":·"2024-01-12T07:16:43.981513Z"
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 modifiedOffset 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":·"2024-01-12T06:29:04.985138Z",220 ····················"iopub.execute_input":·"2024-01-12T07:16:44.049159Z",
221 ····················"iopub.status.busy":·"2024-01-12T06:29:04.979887Z",221 ····················"iopub.status.busy":·"2024-01-12T07:16:44.046839Z",
222 ····················"iopub.status.idle":·"2024-01-12T06:29:05.038553Z",222 ····················"iopub.status.idle":·"2024-01-12T07:16:44.425609Z",
223 ····················"shell.execute_reply":·"2024-01-12T06:29:05.036398Z"223 ····················"shell.execute_reply":·"2024-01-12T07:16:44.409506Z"
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 modifiedOffset 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":·"2024-01-12T06:29:05.049916Z",253 ····················"iopub.execute_input":·"2024-01-12T07:16:44.492680Z",
254 ····················"iopub.status.busy":·"2024-01-12T06:29:05.049035Z",254 ····················"iopub.status.busy":·"2024-01-12T07:16:44.490532Z",
255 ····················"iopub.status.idle":·"2024-01-12T06:29:05.617684Z",255 ····················"iopub.status.idle":·"2024-01-12T07:16:45.869600Z",
256 ····················"shell.execute_reply":·"2024-01-12T06:29:05.612425Z"256 ····················"shell.execute_reply":·"2024-01-12T07:16:45.853509Z"
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 modifiedOffset 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":·"2024-01-12T06:29:05.639390Z",295 ····················"iopub.execute_input":·"2024-01-12T07:16:45.949040Z",
296 ····················"iopub.status.busy":·"2024-01-12T06:29:05.638558Z",296 ····················"iopub.status.busy":·"2024-01-12T07:16:45.946820Z",
297 ····················"iopub.status.idle":·"2024-01-12T06:29:05.768472Z",297 ····················"iopub.status.idle":·"2024-01-12T07:16:46.335853Z",
298 ····················"shell.execute_reply":·"2024-01-12T06:29:05.752415Z"298 ····················"shell.execute_reply":·"2024-01-12T07:16:46.329502Z"
299 ················}299 ················}
300 ············},300 ············},
Max diff block lines reached; 177/7888 bytes (2.24%) of diff not shown.
1.62 KB
./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz
1.48 KB
blank_template.ipynb
1.44 KB
Pretty-printed
Similarity: 0.9991319444444444% Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:17:25.863843Z', " "'iopub.status.busy': '2024-01-12T07:17:25.852207Z', 'iopub.status.idle': " "'2024-01-12T07:17:40.713613Z', 'shell.execute_reply': " "'2024-01-12T07:17:40.697514Z'}}}}"}
    
Offset 12, 18 lines modifiedOffset 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":·"2024-01-12T06:29:16.543369Z",19 ····················"iopub.execute_input":·"2024-01-12T07:17:25.863843Z",
20 ····················"iopub.status.busy":·"2024-01-12T06:29:16.542402Z",20 ····················"iopub.status.busy":·"2024-01-12T07:17:25.852207Z",
21 ····················"iopub.status.idle":·"2024-01-12T06:29:19.845511Z",21 ····················"iopub.status.idle":·"2024-01-12T07:17:40.713613Z",
22 ····················"shell.execute_reply":·"2024-01-12T06:29:19.842875Z"22 ····················"shell.execute_reply":·"2024-01-12T07:17:40.697514Z"
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",
9.52 KB
./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz
9.39 KB
monthly-means.ipynb
9.35 KB
Pretty-printed
Similarity: 0.998721590909091% Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:18:12.287447Z', " "'iopub.status.busy': '2024-01-12T07:18:12.272781Z', 'iopub.status.idle': " "'2024-01-12T07:18:31.081477Z', 'shell.execute_reply': " "'2024-01-12T07:18:31.069451Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:18:31.156308Z', 'iopub.status.busy': " "'2024-01-12T07:18:31.123862Z', 'iopub.status.idle': '2024-01-12T07:18:3 […]
    
Offset 19, 18 lines modifiedOffset 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":·"2024-01-12T06:29:27.943292Z",26 ····················"iopub.execute_input":·"2024-01-12T07:18:12.287447Z",
27 ····················"iopub.status.busy":·"2024-01-12T06:29:27.942410Z",27 ····················"iopub.status.busy":·"2024-01-12T07:18:12.272781Z",
28 ····················"iopub.status.idle":·"2024-01-12T06:29:34.497605Z",28 ····················"iopub.status.idle":·"2024-01-12T07:18:31.081477Z",
29 ····················"shell.execute_reply":·"2024-01-12T06:29:34.487860Z"29 ····················"shell.execute_reply":·"2024-01-12T07:18:31.069451Z"
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 modifiedOffset 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":·"2024-01-12T06:29:34.522932Z",57 ····················"iopub.execute_input":·"2024-01-12T07:18:31.156308Z",
58 ····················"iopub.status.busy":·"2024-01-12T06:29:34.521641Z",58 ····················"iopub.status.busy":·"2024-01-12T07:18:31.123862Z",
59 ····················"iopub.status.idle":·"2024-01-12T06:29:35.553068Z",59 ····················"iopub.status.idle":·"2024-01-12T07:18:36.917030Z",
60 ····················"shell.execute_reply":·"2024-01-12T06:29:35.549732Z"60 ····················"shell.execute_reply":·"2024-01-12T07:18:36.909529Z"
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 modifiedOffset 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":·"2024-01-12T06:29:35.572064Z",103 ····················"iopub.execute_input":·"2024-01-12T07:18:36.985552Z",
104 ····················"iopub.status.busy":·"2024-01-12T06:29:35.571119Z",104 ····················"iopub.status.busy":·"2024-01-12T07:18:36.983104Z",
105 ····················"iopub.status.idle":·"2024-01-12T06:29:35.675460Z",105 ····················"iopub.status.idle":·"2024-01-12T07:18:37.327003Z",
106 ····················"shell.execute_reply":·"2024-01-12T06:29:35.672569Z"106 ····················"shell.execute_reply":·"2024-01-12T07:18:37.313494Z"
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 modifiedOffset 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":·"2024-01-12T06:29:35.694581Z",136 ····················"iopub.execute_input":·"2024-01-12T07:18:37.388660Z",
137 ····················"iopub.status.busy":·"2024-01-12T06:29:35.693520Z",137 ····················"iopub.status.busy":·"2024-01-12T07:18:37.386307Z",
138 ····················"iopub.status.idle":·"2024-01-12T06:29:35.832101Z",138 ····················"iopub.status.idle":·"2024-01-12T07:18:38.021607Z",
139 ····················"shell.execute_reply":·"2024-01-12T06:29:35.828504Z"139 ····················"shell.execute_reply":·"2024-01-12T07:18:38.005517Z"
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 modifiedOffset 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":·"2024-01-12T06:29:35.855147Z",177 ····················"iopub.execute_input":·"2024-01-12T07:18:38.085071Z",
178 ····················"iopub.status.busy":·"2024-01-12T06:29:35.854238Z",178 ····················"iopub.status.busy":·"2024-01-12T07:18:38.082778Z",
179 ····················"iopub.status.idle":·"2024-01-12T06:29:35.949907Z",179 ····················"iopub.status.idle":·"2024-01-12T07:18:38.392220Z",
180 ····················"shell.execute_reply":·"2024-01-12T06:29:35.947536Z"180 ····················"shell.execute_reply":·"2024-01-12T07:18:38.385525Z"
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 modifiedOffset 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":·"2024-01-12T06:29:35.974016Z",209 ····················"iopub.execute_input":·"2024-01-12T07:18:38.422894Z",
210 ····················"iopub.status.busy":·"2024-01-12T06:29:35.973111Z",210 ····················"iopub.status.busy":·"2024-01-12T07:18:38.420485Z",
211 ····················"iopub.status.idle":·"2024-01-12T06:29:36.065118Z",211 ····················"iopub.status.idle":·"2024-01-12T07:18:38.791928Z",
212 ····················"shell.execute_reply":·"2024-01-12T06:29:36.060560Z"212 ····················"shell.execute_reply":·"2024-01-12T07:18:38.779568Z"
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 modifiedOffset 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":·"2024-01-12T06:29:36.087792Z",243 ····················"iopub.execute_input":·"2024-01-12T07:18:38.850160Z",
244 ····················"iopub.status.busy":·"2024-01-12T06:29:36.086913Z",244 ····················"iopub.status.busy":·"2024-01-12T07:18:38.847484Z",
245 ····················"iopub.status.idle":·"2024-01-12T06:29:36.266815Z",245 ····················"iopub.status.idle":·"2024-01-12T07:18:39.162649Z",
246 ····················"shell.execute_reply":·"2024-01-12T06:29:36.263477Z"246 ····················"shell.execute_reply":·"2024-01-12T07:18:39.158596Z"
247 ················}247 ················}
248 ············},248 ············},
Max diff block lines reached; 1376/8991 bytes (15.30%) of diff not shown.
8.47 KB
./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz
8.31 KB
multidimensional-coords.ipynb
8.25 KB
Pretty-printed
Similarity: 0.99931640625% Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:19:20.722371Z', " "'iopub.status.busy': '2024-01-12T07:19:20.704404Z', 'iopub.status.idle': " "'2024-01-12T07:19:45.302904Z', 'shell.execute_reply': " "'2024-01-12T07:19:45.293458Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:19:45.352248Z', 'iopub.status.busy': " "'2024-01-12T07:19:45.340961Z', 'iopub.status.idle': '2024-01-12T07:19:5 […]
    
Offset 16, 18 lines modifiedOffset 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":·"2024-01-12T06:29:47.355494Z",23 ····················"iopub.execute_input":·"2024-01-12T07:19:20.722371Z",
24 ····················"iopub.status.busy":·"2024-01-12T06:29:47.354550Z",24 ····················"iopub.status.busy":·"2024-01-12T07:19:20.704404Z",
25 ····················"iopub.status.idle":·"2024-01-12T06:29:53.928633Z",25 ····················"iopub.status.idle":·"2024-01-12T07:19:45.302904Z",
26 ····················"shell.execute_reply":·"2024-01-12T06:29:53.915953Z"26 ····················"shell.execute_reply":·"2024-01-12T07:19:45.293458Z"
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 modifiedOffset 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":·"2024-01-12T06:29:53.973019Z",55 ····················"iopub.execute_input":·"2024-01-12T07:19:45.352248Z",
56 ····················"iopub.status.busy":·"2024-01-12T06:29:53.947963Z",56 ····················"iopub.status.busy":·"2024-01-12T07:19:45.340961Z",
57 ····················"iopub.status.idle":·"2024-01-12T06:29:55.161211Z",57 ····················"iopub.status.idle":·"2024-01-12T07:19:50.661593Z",
58 ····················"shell.execute_reply":·"2024-01-12T06:29:55.158670Z"58 ····················"shell.execute_reply":·"2024-01-12T07:19:50.657443Z"
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 modifiedOffset 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":·"2024-01-12T06:29:55.177573Z",100 ····················"iopub.execute_input":·"2024-01-12T07:19:50.719814Z",
101 ····················"iopub.status.busy":·"2024-01-12T06:29:55.176609Z",101 ····················"iopub.status.busy":·"2024-01-12T07:19:50.709021Z",
102 ····················"iopub.status.idle":·"2024-01-12T06:29:55.258326Z",102 ····················"iopub.status.idle":·"2024-01-12T07:19:51.034801Z",
103 ····················"shell.execute_reply":·"2024-01-12T06:29:55.255684Z"103 ····················"shell.execute_reply":·"2024-01-12T07:19:51.025439Z"
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 modifiedOffset 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":·"2024-01-12T06:29:55.273177Z",142 ····················"iopub.execute_input":·"2024-01-12T07:19:51.091503Z",
143 ····················"iopub.status.busy":·"2024-01-12T06:29:55.272234Z",143 ····················"iopub.status.busy":·"2024-01-12T07:19:51.080825Z",
144 ····················"iopub.status.idle":·"2024-01-12T06:29:58.083899Z",144 ····················"iopub.status.idle":·"2024-01-12T07:19:59.137504Z",
145 ····················"shell.execute_reply":·"2024-01-12T06:29:58.080445Z"145 ····················"shell.execute_reply":·"2024-01-12T07:19:59.121453Z"
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 modifiedOffset 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":·"2024-01-12T06:29:58.095045Z",195 ····················"iopub.execute_input":·"2024-01-12T07:19:59.191190Z",
196 ····················"iopub.status.busy":·"2024-01-12T06:29:58.094177Z",196 ····················"iopub.status.busy":·"2024-01-12T07:19:59.168612Z",
197 ····················"iopub.status.idle":·"2024-01-12T06:29:58.204989Z",197 ····················"iopub.status.idle":·"2024-01-12T07:19:59.521503Z",
198 ····················"shell.execute_reply":·"2024-01-12T06:29:58.200508Z"198 ····················"shell.execute_reply":·"2024-01-12T07:19:59.509440Z"
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 modifiedOffset 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":·"2024-01-12T06:29:58.235602Z",234 ····················"iopub.execute_input":·"2024-01-12T07:19:59.574631Z",
235 ····················"iopub.status.busy":·"2024-01-12T06:29:58.234715Z",235 ····················"iopub.status.busy":·"2024-01-12T07:19:59.559927Z",
236 ····················"iopub.status.idle":·"2024-01-12T06:29:58.989925Z",236 ····················"iopub.status.idle":·"2024-01-12T07:20:01.221657Z",
237 ····················"shell.execute_reply":·"2024-01-12T06:29:58.984481Z"237 ····················"shell.execute_reply":·"2024-01-12T07:20:01.213507Z"
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 modifiedOffset 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":·"2024-01-12T06:29:59.027577Z",292 ····················"iopub.execute_input":·"2024-01-12T07:20:01.302125Z",
293 ····················"iopub.status.busy":·"2024-01-12T06:29:59.026706Z",293 ····················"iopub.status.busy":·"2024-01-12T07:20:01.280434Z",
294 ····················"iopub.status.idle":·"2024-01-12T06:29:59.267594Z",294 ····················"iopub.status.idle":·"2024-01-12T07:20:01.811581Z",
295 ····················"shell.execute_reply":·"2024-01-12T06:29:59.252453Z"295 ····················"shell.execute_reply":·"2024-01-12T07:20:01.796696Z"
296 ················}296 ················}
297 ············},297 ············},
Max diff block lines reached; 166/7873 bytes (2.11%) of diff not shown.
3.63 KB
./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html
    
Offset 574, 15 lines modifiedOffset 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_24969/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.html581 /tmp/ipykernel_27594/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(&#34;RGB.byte&#34;)582 ··da·=·xr.tutorial.open_rasterio(&#34;RGB.byte&#34;)
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 modifiedOffset 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_24969/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.html664 /tmp/ipykernel_27594/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(&#34;RGB.byte&#34;)665 ··da·=·xr.tutorial.open_rasterio(&#34;RGB.byte&#34;)
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">
1.69 KB
html2text {}
    
Offset 210, 15 lines modifiedOffset 210, 15 lines modified
210 #·https://github.com/SciTools/cartopy/issues/813·is·implemented210 #·https://github.com/SciTools/cartopy/issues/813·is·implemented
211 crs·=·ccrs.UTM("18")211 crs·=·ccrs.UTM("18")
  
212 #·Plot·on·a·map212 #·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_24969/2946363816.py:1:·DeprecationWarning:·open_rasterio·is216 /tmp/ipykernel_27594/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.html218 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 modifiedOffset 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_24969/3653941964.py:4:·DeprecationWarning:·open_rasterio·is289 /tmp/ipykernel_27594/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.html291 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)
10.4 KB
./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz
10.2 KB
visualization_gallery.ipynb
10.2 KB
Pretty-printed
Similarity: 0.9983506944444445% Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:20:43.365334Z', " "'iopub.status.busy': '2024-01-12T07:20:43.347185Z', 'iopub.status.idle': " "'2024-01-12T07:21:06.292541Z', 'shell.execute_reply': " "'2024-01-12T07:21:06.285518Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T07:21:06.363581Z', 'iopub.status.busy': " "'2024-01-12T07:21:06.350619Z', 'iopub.status.idle': '2024-01-12T07:21:1 […]
    
Offset 10, 18 lines modifiedOffset 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":·"2024-01-12T06:30:14.697103Z",17 ····················"iopub.execute_input":·"2024-01-12T07:20:43.365334Z",
18 ····················"iopub.status.busy":·"2024-01-12T06:30:14.691355Z",18 ····················"iopub.status.busy":·"2024-01-12T07:20:43.347185Z",
19 ····················"iopub.status.idle":·"2024-01-12T06:30:21.728694Z",19 ····················"iopub.status.idle":·"2024-01-12T07:21:06.292541Z",
20 ····················"shell.execute_reply":·"2024-01-12T06:30:21.712830Z"20 ····················"shell.execute_reply":·"2024-01-12T07:21:06.285518Z"
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 modifiedOffset 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":·"2024-01-12T06:30:21.748048Z",44 ····················"iopub.execute_input":·"2024-01-12T07:21:06.363581Z",
45 ····················"iopub.status.busy":·"2024-01-12T06:30:21.746789Z",45 ····················"iopub.status.busy":·"2024-01-12T07:21:06.350619Z",
46 ····················"iopub.status.idle":·"2024-01-12T06:30:23.136524Z",46 ····················"iopub.status.idle":·"2024-01-12T07:21:11.617507Z",
47 ····················"shell.execute_reply":·"2024-01-12T06:30:23.124463Z"47 ····················"shell.execute_reply":·"2024-01-12T07:21:11.601451Z"
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 modifiedOffset 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":·"2024-01-12T06:30:23.171852Z",92 ····················"iopub.execute_input":·"2024-01-12T07:21:11.707459Z",
93 ····················"iopub.status.busy":·"2024-01-12T06:30:23.170939Z",93 ····················"iopub.status.busy":·"2024-01-12T07:21:11.688591Z",
94 ····················"iopub.status.idle":·"2024-01-12T06:30:23.400504Z",94 ····················"iopub.status.idle":·"2024-01-12T07:21:12.284334Z",
95 ····················"shell.execute_reply":·"2024-01-12T06:30:23.384452Z"95 ····················"shell.execute_reply":·"2024-01-12T07:21:12.277438Z"
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 modifiedOffset 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":·"2024-01-12T06:30:23.419572Z",145 ····················"iopub.execute_input":·"2024-01-12T07:21:12.343388Z",
146 ····················"iopub.status.busy":·"2024-01-12T06:30:23.418707Z",146 ····················"iopub.status.busy":·"2024-01-12T07:21:12.337746Z",
147 ····················"iopub.status.idle":·"2024-01-12T06:30:23.672523Z",147 ····················"iopub.status.idle":·"2024-01-12T07:21:12.931854Z",
148 ····················"shell.execute_reply":·"2024-01-12T06:30:23.656467Z"148 ····················"shell.execute_reply":·"2024-01-12T07:21:12.921498Z"
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 modifiedOffset 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":·"2024-01-12T06:30:23.691397Z",209 ····················"iopub.execute_input":·"2024-01-12T07:21:13.012538Z",
210 ····················"iopub.status.busy":·"2024-01-12T06:30:23.690506Z",210 ····················"iopub.status.busy":·"2024-01-12T07:21:13.011027Z",
211 ····················"iopub.status.idle":·"2024-01-12T06:30:23.892487Z",211 ····················"iopub.status.idle":·"2024-01-12T07:21:13.604006Z",
212 ····················"shell.execute_reply":·"2024-01-12T06:30:23.884455Z"212 ····················"shell.execute_reply":·"2024-01-12T07:21:13.593503Z"
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 modifiedOffset 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":·"2024-01-12T06:30:23.911269Z",265 ····················"iopub.execute_input":·"2024-01-12T07:21:13.669045Z",
266 ····················"iopub.status.busy":·"2024-01-12T06:30:23.910393Z",266 ····················"iopub.status.busy":·"2024-01-12T07:21:13.660834Z",
267 ····················"iopub.status.idle":·"2024-01-12T06:30:24.189202Z",267 ····················"iopub.status.idle":·"2024-01-12T07:21:14.281499Z",
268 ····················"shell.execute_reply":·"2024-01-12T06:30:24.120436Z"268 ····················"shell.execute_reply":·"2024-01-12T07:21:14.265434Z"
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 modifiedOffset 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":·"2024-01-12T06:30:24.207107Z",327 ····················"iopub.execute_input":·"2024-01-12T07:21:14.350194Z",
328 ····················"iopub.status.busy":·"2024-01-12T06:30:24.206238Z",328 ····················"iopub.status.busy":·"2024-01-12T07:21:14.327961Z",
329 ····················"iopub.status.idle":·"2024-01-12T06:30:25.300489Z",329 ····················"iopub.status.idle":·"2024-01-12T07:21:16.866809Z",
330 ····················"shell.execute_reply":·"2024-01-12T06:30:25.286057Z"330 ····················"shell.execute_reply":·"2024-01-12T07:21:16.853428Z"
331 ················}331 ················}
332 ············},332 ············},
Max diff block lines reached; 2889/9840 bytes (29.36%) of diff not shown.
49.7 KB
./usr/share/doc/python-xarray-doc/html/examples/weather-data.html
    
Offset 705, 37 lines modifiedOffset 705, 37 lines modified
705 </style><pre·class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;705 </style><pre·class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;
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-31708 ··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31
709 ··*·location··(location)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;709 ··*·location··(location)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;
710 Data·variables:710 Data·variables:
711 ····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544711 ····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-f376a018-ddce-467e-a759-ed22890078b5'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-f376a018-ddce-467e-a759-ed22890078b5'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·6749831ea94476f79a9e556611614af8580129789e4fd5579ea26aaaad1cff50·...·]'·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([&#x27;2000-01-01T00:00:00.000000000&#x27;,·&#x27;2000-01-02T00:00:00.000000000&#x27;,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-e0cd9921-ec0b-4eb8-a514-95a7309dc200'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-e0cd9921-ec0b-4eb8-a514-95a7309dc200'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·5f4dc51ae8a0cf48a22220af001c505fc65b14eb10e1c19572ab6432b121355a·...·]'·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([&#x27;2000-01-01T00:00:00.000000000&#x27;,·&#x27;2000-01-02T00:00:00.000000000&#x27;,
713 ·······&#x27;2000-01-03T00:00:00.000000000&#x27;,·...,·&#x27;2001-12-29T00:00:00.000000000&#x27;,713 ·······&#x27;2000-01-03T00:00:00.000000000&#x27;,·...,·&#x27;2001-12-29T00:00:00.000000000&#x27;,
714 ·······&#x27;2001-12-30T00:00:00.000000000&#x27;,·&#x27;2001-12-31T00:00:00.000000000&#x27;],714 ·······&#x27;2001-12-30T00:00:00.000000000&#x27;,·&#x27;2001-12-31T00:00:00.000000000&#x27;],
715 ······dtype=&#x27;datetime64[ns]&#x27;)</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'>&lt;U2</div><div·class='xr-var-preview·xr-preview'>&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;</div><input·id='attrs-34f08b32-6401-45ca-a9ff-e8164802057e'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-34f08b32-6401-45ca-a9ff-e8164802057e'·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:·e1f48970a097750300a1a79bd93626422948bcc5bbe2057986bc31384e3f16bd·...·]'·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],715 ······dtype=&#x27;datetime64[ns]&#x27;)</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'>&lt;U2</div><div·class='xr-var-preview·xr-preview'>&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;</div><input·id='attrs-75e101c6-3bda-4999-a418-322e9c87f1df'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-75e101c6-3bda-4999-a418-322e9c87f1df'·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:·6d28a483f549baa2dc9ff53276890b2f275d1e2239140eea6572261855ebf2bf·...·]'·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-dffdab86-b0bd-4608-905e-b65f1812b807'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-dffdab86-b0bd-4608-905e-b65f1812b807'·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:·e867acdb10f58491b01b0a83e41bd0fdab85d428e5d07f567f6f5ed09ff13aa5·...·]'·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],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-0100423a-a931-4ee9-be1c-08b43f2163a5'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0100423a-a931-4ee9-be1c-08b43f2163a5'·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:·d5684bd1839293501528d8c01690225c71b9a2f5ef2fcd8fff7ca9ab500cd906·...·]'·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-9e17b4c7-49a2-4116-a04b-a87c3cf8257a'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-9e17b4c7-49a2-4116-a04b-a87c3cf8257a'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·0605eaa19f546ae6a3bf233568d321d9da3f28bc02f38efbe68386fd9ab8087b·...·]'·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([&#x27;2000-01-01&#x27;,·&#x27;2000-01-02&#x27;,·&#x27;2000-01-03&#x27;,·&#x27;2000-01-04&#x27;,727 ·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-5b7116fb-3d7f-47f0-9e35-bc2124a7ae9b'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-5b7116fb-3d7f-47f0-9e35-bc2124a7ae9b'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·a2e891d29946be24c0f2f1ceab67fcfae08696d694cc6ad30bf7f3ea9d7dfa5e·...·]'·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([&#x27;2000-01-01&#x27;,·&#x27;2000-01-02&#x27;,·&#x27;2000-01-03&#x27;,·&#x27;2000-01-04&#x27;,
728 ···············&#x27;2000-01-05&#x27;,·&#x27;2000-01-06&#x27;,·&#x27;2000-01-07&#x27;,·&#x27;2000-01-08&#x27;,728 ···············&#x27;2000-01-05&#x27;,·&#x27;2000-01-06&#x27;,·&#x27;2000-01-07&#x27;,·&#x27;2000-01-08&#x27;,
729 ···············&#x27;2000-01-09&#x27;,·&#x27;2000-01-10&#x27;,729 ···············&#x27;2000-01-09&#x27;,·&#x27;2000-01-10&#x27;,
730 ···············...730 ···············...
731 ···············&#x27;2001-12-22&#x27;,·&#x27;2001-12-23&#x27;,·&#x27;2001-12-24&#x27;,·&#x27;2001-12-25&#x27;,731 ···············&#x27;2001-12-22&#x27;,·&#x27;2001-12-23&#x27;,·&#x27;2001-12-24&#x27;,·&#x27;2001-12-25&#x27;,
732 ···············&#x27;2001-12-26&#x27;,·&#x27;2001-12-27&#x27;,·&#x27;2001-12-28&#x27;,·&#x27;2001-12-29&#x27;,732 ···············&#x27;2001-12-26&#x27;,·&#x27;2001-12-27&#x27;,·&#x27;2001-12-28&#x27;,·&#x27;2001-12-29&#x27;,
733 ···············&#x27;2001-12-30&#x27;,·&#x27;2001-12-31&#x27;],733 ···············&#x27;2001-12-30&#x27;,·&#x27;2001-12-31&#x27;],
734 ··············dtype=&#x27;datetime64[ns]&#x27;,·name=&#x27;time&#x27;,·length=731,·freq=&#x27;D&#x27;))</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-b219be69-e2c1-411c-b2d3-50e3412eea28'·class='xr-index-data-in'·type='checkbox'/><label·for='index-b219be69-e2c1-411c-b2d3-50e3412eea28'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·379,·SHA:·1085b954d89b87933cc15011ab0b9000f53f83d55b1d9decb31a25d9904b853d·...·]4'·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>734 ··············dtype=&#x27;datetime64[ns]&#x27;,·name=&#x27;time&#x27;,·length=731,·freq=&#x27;D&#x27;))</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-d6b0fd07-229c-495b-bf85-26dbf556a861'·class='xr-index-data-in'·type='checkbox'/><label·for='index-d6b0fd07-229c-495b-bf85-26dbf556a861'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·379,·SHA:·b61cf1186b51e5f1ddbc79aa4edd8e88f51888ae80ce24a613cc93dd4aa68883·...·]4'·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 modifiedOffset 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 &lt;seaborn.axisgrid.PairGrid·at·0xaa1915f0&gt;939 &lt;seaborn.axisgrid.PairGrid·at·0xeab28fd0&gt;
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 modifiedOffset 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)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;1344 ··*·location··(location)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;
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-cac52bc8-9033-4257-be92-f81080f927da'·class='xr-array-in'·type='checkbox'·checked><label·for='section-cac52bc8-9033-4257-be92-f81080f927da'·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],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-c423ec2a-71ec-4f9c-9938-c177ada5e7ba'·class='xr-array-in'·type='checkbox'·checked><label·for='section-c423ec2a-71ec-4f9c-9938-c177ada5e7ba'·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-93295102-3eec-40b0-8b7d-8d168d788be2'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-93295102-3eec-40b0-8b7d-8d168d788be2'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3734,·SHA:·c862552a382eb7ee8b1e7a1ab3cc5bb315d32f9242a0d553fd3ad88d00b7bbcd·...·]'·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>1356 ·······[0.93548387,·0.85483871,·0.82258065]])</pre></div></div></li><li·class='xr-section-item'><input·id='section-4173ef91-bfbe-4633-a7dc-1d913f509687'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-4173ef91-bfbe-4633-a7dc-1d913f509687'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3734,·SHA:·e47b7270b3671f001bdf6cd451391d6f47cbb1209823ff365cf99b4766aebe8a·...·]'·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 modifiedOffset 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-311865 ··*·time··········(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31
1866 ··*·location······(location)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;1866 ··*·location······(location)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;
1867 ····month·········(time)·int64·1·1·1·1·1·1·1·1·1·...·12·12·12·12·12·12·12·12·121867 ····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.5441869 ····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-980d7c87-a1d9-48f8-b3e0-b4337fbba0ce'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-980d7c87-a1d9-48f8-b3e0-b4337fbba0ce'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·287a3938dec37600aa6ee6d663fc0157c1fc60e167cd336766b0052e2164d0fa·...·]'·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([&#x27;2000-01-01T00:00:00.000000000&#x27;,·&#x27;2000-01-02T00:00:00.000000000&#x27;,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-3ae71e52-5321-4b9b-9fff-d1f9a2fb49c3'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-3ae71e52-5321-4b9b-9fff-d1f9a2fb49c3'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·34a201600006765429e11751c1209bee7a4768ea2d908347c4f4e6078bb85d96·...·]'·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([&#x27;2000-01-01T00:00:00.000000000&#x27;,·&#x27;2000-01-02T00:00:00.000000000&#x27;,
1871 ·······&#x27;2000-01-03T00:00:00.000000000&#x27;,·...,·&#x27;2001-12-29T00:00:00.000000000&#x27;,1871 ·······&#x27;2000-01-03T00:00:00.000000000&#x27;,·...,·&#x27;2001-12-29T00:00:00.000000000&#x27;,
1872 ·······&#x27;2001-12-30T00:00:00.000000000&#x27;,·&#x27;2001-12-31T00:00:00.000000000&#x27;],1872 ·······&#x27;2001-12-30T00:00:00.000000000&#x27;,·&#x27;2001-12-31T00:00:00.000000000&#x27;],
1873 ······dtype=&#x27;datetime64[ns]&#x27;)</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'>&lt;U2</div><div·class='xr-var-preview·xr-preview'>&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;</div><input·id='attrs-42b7c9ba-a16f-405d-8573-b69547a8b8ec'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-42b7c9ba-a16f-405d-8573-b69547a8b8ec'·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:·8df815f6ed2d7e6ccd8afb63053a48b98e98ac05ee3d4db2464651269d7a44c1·...·]'·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,1873 ······dtype=&#x27;datetime64[ns]&#x27;)</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'>&lt;U2</div><div·class='xr-var-preview·xr-preview'>&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;</div><input·id='attrs-205cc62c-35cf-4619-a08b-a50ebd53013b'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-205cc62c-35cf-4619-a08b-a50ebd53013b'·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:·59e9e6c4815b25922155146f7b5f4074ea139500704f695cf961f8fc8d2eb4f7·...·]'·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 modifiedOffset 1906, 34 lines modified
1906 ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,1906 ········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,·10,·10,·10,·10,·10,·10,·10,1907 ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10,
1908 ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,1908 ·······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,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,1909 ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,
1910 ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,1910 ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,
1911 ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,1911 ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,
1912 ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12],1912 ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12],
1913 ······dtype=int64)</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-019ec4b6-c6fa-4d71-8a75-e5707859de52'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-019ec4b6-c6fa-4d71-8a75-e5707859de52'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·318ee142a9375f90535b6909d0846f192f323e90939e8f007f8d81f33da4768a·...·]'·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],1913 ······dtype=int64)</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-4c711044-035d-4ad7-b2e2-32cd108bf0e1'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-4c711044-035d-4ad7-b2e2-32cd108bf0e1'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·6e7b5806c0b032280682987209f63f7a637855f02f83e296a1004e5ebe0955d3·...·]'·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-869ba7ff-4e6e-4827-a589-3d86ecbd00a4'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-869ba7ff-4e6e-4827-a589-3d86ecbd00a4'·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:·627bba1815a10049eb00178e54913c2e6da154916f9143139efe15192effeac9·...·]'·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],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-340c4d26-01bd-4d7c-a57e-937011297e8f'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-340c4d26-01bd-4d7c-a57e-937011297e8f'·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:·8fb1a758444927ddbb8768b547b0e0d694b60488c32891e300a54a0790d10a2a·...·]'·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-75036994-9449-49a5-9eee-26d902a9dc3f'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-75036994-9449-49a5-9eee-26d902a9dc3f'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·bb38db327037f0bcd536aeaeb82e48dcd6392bedda1c06eebb29a27ecf661f7f·...·]'·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([&#x27;2000-01-01&#x27;,·&#x27;2000-01-02&#x27;,·&#x27;2000-01-03&#x27;,·&#x27;2000-01-04&#x27;,1925 ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-04e91405-b616-4eb6-b56e-0cc5dc19fcb2'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-04e91405-b616-4eb6-b56e-0cc5dc19fcb2'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·f6b0a3684a72910d002966ce4615470259c05000af7be9527cfb497a4524ce59·...·]'·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([&#x27;2000-01-01&#x27;,·&#x27;2000-01-02&#x27;,·&#x27;2000-01-03&#x27;,·&#x27;2000-01-04&#x27;,
1926 ···············&#x27;2000-01-05&#x27;,·&#x27;2000-01-06&#x27;,·&#x27;2000-01-07&#x27;,·&#x27;2000-01-08&#x27;,1926 ···············&#x27;2000-01-05&#x27;,·&#x27;2000-01-06&#x27;,·&#x27;2000-01-07&#x27;,·&#x27;2000-01-08&#x27;,
1927 ···············&#x27;2000-01-09&#x27;,·&#x27;2000-01-10&#x27;,1927 ···············&#x27;2000-01-09&#x27;,·&#x27;2000-01-10&#x27;,
1928 ···············...1928 ···············...
1929 ···············&#x27;2001-12-22&#x27;,·&#x27;2001-12-23&#x27;,·&#x27;2001-12-24&#x27;,·&#x27;2001-12-25&#x27;,1929 ···············&#x27;2001-12-22&#x27;,·&#x27;2001-12-23&#x27;,·&#x27;2001-12-24&#x27;,·&#x27;2001-12-25&#x27;,
1930 ···············&#x27;2001-12-26&#x27;,·&#x27;2001-12-27&#x27;,·&#x27;2001-12-28&#x27;,·&#x27;2001-12-29&#x27;,1930 ···············&#x27;2001-12-26&#x27;,·&#x27;2001-12-27&#x27;,·&#x27;2001-12-28&#x27;,·&#x27;2001-12-29&#x27;,
1931 ···············&#x27;2001-12-30&#x27;,·&#x27;2001-12-31&#x27;],1931 ···············&#x27;2001-12-30&#x27;,·&#x27;2001-12-31&#x27;],
1932 ··············dtype=&#x27;datetime64[ns]&#x27;,·name=&#x27;time&#x27;,·length=731,·freq=&#x27;D&#x27;))</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-f92e5276-8a1a-4d49-ab29-65d25928d8e6'·class='xr-index-data-in'·type='checkbox'/><label·for='index-f92e5276-8a1a-4d49-ab29-65d25928d8e6'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·379,·SHA:·f540a1099e0ca512a62c5b6a2c41aa4bd3c7df95e1ce84a727831dc1d0db5d0f·...·]1'·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>1932 ··············dtype=&#x27;datetime64[ns]&#x27;,·name=&#x27;time&#x27;,·length=731,·freq=&#x27;D&#x27;))</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-476cb06e-a289-44c1-af27-e5998c43e17b'·class='xr-index-data-in'·type='checkbox'/><label·for='index-476cb06e-a289-44c1-af27-e5998c43e17b'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·379,·SHA:·fa9f9e41fe3c59f4734da6a2d96343da6724294d58a3af6dc99f6d84f3cca76f·...·]1'·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/50258 bytes (2.07%) of diff not shown.
492 B
html2text {}
    
Offset 157, 15 lines modifiedOffset 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·0xaa1915f0>163 <seaborn.axisgrid.PairGrid·at·0xeab28fd0>
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 freeze168 freeze
169 [6]:169 [6]:
66.3 KB
./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz
66.1 KB
weather-data.ipynb
66.1 KB
Pretty-printed
Similarity: 0.9992323118860381% Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T07:22:02.370334Z', " "'iopub.status.busy': '2024-01-12T07:22:02.352558Z', 'iopub.status.idle': " "'2024-01-12T07:22:37.843692Z', 'shell.execute_reply': " "'2024-01-12T07:22:37.837513Z'}}, 'outputs': {0: {'data': {'text/html': {insert: " '[(370, " tmax (time, location) float64 12.98 3.31 6.779 ... 6.636 3.343 ' "3.805</pre><div class='xr-wrap' style='display:none […]
    
Offset 15, 18 lines modifiedOffset 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":·"2024-01-12T06:30:38.019493Z",22 ····················"iopub.execute_input":·"2024-01-12T07:22:02.370334Z",
23 ····················"iopub.status.busy":·"2024-01-12T06:30:38.018544Z",23 ····················"iopub.status.busy":·"2024-01-12T07:22:02.352558Z",
24 ····················"iopub.status.idle":·"2024-01-12T06:30:48.613184Z",24 ····················"iopub.status.idle":·"2024-01-12T07:22:37.843692Z",
25 ····················"shell.execute_reply":·"2024-01-12T06:30:48.610929Z"25 ····················"shell.execute_reply":·"2024-01-12T07:22:37.837513Z"
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 modifiedOffset 395, 37 lines modified
395 ····························"</style><pre·class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",395 ····························"</style><pre·class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\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)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;\n",399 ····························"··*·location··(location)·&lt;U2·&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;\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-f376a018-ddce-467e-a759-ed22890078b5'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-f376a018-ddce-467e-a759-ed22890078b5'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·6749831ea94476f79a9e556611614af8580129789e4fd5579ea26aaaad1cff50·...·]'·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([&#x27;2000-01-01T00:00:00.000000000&#x27;,·&#x27;2000-01-02T00:00:00.000000000&#x27;,\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-e0cd9921-ec0b-4eb8-a514-95a7309dc200'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-e0cd9921-ec0b-4eb8-a514-95a7309dc200'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·5f4dc51ae8a0cf48a22220af001c505fc65b14eb10e1c19572ab6432b121355a·...·]'·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([&#x27;2000-01-01T00:00:00.000000000&#x27;,·&#x27;2000-01-02T00:00:00.000000000&#x27;,\n",
403 ····························"·······&#x27;2000-01-03T00:00:00.000000000&#x27;,·...,·&#x27;2001-12-29T00:00:00.000000000&#x27;,\n",403 ····························"·······&#x27;2000-01-03T00:00:00.000000000&#x27;,·...,·&#x27;2001-12-29T00:00:00.000000000&#x27;,\n",
404 ····························"·······&#x27;2001-12-30T00:00:00.000000000&#x27;,·&#x27;2001-12-31T00:00:00.000000000&#x27;],\n",404 ····························"·······&#x27;2001-12-30T00:00:00.000000000&#x27;,·&#x27;2001-12-31T00:00:00.000000000&#x27;],\n",
405 ····························"······dtype=&#x27;datetime64[ns]&#x27;)</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'>&lt;U2</div><div·class='xr-var-preview·xr-preview'>&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;</div><input·id='attrs-34f08b32-6401-45ca-a9ff-e8164802057e'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-34f08b32-6401-45ca-a9ff-e8164802057e'·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:·e1f48970a097750300a1a79bd93626422948bcc5bbe2057986bc31384e3f16bd·...·]'·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",405 ····························"······dtype=&#x27;datetime64[ns]&#x27;)</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'>&lt;U2</div><div·class='xr-var-preview·xr-preview'>&#x27;IA&#x27;·&#x27;IN&#x27;·&#x27;IL&#x27;</div><input·id='attrs-75e101c6-3bda-4999-a418-322e9c87f1df'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-75e101c6-3bda-4999-a418-322e9c87f1df'·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:·6d28a483f549baa2dc9ff53276890b2f275d1e2239140eea6572261855ebf2bf·...·]'·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-dffdab86-b0bd-4608-905e-b65f1812b807'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-dffdab86-b0bd-4608-905e-b65f1812b807'·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:·e867acdb10f58491b01b0a83e41bd0fdab85d428e5d07f567f6f5ed09ff13aa5·...·]'·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",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-0100423a-a931-4ee9-be1c-08b43f2163a5'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0100423a-a931-4ee9-be1c-08b43f2163a5'·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:·d5684bd1839293501528d8c01690225c71b9a2f5ef2fcd8fff7ca9ab500cd906·...·]'·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-9e17b4c7-49a2-4116-a04b-a87c3cf8257a'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-9e17b4c7-49a2-4116-a04b-a87c3cf8257a'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·0605eaa19f546ae6a3bf233568d321d9da3f28bc02f38efbe68386fd9ab8087b·...·]'·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([&#x27;2000-01-01&#x27;,·&#x27;2000-01-02&#x27;,·&#x27;2000-01-03&#x27;,·&#x27;2000-01-04&#x27;,\n",417 ····························"·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-5b7116fb-3d7f-47f0-9e35-bc2124a7ae9b'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-5b7116fb-3d7f-47f0-9e35-bc2124a7ae9b'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·a2e891d29946be24c0f2f1ceab67fcfae08696d694cc6ad30bf7f3ea9d7dfa5e·...·]'·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([&#x27;2000-01-01&#x27;,·&#x27;2000-01-02&#x27;,·&#x27;2000-01-03&#x27;,·&#x27;2000-01-04&#x27;,\n",
418 ····························"···············&#x27;2000-01-05&#x27;,·&#x27;2000-01-06&#x27;,·&#x27;2000-01-07&#x27;,·&#x27;2000-01-08&#x27;,\n",418 ····························"···············&#x27;2000-01-05&#x27;,·&#x27;2000-01-06&#x27;,·&#x27;2000-01-07&#x27;,·&#x27;2000-01-08&#x27;,\n",
419 ····························"···············&#x27;2000-01-09&#x27;,·&#x27;2000-01-10&#x27;,\n",419 ····························"···············&#x27;2000-01-09&#x27;,·&#x27;2000-01-10&#x27;,\n",
420 ····························"···············...\n",420 ····························"···············...\n",
421 ····························"···············&#x27;2001-12-22&#x27;,·&#x27;2001-12-23&#x27;,·&#x27;2001-12-24&#x27;,·&#x27;2001-12-25&#x27;,\n",421 ····························"···············&#x27;2001-12-22&#x27;,·&#x27;2001-12-23&#x27;,·&#x27;2001-12-24&#x27;,·&#x27;2001-12-25&#x27;,\n",
422 ····························"···············&#x27;2001-12-26&#x27;,·&#x27;2001-12-27&#x27;,·&#x27;2001-12-28&#x27;,·&#x27;2001-12-29&#x27;,\n",422 ····························"···············&#x27;2001-12-26&#x27;,·&#x27;2001-12-27&#x27;,·&#x27;2001-12-28&#x27;,·&#x27;2001-12-29&#x27;,\n",
423 ····························"···············&#x27;2001-12-30&#x27;,·&#x27;2001-12-31&#x27;],\n",423 ····························"···············&#x27;2001-12-30&#x27;,·&#x27;2001-12-31&#x27;],\n",
424 ····························"··············dtype=&#x27;datetime64[ns]&#x27;,·name=&#x27;time&#x27;,·length=731,·freq=&#x27;D&#x27;))</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-b219be69-e2c1-411c-b2d3-50e3412eea28'·class='xr-index-data-in'·type='checkbox'/><label·for='index-b219be69-e2c1-411c-b2d3-50e3412eea28'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·379,·SHA:·1085b954d89b87933cc15011ab0b9000f53f83d55b1d9decb31a25d9904b853d·...·]4'·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>"424 ····························"··············dtype=&#x27;datetime64[ns]&#x27;,·name=&#x27;time&#x27;,·length=731,·freq=&#x27;D&#x27;))</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-d6b0fd07-229c-495b-bf85-26dbf556a861'·class='xr-index-data-in'·type='checkbox'/><label·for='index-d6b0fd07-229c-495b-bf85-26dbf556a861'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·379,·SHA:·b61cf1186b51e5f1ddbc79aa4edd8e88f51888ae80ce24a613cc93dd4aa68883·...·]4'·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 modifiedOffset 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":·"2024-01-12T06:30:48.632060Z",494 ····················"iopub.execute_input":·"2024-01-12T07:22:37.896075Z",
495 ····················"iopub.status.busy":·"2024-01-12T06:30:48.630779Z",495 ····················"iopub.status.busy":·"2024-01-12T07:22:37.892614Z",
496 ····················"iopub.status.idle":·"2024-01-12T06:30:48.686396Z",496 ····················"iopub.status.idle":·"2024-01-12T07:22:38.135688Z",
497 ····················"shell.execute_reply":·"2024-01-12T06:30:48.682847Z"497 ····················"shell.execute_reply":·"2024-01-12T07:22:38.129507Z"
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 modifiedOffset 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":·"2024-01-12T06:30:48.698455Z",594 ····················"iopub.execute_input":·"2024-01-12T07:22:38.209636Z",
595 ····················"iopub.status.busy":·"2024-01-12T06:30:48.697628Z",595 ····················"iopub.status.busy":·"2024-01-12T07:22:38.203179Z",
596 ····················"iopub.status.idle":·"2024-01-12T06:30:48.760511Z",596 ····················"iopub.status.idle":·"2024-01-12T07:22:38.507621Z",
597 ····················"shell.execute_reply":·"2024-01-12T06:30:48.757951Z"597 ····················"shell.execute_reply":·"2024-01-12T07:22:38.501523Z"
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 modifiedOffset 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":·"2024-01-12T06:30:48.771307Z",708 ····················"iopub.execute_input":·"2024-01-12T07:22:38.586282Z",
709 ····················"iopub.status.busy":·"2024-01-12T06:30:48.770489Z",709 ····················"iopub.status.busy":·"2024-01-12T07:22:38.583834Z",
710 ····················"iopub.status.idle":·"2024-01-12T06:30:51.584494Z",710 ····················"iopub.status.idle":·"2024-01-12T07:22:43.759932Z",
711 ····················"shell.execute_reply":·"2024-01-12T06:30:51.576455Z"711 ····················"shell.execute_reply":·"2024-01-12T07:22:43.753496Z"
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 modifiedOffset 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":·"2024-01-12T06:30:51.603471Z",756 ····················"iopub.execute_input":·"2024-01-12T07:22:43.838564Z",
757 ····················"iopub.status.busy":·"2024-01-12T06:30:51.602541Z",757 ····················"iopub.status.busy":·"2024-01-12T07:22:43.826437Z",
758 ····················"iopub.status.idle":·"2024-01-12T06:30:59.208552Z",758 ····················"iopub.status.idle":·"2024-01-12T07:23:12.597486Z",
759 ····················"shell.execute_reply":·"2024-01-12T06:30:59.192447Z"759 ····················"shell.execute_reply":·"2024-01-12T07:23:12.583334Z"
760 ················}760 ················}
761 ············},761 ············},
Max diff block lines reached; 43600/67092 bytes (64.99%) of diff not shown.
1.98 KB
./usr/share/doc/python-xarray-doc/html/getting-started-guide/quick-overview.html
    
Offset 310, 15 lines modifiedOffset 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">&lt;matplotlib.collections.QuadMesh·at·0xab597710&gt;</span>317 <span·class="gh">Out[37]:·</span><span·class="go">&lt;matplotlib.collections.QuadMesh·at·0xee94efb0&gt;</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>
654 B
html2text {}
    
Offset 269, 15 lines modifiedOffset 269, 15 lines modified
269 Coordinates:269 Coordinates:
270 ··*·x········(x)·int32·10·20270 ··*·x········(x)·int32·10·20
271 Dimensions·without·coordinates:·y271 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·0xab597710>275 Out[37]:·<matplotlib.collections.QuadMesh·at·0xee94efb0>
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·metadata277 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:·see278 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·the281 Xarray·objects·can·be·easily·converted·to·and·from·pandas·objects·using·the
10.9 KB
./usr/share/doc/python-xarray-doc/html/searchindex.js
10.8 KB
js-beautify {}
    
Offset 1124, 15 lines modifiedOffset 1124, 15 lines modified
1124 ········"british":·6,1124 ········"british":·6,
1125 ········"isl":·6,1125 ········"isl":·6,
1126 ········"march":·[6,·46],1126 ········"march":·[6,·46],
1127 ········"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],1127 ········"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],
1128 ········"callback":·6,1128 ········"callback":·6,
1129 ········"lt":·[6,·14],1129 ········"lt":·[6,·14],
1130 ········"_draw_all_if_interact":·6,1130 ········"_draw_all_if_interact":·6,
1131 ········"0xab993398":·6,1131 ········"0xec4c83e8":·6,
1132 ········"post_execut":·6,1132 ········"post_execut":·6,
1133 ········"permissionerror":·6,1133 ········"permissionerror":·6,
1134 ········"usr":·6,1134 ········"usr":·6,
1135 ········"lib":·6,1135 ········"lib":·6,
1136 ········"dist":·6,1136 ········"dist":·6,
1137 ········"119":·[6,·32,·38,·39,·43,·46],1137 ········"119":·[6,·32,·38,·39,·43,·46],
1138 ········"117":·[6,·32,·38,·43,·46],1138 ········"117":·[6,·32,·38,·43,·46],
Offset 1281, 15 lines modifiedOffset 1281, 15 lines modified
1281 ········"108":·[6,·32,·38,·43,·46],1281 ········"108":·[6,·32,·38,·43,·46],
1282 ········"105":·[6,·31,·32,·38,·42,·43,·48],1282 ········"105":·[6,·31,·32,·38,·42,·43,·48],
1283 ········"isnan":·6,1283 ········"isnan":·6,
1284 ········"106":·[6,·32,·38,·43,·48],1284 ········"106":·[6,·32,·38,·43,·48],
1285 ········"extent_geom":·6,1285 ········"extent_geom":·6,
1286 ········"sgeom":·6,1286 ········"sgeom":·6,
1287 ········"box":·6,1287 ········"box":·6,
1288 ········"107":·[6,·32,·38,·43],1288 ········"107":·[6,·32,·33,·38,·43],
1289 ········"109":·[6,·32,·38,·43],1289 ········"109":·[6,·32,·38,·43],
1290 ········"110":·[6,·32,·38,·43],1290 ········"110":·[6,·32,·38,·43],
1291 ········"111":·[6,·32,·38,·43],1291 ········"111":·[6,·32,·38,·43],
1292 ········"287":·6,1292 ········"287":·6,
1293 ········"categori":·[6,·29,·34],1293 ········"categori":·[6,·29,·34],
1294 ········"286":·6,1294 ········"286":·6,
1295 ········"_natural_earth_geom_cach":·6,1295 ········"_natural_earth_geom_cach":·6,
Offset 1813, 21 lines modifiedOffset 1813, 21 lines modified
1813 ········"until":·[13,·33,·36,·40,·43],1813 ········"until":·[13,·33,·36,·40,·43],
1814 ········"scitool":·[13,·18],1814 ········"scitool":·[13,·18],
1815 ········"813":·13,1815 ········"813":·13,
1816 ········"band":·[13,·34,·40,·44],1816 ········"band":·[13,·34,·40,·44],
1817 ········"color":·[13,·16,·18,·43,·48],1817 ········"color":·[13,·16,·18,·43,·48],
1818 ········"r":·[13,·28,·32,·33,·34,·38,·39,·40,·48],1818 ········"r":·[13,·28,·32,·33,·34,·38,·39,·40,·48],
1819 ········"tmp":·13,1819 ········"tmp":·13,
1820 ········"ipykernel_24969":·13,1820 ········"ipykernel_27594":·13,
1821 ········"2946363816":·13,1821 ········"2946363816":·13,
1822 ········"favor":·[13,·16,·40,·42,·48],1822 ········"favor":·[13,·16,·40,·42,·48],
1823 ········"transit":·[13,·40,·43,·48],1823 ········"transit":·[13,·40,·43,·48],
1824 ········"corteva":·[13,·40],1824 ········"corteva":·[13,·40],
1825 ········"getting_start":·[13,·40],1825 ········"getting_start":·[13,·40],
1826 ········"222":·[13,·33],1826 ········"222":·13,
1827 ········"221":·13,1827 ········"221":·13,
1828 ········"223":·13,1828 ········"223":·13,
1829 ········"224":·13,1829 ········"224":·13,
1830 ········"226":·13,1830 ········"226":·13,
1831 ········"227":·13,1831 ········"227":·13,
1832 ········"229":·[13,·48],1832 ········"229":·[13,·48],
1833 ········"230":·13,1833 ········"230":·13,
Offset 1936, 15 lines modifiedOffset 1936, 15 lines modified
1936 ········"80527925":·14,1936 ········"80527925":·14,
1937 ········"timepandasindexpandasindex":·14,1937 ········"timepandasindexpandasindex":·14,
1938 ········"datetimeindex":·[14,·34,·38,·46,·47,·48],1938 ········"datetimeindex":·[14,·34,·38,·46,·47,·48],
1939 ········"04":·[14,·33,·34,·38,·40,·42,·46],1939 ········"04":·[14,·33,·34,·38,·40,·42,·46],
1940 ········"05":·[14,·32,·34,·40,·43,·46,·47,·48],1940 ········"05":·[14,·32,·34,·40,·43,·46,·47,·48],
1941 ········"06":·[14,·32,·34,·40,·46],1941 ········"06":·[14,·32,·34,·40,·46],
1942 ········"07":·[14,·34,·46,·47],1942 ········"07":·[14,·34,·46,·47],
1943 ········"08":·[14,·34,·46,·48],1943 ········"08":·[14,·33,·34,·46,·48],
1944 ········"09":·[14,·32,·34,·46],1944 ········"09":·[14,·32,·34,·46],
1945 ········"22":·[14,·19,·29,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47],1945 ········"22":·[14,·19,·29,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47],
1946 ········"26":·[14,·19,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47],1946 ········"26":·[14,·19,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47],
1947 ········"27":·[14,·19,·31,·32,·33,·34,·36,·38,·39,·40,·43,·44,·46,·47],1947 ········"27":·[14,·19,·31,·32,·33,·34,·36,·38,·39,·40,·43,·44,·46,·47],
1948 ········"freq":·[14,·34,·38,·46,·47,·48],1948 ········"freq":·[14,·34,·38,·46,·47,·48],
1949 ········"locationpandasindexpandasindex":·14,1949 ········"locationpandasindexpandasindex":·14,
1950 ········"df":·[14,·33,·34,·42,·48],1950 ········"df":·[14,·33,·34,·42,·48],
Offset 1983, 15 lines modifiedOffset 1983, 15 lines modified
1983 ········"xlabel":·[14,·43],1983 ········"xlabel":·[14,·43],
1984 ········"pairplot":·14,1984 ········"pairplot":·14,
1985 ········"reset_index":·[14,·42,·44,·48],1985 ········"reset_index":·[14,·42,·44,·48],
1986 ········"var":·[14,·25,·31,·32,·38,·43,·48],1986 ········"var":·[14,·25,·31,·32,·38,·43,·48],
1987 ········"data_var":·[14,·32,·34,·38,·40,·44,·48],1987 ········"data_var":·[14,·32,·34,·38,·40,·44,·48],
1988 ········"axisgrid":·14,1988 ········"axisgrid":·14,
1989 ········"pairgrid":·14,1989 ········"pairgrid":·14,
1990 ········"0xaa1915f0":·14,1990 ········"0xeab28fd0":·14,
1991 ········"9516129":·14,1991 ········"9516129":·14,
1992 ········"88709677":·14,1992 ········"88709677":·14,
1993 ········"93548387":·14,1993 ········"93548387":·14,
1994 ········"84210526":·14,1994 ········"84210526":·14,
1995 ········"71929825":·14,1995 ········"71929825":·14,
1996 ········"77192982":·14,1996 ········"77192982":·14,
1997 ········"24193548":·14,1997 ········"24193548":·14,
Offset 2321, 15 lines modifiedOffset 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 ········"0xab597710":·19,2328 ········"0xee94efb0":·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 2993, 15 lines modifiedOffset 2993, 15 lines modified
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],
2999 ········"68":·[32,·34,·38,·40,·43,·48],2999 ········"68":·[32,·34,·38,·40,·43,·48],
3000 ········"69":·[32,·34,·38,·40,·43,·48],3000 ········"69":·[32,·33,·34,·38,·40,·43,·48],
3001 ········"03343858":·32,3001 ········"03343858":·32,
3002 ········"06683976":·32,3002 ········"06683976":·32,
3003 ········"48672119":·32,3003 ········"48672119":·32,
3004 ········"51565952":·32,3004 ········"51565952":·32,
3005 ········"54402111":·32,3005 ········"54402111":·32,
3006 ········"03343845":·32,3006 ········"03343845":·32,
3007 ········"06683951":·32,3007 ········"06683951":·32,
Offset 3183, 15 lines modifiedOffset 3183, 15 lines modified
3183 ········"gaussian_2d":·32,3183 ········"gaussian_2d":·32,
3184 ········"xalpha":·32,3184 ········"xalpha":·32,
3185 ········"yalpha":·32,3185 ········"yalpha":·32,
3186 ········"94":·[32,·38,·43,·48],3186 ········"94":·[32,·38,·43,·48],
3187 ········"multi_peak":·32,3187 ········"multi_peak":·32,
3188 ········"zero":·[32,·38,·40,·43,·48],3188 ········"zero":·[32,·38,·40,·43,·48],
3189 ········"96":·[32,·38,·43,·48],3189 ········"96":·[32,·38,·43,·48],
3190 ········"97":·[32,·38,·43,·48],3190 ········"97":·[32,·33,·38,·43,·48],
3191 ········"n_peak":·32,3191 ········"n_peak":·32,
Max diff block lines reached; 6536/11030 bytes (59.26%) of diff not shown.
5.64 KB
./usr/share/doc/python-xarray-doc/html/user-guide/dask.html
    
Offset 114, 15 lines modifiedOffset 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·because115 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">&lt;xarray.DataArray·&#39;temperature&#39;·(time:·30,·latitude:·180,·longitude:·180)&gt;</span>120 <span·class="go">&lt;xarray.DataArray·&#39;temperature&#39;·(time:·30,·latitude:·180,·longitude:·180)&gt;</span>
121 <span·class="go">dask.array&lt;open_dataset-86fd385b8a6f7c00d182c4a804b7fb4ctemperature,·shape=(30,·180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray&gt;</span>121 <span·class="go">dask.array&lt;open_dataset-66d334fc2f4611bff21c1218002c3d06temperature,·shape=(30,·180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray&gt;</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)·int32·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span>124 <span·class="go">··*·longitude··(longitude)·int32·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·to128 <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to
Offset 138, 17 lines modifiedOffset 138, 19 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">&quot;manipulated-example-data.nc&quot;</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">&quot;manipulated-example-data.nc&quot;</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·|·11.74·ms</span>143 <span·class="go">[········································]·|·0%·Completed·|·3.97·ms</span>
 144 <span·class="go">[###############·························]·|·37%·Completed·|·107.69·ms</span>
144 <span·class="go">[##########······························]·|·25%·Completed·|·114.86·ms</span>145 <span·class="go">[###############·························]·|·37%·Completed·|·211.69·ms</span>
 146 <span·class="go">[###################################·····]·|·87%·Completed·|·315.69·ms</span>
145 <span·class="go">[########################################]·|·100%·Completed·|·222.89·ms</span>147 <span·class="go">[########################################]·|·100%·Completed·|·420.08·ms</span>
146 </pre></div>148 </pre></div>
147 </div>149 </div>
148 <div·class="admonition·note">150 <div·class="admonition·note">
149 <p·class="admonition-title">Note</p>151 <p·class="admonition-title">Note</p>
150 <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,152 <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,
151 it·may·be·necessary·to·set·the·environment·variable·<cite>HDF5_USE_FILE_LOCKING=FALSE</cite>153 it·may·be·necessary·to·set·the·environment·variable·<cite>HDF5_USE_FILE_LOCKING=FALSE</cite>
152 to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that154 to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that
2.14 KB
html2text {}
    
Offset 76, 15 lines modifiedOffset 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·because77 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.temperature80 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-86fd385b8a6f7c00d182c4a804b7fb4ctemperature,·shape=(30,83 dask.array<open_dataset-66d334fc2f4611bff21c1218002c3d06temperature,·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-3086 ··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30
87 ··*·longitude··(longitude)·int32·0·1·2·3·4·5·6·7·...·173·174·175·176·177·17887 ··*·longitude··(longitude)·int32·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178
88 17988 179
89 ··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.589 ··*·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·big90 Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big
Offset 98, 17 lines modifiedOffset 98, 19 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·|·11.74·ms103 [········································]·|·0%·Completed·|·3.97·ms
 104 [###############·························]·|·37%·Completed·|·107.69·ms
104 [##########······························]·|·25%·Completed·|·114.86·ms105 [###############·························]·|·37%·Completed·|·211.69·ms
 106 [###################################·····]·|·87%·Completed·|·315.69·ms
105 [########################################]·|·100%·Completed·|·222.89·ms107 [########################################]·|·100%·Completed·|·420.08·ms
106 Note108 Note
107 When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,·it·may·be109 When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,·it·may·be
108 necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid110 necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid
109 competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing111 competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing
110 netCDF·files·with·Dask’s·distributed·scheduler·is·only·supported·for112 netCDF·files·with·Dask’s·distributed·scheduler·is·only·supported·for
111 thenetcdf4backend.113 thenetcdf4backend.
112 A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe().114 A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe().
4.77 KB
./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html
    
Offset 687, 18 lines modifiedOffset 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·of687 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·for688 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·to689 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">&quot;y&quot;</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">&quot;y&quot;</span><span·class="p">))</span>
694 <span·class="gh">Out[60]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xa447e770&gt;]</span>694 <span·class="gh">Out[60]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xe5332a10&gt;]</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">&quot;y&quot;</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">&quot;y&quot;</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">[&lt;matplotlib.lines.Line2D·at·0xa44b4750&gt;]</span>696 <span·class="gh">Out[61]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xe4e7c970&gt;]</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·names699 <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>·and700 (<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·if702 <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·instead703 variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead
1.18 KB
html2text {}
    
Offset 574, 19 lines modifiedOffset 574, 19 lines modified
574 There·is·also·the·pipe()·method·that·allows·you·to·use·a·method·call·with·an574 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·(using576 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·flow578 #·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow
579 #·entirely·from·left·to·right579 #·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·0xa447e770>]581 Out[60]:·[<matplotlib.lines.Line2D·at·0xe5332a10>]
  
582 In·[61]:·(ds.temperature.sel(x=0).pipe(lambda·x:·2·*·x).mean("y").pipe582 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·0xa44b4750>]584 Out[61]:·[<matplotlib.lines.Line2D·at·0xe4e7c970>]
585 Both·pipe·and·assign·replicate·the·pandas·methods·of·the·same·names585 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·if587 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·instead588 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·we589 of·mutating·existing·objects·often·results·in·easier·to·understand·code,·so·we
590 encourage·using·this·approach.590 encourage·using·this·approach.
  
3.25 KB
./usr/share/doc/python-xarray-doc/html/user-guide/indexing.html
    
Offset 1277, 15 lines modifiedOffset 1277, 15 lines modified
1277 <span·class="nn">File·/build/reproducible-path/python-xarray-2023.01.0/xarray/core/utils.py:857,</span>·in·<span·class="ni">drop_dims_from_indexers</span><span·class="nt">(indexers,·dims,·missing_dims)</span>1277 <span·class="nn">File·/build/reproducible-path/python-xarray-2023.01.0/xarray/core/utils.py:857,</span>·in·<span·class="ni">drop_dims_from_indexers</span><span·class="nt">(indexers,·dims,·missing_dims)</span>
1278 <span·class="g·g-Whitespace">····</span><span·class="mi">856</span>·<span·class="k">if</span>·<span·class="n">invalid</span><span·class="p">:</span>1278 <span·class="g·g-Whitespace">····</span><span·class="mi">856</span>·<span·class="k">if</span>·<span·class="n">invalid</span><span·class="p">:</span>
1279 <span·class="ne">--&gt;·</span><span·class="mi">857</span>·····<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>1279 <span·class="ne">--&gt;·</span><span·class="mi">857</span>·····<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>
1280 <span·class="g·g-Whitespace">····</span><span·class="mi">858</span>·········<span·class="sa">f</span><span·class="s2">&quot;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">&quot;</span>1280 <span·class="g·g-Whitespace">····</span><span·class="mi">858</span>·········<span·class="sa">f</span><span·class="s2">&quot;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">&quot;</span>
1281 <span·class="g·g-Whitespace">····</span><span·class="mi">859</span>·····<span·class="p">)</span>1281 <span·class="g·g-Whitespace">····</span><span·class="mi">859</span>·····<span·class="p">)</span>
1282 <span·class="g·g-Whitespace">····</span><span·class="mi">861</span>·<span·class="k">return</span>·<span·class="n">indexers</span>1282 <span·class="g·g-Whitespace">····</span><span·class="mi">861</span>·<span·class="k">return</span>·<span·class="n">indexers</span>
  
1283 <span·class="ne">ValueError</span>:·Dimensions·{&#39;latitude&#39;,·&#39;longitude&#39;}·do·not·exist.·Expected·one·or·more·of·(&#39;x&#39;,·&#39;y&#39;)1283 <span·class="ne">ValueError</span>:·Dimensions·{&#39;longitude&#39;,·&#39;latitude&#39;}·do·not·exist.·Expected·one·or·more·of·(&#39;x&#39;,·&#39;y&#39;)
  
1284 <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span>1284 <span·class="n">The</span>·<span·class="n">above</span>·<span·class="n">exception</span>·<span·class="n">was</span>·<span·class="n">the</span>·<span·class="n">direct</span>·<span·class="n">cause</span>·<span·class="n">of</span>·<span·class="n">the</span>·<span·class="n">following</span>·<span·class="n">exception</span><span·class="p">:</span>
  
1285 <span·class="ne">ValueError</span><span·class="g·g-Whitespace">································</span>Traceback·(most·recent·call·last)1285 <span·class="ne">ValueError</span><span·class="g·g-Whitespace">································</span>Traceback·(most·recent·call·last)
1286 <span·class="n">Cell</span>·<span·class="n">In</span>·<span·class="p">[</span><span·class="mi">87</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span>1286 <span·class="n">Cell</span>·<span·class="n">In</span>·<span·class="p">[</span><span·class="mi">87</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span>
1287 <span·class="ne">----&gt;·</span><span·class="mi">1</span>·<span·class="n">ds</span><span·class="p">[</span><span·class="nb">dict</span><span·class="p">(</span><span·class="n">latitude</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">longitude</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">)]</span>·<span·class="o">=</span>·<span·class="mi">1</span>1287 <span·class="ne">----&gt;·</span><span·class="mi">1</span>·<span·class="n">ds</span><span·class="p">[</span><span·class="nb">dict</span><span·class="p">(</span><span·class="n">latitude</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>·<span·class="n">longitude</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">)]</span>·<span·class="o">=</span>·<span·class="mi">1</span>
  
629 B
html2text {}
    
Offset 1165, 15 lines modifiedOffset 1165, 15 lines modified
1165 ····856·if·invalid:1165 ····856·if·invalid:
1166 -->·857·····raise·ValueError(1166 -->·857·····raise·ValueError(
1167 ····858·········f"Dimensions·{invalid}·do·not·exist.·Expected·one·or·more·of1167 ····858·········f"Dimensions·{invalid}·do·not·exist.·Expected·one·or·more·of
1168 {dims}"1168 {dims}"
1169 ····859·····)1169 ····859·····)
1170 ····861·return·indexers1170 ····861·return·indexers
  
1171 ValueError:·Dimensions·{'latitude',·'longitude'}·do·not·exist.·Expected·one·or1171 ValueError:·Dimensions·{'longitude',·'latitude'}·do·not·exist.·Expected·one·or
1172 more·of·('x',·'y')1172 more·of·('x',·'y')
  
1173 The·above·exception·was·the·direct·cause·of·the·following·exception:1173 The·above·exception·was·the·direct·cause·of·the·following·exception:
  
1174 ValueError································Traceback·(most·recent·call·last)1174 ValueError································Traceback·(most·recent·call·last)
1175 Cell·In·[87],·line·11175 Cell·In·[87],·line·1
1176 ---->·1·ds[dict(latitude=2,·longitude=2)]·=·11176 ---->·1·ds[dict(latitude=2,·longitude=2)]·=·1
6.42 KB
./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html
    
Offset 222, 24 lines modifiedOffset 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">&quot;x&quot;</span><span·class="p">,</span>223 <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</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">&quot;x&quot;</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">&quot;x&quot;</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">&quot;o&quot;</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">&quot;original&quot;</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">&quot;o&quot;</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">&quot;original&quot;</span><span·class="p">)</span>
228 <span·class="gh">Out[17]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xade47150&gt;]</span>228 <span·class="gh">Out[17]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xe50483b0&gt;]</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">&quot;linear·(default)&quot;</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">&quot;linear·(default)&quot;</span><span·class="p">)</span>
230 <span·class="gh">Out[18]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xab58eb10&gt;]</span>230 <span·class="gh">Out[18]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xee971150&gt;]</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">&quot;cubic&quot;</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">&quot;cubic&quot;</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">&quot;cubic&quot;</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">&quot;cubic&quot;</span><span·class="p">)</span>
232 <span·class="gh">Out[19]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xadf9fbb0&gt;]</span>232 <span·class="gh">Out[19]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xee84da30&gt;]</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">&lt;matplotlib.legend.Legend·at·0xadf927b0&gt;</span>234 <span·class="gh">Out[20]:·</span><span·class="go">&lt;matplotlib.legend.Legend·at·0xee849310&gt;</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">&quot;fill_value&quot;</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">&quot;fill_value&quot;</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>
1.19 KB
html2text {}
    
Offset 165, 26 lines modifiedOffset 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·0xade47150>]171 Out[17]:·[<matplotlib.lines.Line2D·at·0xe50483b0>]
  
172 In·[18]:·da.interp(x=np.linspace(0,·1,·100)).plot.line(label="linear172 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·0xab58eb10>]174 Out[18]:·[<matplotlib.lines.Line2D·at·0xee971150>]
  
175 In·[19]:·da.interp(x=np.linspace(0,·1,·100),·method="cubic").plot.line175 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·0xadf9fbb0>]177 Out[19]:·[<matplotlib.lines.Line2D·at·0xee84da30>]
  
178 In·[20]:·plt.legend()178 In·[20]:·plt.legend()
179 Out[20]:·<matplotlib.legend.Legend·at·0xadf927b0>179 Out[20]:·<matplotlib.legend.Legend·at·0xee849310>
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.···,
48.9 KB
./usr/share/doc/python-xarray-doc/html/user-guide/plotting.html
    
Offset 643, 15 lines modifiedOffset 643, 15 lines modified
643 <span·class="ne">--&gt;·</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">--&gt;·</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>:·&#39;lat&#39;646 <span·class="ne">KeyError</span>:·&#39;lat&#39;
  
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">[&lt;matplotlib.lines.Line2D·at·0xa15581b0&gt;]</span>648 <span·class="gh">Out[51]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xe1f76bb0&gt;]</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 modifiedOffset 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)·int32·0·1·2·3</span>1206 <span·class="go">··*·z········(z)·int32·0·1·2·3</span>
1207 <span·class="go">··*·w········(w)·&lt;U5·&#39;one&#39;·&#39;two&#39;·&#39;three&#39;·&#39;five&#39;</span>1207 <span·class="go">··*·w········(w)·&lt;U5·&#39;one&#39;·&#39;two&#39;·&#39;three&#39;·&#39;five&#39;</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">&quot;y&quot;</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">&quot;y&quot;</span><span·class="p">)</span>
1211 <span·class="gh">Out[99]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xa14a82f0&gt;</span>1211 <span·class="gh">Out[99]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe4e5ecf0&gt;</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">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</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">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">)</span>
1217 <span·class="gh">Out[100]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xa14964f0&gt;</span>1217 <span·class="gh">Out[100]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe5bd3a30&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">)</span>
1223 <span·class="gh">Out[101]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xa12db170&gt;</span>1223 <span·class="gh">Out[101]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe1f76f70&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">)</span>
1229 <span·class="gh">Out[102]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xa1222e50&gt;</span>1229 <span·class="gh">Out[102]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe1d6cbd0&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&lt;matplotlib.collections.PathCollection·at·0xa11c4930&gt;</span>1235 <span·class="gh">Out[103]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe238c2d0&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&lt;matplotlib.collections.PathCollection·at·0xa12d7d50&gt;</span>1240 <span·class="gh">Out[104]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe1c2c190&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</span><span·class="p">)</span>
1247 <span·class="gh">Out[105]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xa118b0d0&gt;</span>1247 <span·class="gh">Out[105]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xe1c322f0&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">)</span>
1253 <span·class="gh">Out[106]:·</span><span·class="go">&lt;mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xa11de4f0&gt;</span>1253 <span·class="gh">Out[106]:·</span><span·class="go">&lt;mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xe1c9c3d0&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">)</span>
1259 <span·class="gh">Out[107]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xa11cabf0&gt;</span>1259 <span·class="gh">Out[107]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xe1bcbc10&gt;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</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">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</span><span·class="p">,</span>·<span·class="n">hue</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">markersize</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">)</span>
1265 <span·class="gh">Out[108]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xa0ad3a50&gt;</span>1265 <span·class="gh">Out[108]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xe2381df0&gt;</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·variables1269 <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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">)</span>
1276 <span·class="gh">Out[109]:·</span><span·class="go">&lt;matplotlib.quiver.Quiver·at·0xa03b8d70&gt;</span>1276 <span·class="gh">Out[109]:·</span><span·class="go">&lt;matplotlib.quiver.Quiver·at·0xe15358d0&gt;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</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">&lt;xarray.plot.facetgrid.FacetGrid·at·0xa048eb10&gt;</span>1282 <span·class="gh">Out[110]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xe195c2d0&gt;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">)</span>
1293 <span·class="gh">Out[111]:·</span><span·class="go">&lt;matplotlib.collections.LineCollection·at·0xa04dfd30&gt;</span>1293 <span·class="gh">Out[111]:·</span><span·class="go">&lt;matplotlib.collections.LineCollection·at·0xe16a0bf0&gt;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</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">&quot;x&quot;</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="s2">&quot;y&quot;</span><span·class="p">,</span>·<span·class="n">u</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">,</span>·<span·class="n">v</span><span·class="o">=</span><span·class="s2">&quot;B&quot;</span><span·class="p">,</span>·<span·class="n">col</span><span·class="o">=</span><span·class="s2">&quot;w&quot;</span><span·class="p">,</span>·<span·class="n">row</span><span·class="o">=</span><span·class="s2">&quot;z&quot;</span><span·class="p">)</span>
1300 <span·class="gh">Out[112]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xa0e44a90&gt;</span>1300 <span·class="gh">Out[112]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xe1785410&gt;</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 modifiedOffset 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; 16577/38553 bytes (43.00%) of diff not shown.
11.1 KB
html2text {}
    
Offset 541, 15 lines modifiedOffset 541, 15 lines modified
541 -->·186·····raise·KeyError(key)541 -->·186·····raise·KeyError(key)
542 ····188·ref_name,·var_name·=·split_key542 ····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·0xa15581b0>]546 Out[51]:·[<matplotlib.lines.Line2D·at·0xe1f76bb0>]
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 modifiedOffset 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.01030 ··*·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)·int32·0·1·2·31031 ··*·z········(z)·int32·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:····Aunits1034 ····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·0xa14a82f0>1036 Out[99]:·<matplotlib.collections.PathCollection·at·0xe4e5ecf0>
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·0xa14964f0>1040 Out[100]:·<matplotlib.collections.PathCollection·at·0xe5bd3a30>
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·DataArray1042 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·0xa12db170>1044 Out[101]:·<matplotlib.collections.PathCollection·at·0xe1f76f70>
1045 [../_images/ds_simple_scatter.png]1045 [../_images/ds_simple_scatter.png]
1046 The·hue·kwarg·lets·you·vary·the·color·by·variable·value1046 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·0xa1222e50>1048 Out[102]:·<matplotlib.collections.PathCollection·at·0xe1d6cbd0>
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·0xa11c4930>1054 Out[103]:·<matplotlib.collections.PathCollection·at·0xe238c2d0>
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·0xa12d7d50>1058 Out[104]:·<matplotlib.collections.PathCollection·at·0xe1c2c190>
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.·You1060 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·are1061 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·0xa118b0d0>1064 Out[105]:·<matplotlib.collections.PathCollection·at·0xe1c322f0>
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·0xa11de4f0>1068 Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xe1c9c3d0>
1069 [../_images/ds_hue_size_scatter_z.png]1069 [../_images/ds_hue_size_scatter_z.png]
1070 Faceting·is·also·possible1070 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·0xa11cabf0>1073 Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0xe1bcbc10>
1074 [../_images/ds_facet_scatter.png]1074 [../_images/ds_facet_scatter.png]
1075 And·adding·the·z-axis1075 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·0xa0ad3a50>1078 Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0xe2381df0>
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·data1080 For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·data
1081 variables·to·a·pandas·DataFrame·and·using·the·extensive·plotting·capabilities1081 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·0xa03b8d70>1086 Out[109]:·<matplotlib.quiver.Quiver·at·0xe15358d0>
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·0xa048eb10>1091 Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0xe195c2d0>
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·of1093 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·the1094 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·0xa04dfd30>1099 Out[111]:·<matplotlib.collections.LineCollection·at·0xe16a0bf0>
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·to1101 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·0xa0e44a90>1104 Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0xe1785410>
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·ccrs1109 In·[113]:·import·cartopy.crs·as·ccrs
  
1110 In·[114]:·air·=·xr.tutorial.open_dataset("air_temperature").air1110 In·[114]:·air·=·xr.tutorial.open_dataset("air_temperature").air
Offset 1221, 24 lines modifiedOffset 1221, 24 lines modified
1221 In·[121]:·import·xarray.plot·as·xplt1221 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·0xa0a65130>]1225 Out[124]:·[<matplotlib.lines.Line2D·at·0xdf809df0>]
  
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·0xa0ce4270>]1227 Out[125]:·[<matplotlib.lines.Line2D·at·0xdf85def0>]
  
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·0xa0f6e6b0>]1229 Out[126]:·[<matplotlib.lines.Line2D·at·0xe1979130>]
  
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·0x9edaf030>]1231 Out[127]:·[<matplotlib.lines.Line2D·at·0xe0ecc390>]
  
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·was1235 Here·the·output·is·the·same.·Since·the·data·is·1·dimensional·the·line·plot·was
1236 used.1236 used.
Offset 1270, 15 lines modifiedOffset 1270, 15 lines modified
Max diff block lines reached; 4775/11375 bytes (41.98%) of diff not shown.
3.71 KB
./usr/share/doc/python-xarray-doc/html/whats-new.html
    
Offset 5855, 15 lines modifiedOffset 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·according5855 <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">&quot;x&quot;</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">&quot;y&quot;</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">&quot;x&quot;</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">&quot;y&quot;</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">&quot;distance&quot;</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">&quot;distance&quot;</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">&lt;</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">&lt;</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">&lt;matplotlib.collections.QuadMesh·at·0x9d68cfd0&gt;</span>5860 <span·class="gh">Out[46]:·</span><span·class="go">&lt;matplotlib.collections.QuadMesh·at·0xde251f10&gt;</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·for5867 <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.to_masked_array</span></code>·convenience·method·for
878 B
html2text {}
    
Offset 4049, 15 lines modifiedOffset 4049, 15 lines modified
4049 ····*·New·xray.Dataset.where·method·for·masking·xray·objects·according·to·some4049 ····*·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·0x9d68cfd0>4054 ······Out[46]:·<matplotlib.collections.QuadMesh·at·0xde251f10>
4055 ······[_images/where_example.png]4055 ······[_images/where_example.png]
4056 ····*·Added·new·methods·xray.DataArray.diff·and·xray.Dataset.diff·for·finite4056 ····*·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·a4058 ····*·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)))