286 KB
/srv/reproducible-results/rbuild-debian/r-b-build.3pslbKDO/b1/python-xarray_2023.01.0-1.1_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.3pslbKDO/b2/python-xarray_2023.01.0-1.1_amd64.changes
315 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·d22a00f776f5986de6e01a69abc53e67·5277000·doc·optional·python-xarray-doc_2023.01.0-1.1_all.deb1 ·2c9e041d87b59d3b09ac5f69acfd0e42·5277036·doc·optional·python-xarray-doc_2023.01.0-1.1_all.deb
2 ·6e5f6af35de770365644ec5792cfe64e·630312·python·optional·python3-xarray_2023.01.0-1.1_all.deb2 ·6e5f6af35de770365644ec5792cfe64e·630312·python·optional·python3-xarray_2023.01.0-1.1_all.deb
286 KB
python-xarray-doc_2023.01.0-1.1_all.deb
452 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·····6252·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··5270556·2023-02-19·00:50:57.000000·data.tar.xz3 -rw-r--r--···0········0········0··5270596·2023-02-19·00:50:57.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
285 KB
data.tar.xz
285 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)···108934·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)···108934·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html
240 -rw-r--r--···0·root·········(0)·root·········(0)·····6512·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)·····6518·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz
241 -rw-r--r--···0·root·········(0)·root·········(0)····45795·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.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)····24049·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)····24061·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz
243 -rw-r--r--···0·root·········(0)·root·········(0)···128905·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.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)·····9529·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)·····9531·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz
245 -rw-r--r--···0·root·········(0)·root·········(0)····36809·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.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)····21768·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)····21769·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz
247 -rw-r--r--···0·root·········(0)·root·········(0)····22771·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.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)·····1560·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)·····1561·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz
249 -rw-r--r--···0·root·········(0)·root·········(0)····45664·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.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)·····3545·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)·····3542·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz
251 -rw-r--r--···0·root·········(0)·root·········(0)····38738·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.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)····11188·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)····11182·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz
253 -rw-r--r--···0·root·········(0)·root·········(0)····65414·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html253 -rw-r--r--···0·root·········(0)·root·········(0)····65414·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html
254 -rw-r--r--···0·root·········(0)·root·········(0)·····4680·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)·····4675·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz
255 -rw-r--r--···0·root·········(0)·root·········(0)····92426·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html255 -rw-r--r--···0·root·········(0)·root·········(0)····92426·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html
256 -rw-r--r--···0·root·········(0)·root·········(0)···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)···367799·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz
257 -rw-r--r--···0·root·········(0)·root·········(0)·····6546·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/gallery.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)····42860·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)····42860·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/getting-started-guide/quick-overview.html
Offset 271, 20 lines 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)···198712·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js278 -rw-r--r--···0·root·········(0)·root·········(0)···198722·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js
279 -rw-r--r--···0·root·········(0)·root·········(0)·····7175·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/tutorials-and-videos.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)····74545·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)····74640·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/dask.html
284 -rw-r--r--···0·root·········(0)·root·········(0)····98802·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html284 -rw-r--r--···0·root·········(0)·root·········(0)····98802·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html
285 -rw-r--r--···0·root·········(0)·root·········(0)····15231·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/duckarrays.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)····91334·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)····91334·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html
290 -rw-r--r--···0·root·········(0)·root·········(0)···253831·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/user-guide/io.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.52 KB
./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html
    
Offset 432, 15 lines modifiedOffset 432, 15 lines modified
432 </pre></div></div>432 </pre></div></div>
433 </div>433 </div>
434 <div·class="nboutput·docutils·container">434 <div·class="nboutput·docutils·container">
435 <div·class="prompt·empty·docutils·container">435 <div·class="prompt·empty·docutils·container">
436 </div>436 </div>
437 <div·class="output_area·docutils·container">437 <div·class="output_area·docutils·container">
438 <div·class="highlight"><pre>438 <div·class="highlight"><pre>
439 Error·in·callback·&lt;function·_draw_all_if_interactive·at·0x7f1ba9917920&gt;·(for·post_execute):439 Error·in·callback·&lt;function·_draw_all_if_interactive·at·0x7f8bbe48b880&gt;·(for·post_execute):
440 </pre></div></div>440 </pre></div></div>
441 </div>441 </div>
442 <div·class="nboutput·docutils·container">442 <div·class="nboutput·docutils·container">
443 <div·class="prompt·empty·docutils·container">443 <div·class="prompt·empty·docutils·container">
444 </div>444 </div>
445 <div·class="output_area·docutils·container">445 <div·class="output_area·docutils·container">
446 <div·class="highlight"><pre>446 <div·class="highlight"><pre>
796 B
html2text {}
    
Offset 98, 15 lines modifiedOffset 98, 15 lines modified
98 ---->·7·plot·=·ds.t2m[0].plot(98 ---->·7·plot·=·ds.t2m[0].plot(
99 ······8·····cmap=plt.cm.coolwarm,·transform=ccrs.PlateCarree(),·cbar_kwargs=99 ······8·····cmap=plt.cm.coolwarm,·transform=ccrs.PlateCarree(),·cbar_kwargs=
100 {"shrink":·0.6}100 {"shrink":·0.6}
101 ······9·)101 ······9·)
102 ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019")102 ·····10·plt.title("ERA5·-·2m·temperature·British·Isles·March·2019")
  
103 NameError:·name·'ds'·is·not·defined103 NameError:·name·'ds'·is·not·defined
104 Error·in·callback·<function·_draw_all_if_interactive·at·0x7f1ba9917920>·(for104 Error·in·callback·<function·_draw_all_if_interactive·at·0x7f8bbe48b880>·(for
105 post_execute):105 post_execute):
106 ---------------------------------------------------------------------------106 ---------------------------------------------------------------------------
107 PermissionError···························Traceback·(most·recent·call·last)107 PermissionError···························Traceback·(most·recent·call·last)
108 File·/usr/lib/python3/dist-packages/matplotlib/pyplot.py:119,·in108 File·/usr/lib/python3/dist-packages/matplotlib/pyplot.py:119,·in
109 _draw_all_if_interactive()109 _draw_all_if_interactive()
110 ····117·def·_draw_all_if_interactive():110 ····117·def·_draw_all_if_interactive():
111 ····118·····if·matplotlib.is_interactive():111 ····118·····if·matplotlib.is_interactive():
6.49 KB
./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz
6.34 KB
ERA5-GRIB-example.ipynb
6.3 KB
Pretty-printed
Similarity: 0.9985416666666667% Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T09:46:27.094752Z', " "'iopub.status.busy': '2024-01-12T09:46:27.094289Z', 'iopub.status.idle': " "'2024-01-12T09:46:35.544950Z', 'shell.execute_reply': " "'2024-01-12T09:46:35.528879Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:46:35.575687Z', 'iopub.status.busy': " "'2024-01-12T09:46:35.574831Z', 'iopub.status.idle': '2024-01-12T09:46:3 […]
    
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":·"2025-02-13T15:47:31.556566Z",22 ····················"iopub.execute_input":·"2024-01-12T09:46:27.094752Z",
23 ····················"iopub.status.busy":·"2025-02-13T15:47:31.556003Z",23 ····················"iopub.status.busy":·"2024-01-12T09:46:27.094289Z",
24 ····················"iopub.status.idle":·"2025-02-13T15:47:36.999433Z",24 ····················"iopub.status.idle":·"2024-01-12T09:46:35.544950Z",
25 ····················"shell.execute_reply":·"2025-02-13T15:47:36.989905Z"25 ····················"shell.execute_reply":·"2024-01-12T09:46:35.528879Z"
26 ················}26 ················}
27 ············},27 ············},
28 ············"outputs":·[28 ············"outputs":·[
29 ················{29 ················{
30 ····················"name":·"stderr",30 ····················"name":·"stderr",
31 ····················"output_type":·"stream",31 ····················"output_type":·"stream",
32 ····················"text":·[32 ····················"text":·[
Offset 47, 18 lines modifiedOffset 47, 18 lines modified
47 ············]47 ············]
48 ········},48 ········},
49 ········{49 ········{
50 ············"cell_type":·"code",50 ············"cell_type":·"code",
51 ············"execution_count":·2,51 ············"execution_count":·2,
52 ············"metadata":·{52 ············"metadata":·{
53 ················"execution":·{53 ················"execution":·{
54 ····················"iopub.execute_input":·"2025-02-13T15:47:37.007536Z",54 ····················"iopub.execute_input":·"2024-01-12T09:46:35.575687Z",
55 ····················"iopub.status.busy":·"2025-02-13T15:47:37.006806Z",55 ····················"iopub.status.busy":·"2024-01-12T09:46:35.574831Z",
56 ····················"iopub.status.idle":·"2025-02-13T15:47:37.399149Z",56 ····················"iopub.status.idle":·"2024-01-12T09:46:36.748869Z",
57 ····················"shell.execute_reply":·"2025-02-13T15:47:37.392656Z"57 ····················"shell.execute_reply":·"2024-01-12T09:46:36.732777Z"
58 ················}58 ················}
59 ············},59 ············},
60 ············"outputs":·[60 ············"outputs":·[
61 ················{61 ················{
62 ····················"ename":·"ImportError",62 ····················"ename":·"ImportError",
63 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",63 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
64 ····················"output_type":·"error",64 ····················"output_type":·"error",
Offset 88, 18 lines modifiedOffset 88, 18 lines modified
88 ············]88 ············]
89 ········},89 ········},
90 ········{90 ········{
91 ············"cell_type":·"code",91 ············"cell_type":·"code",
92 ············"execution_count":·3,92 ············"execution_count":·3,
93 ············"metadata":·{93 ············"metadata":·{
94 ················"execution":·{94 ················"execution":·{
95 ····················"iopub.execute_input":·"2025-02-13T15:47:37.407743Z",95 ····················"iopub.execute_input":·"2024-01-12T09:46:36.774608Z",
96 ····················"iopub.status.busy":·"2025-02-13T15:47:37.407239Z",96 ····················"iopub.status.busy":·"2024-01-12T09:46:36.774195Z",
97 ····················"iopub.status.idle":·"2025-02-13T15:47:37.495612Z",97 ····················"iopub.status.idle":·"2024-01-12T09:46:36.896873Z",
98 ····················"shell.execute_reply":·"2025-02-13T15:47:37.486907Z"98 ····················"shell.execute_reply":·"2024-01-12T09:46:36.880829Z"
99 ················}99 ················}
100 ············},100 ············},
101 ············"outputs":·[101 ············"outputs":·[
102 ················{102 ················{
103 ····················"ename":·"NameError",103 ····················"ename":·"NameError",
104 ····················"evalue":·"name·'ds'·is·not·defined",104 ····················"evalue":·"name·'ds'·is·not·defined",
105 ····················"output_type":·"error",105 ····················"output_type":·"error",
Offset 124, 18 lines modifiedOffset 124, 18 lines modified
124 ············]124 ············]
125 ········},125 ········},
126 ········{126 ········{
127 ············"cell_type":·"code",127 ············"cell_type":·"code",
128 ············"execution_count":·4,128 ············"execution_count":·4,
129 ············"metadata":·{129 ············"metadata":·{
130 ················"execution":·{130 ················"execution":·{
131 ····················"iopub.execute_input":·"2025-02-13T15:47:37.512148Z",131 ····················"iopub.execute_input":·"2024-01-12T09:46:36.926683Z",
132 ····················"iopub.status.busy":·"2025-02-13T15:47:37.511666Z",132 ····················"iopub.status.busy":·"2024-01-12T09:46:36.926208Z",
133 ····················"iopub.status.idle":·"2025-02-13T15:47:42.442905Z",133 ····················"iopub.status.idle":·"2024-01-12T09:46:44.600922Z",
134 ····················"shell.execute_reply":·"2025-02-13T15:47:42.441078Z"134 ····················"shell.execute_reply":·"2024-01-12T09:46:44.584944Z"
135 ················}135 ················}
136 ············},136 ············},
137 ············"outputs":·[137 ············"outputs":·[
138 ················{138 ················{
139 ····················"ename":·"NameError",139 ····················"ename":·"NameError",
140 ····················"evalue":·"name·'ds'·is·not·defined",140 ····················"evalue":·"name·'ds'·is·not·defined",
141 ····················"output_type":·"error",141 ····················"output_type":·"error",
Offset 146, 15 lines modifiedOffset 146, 15 lines modified
146 ························"\u001b[0;31mNameError\u001b[0m:·name·'ds'·is·not·defined"146 ························"\u001b[0;31mNameError\u001b[0m:·name·'ds'·is·not·defined"
147 ····················]147 ····················]
148 ················},148 ················},
149 ················{149 ················{
150 ····················"name":·"stdout",150 ····················"name":·"stdout",
151 ····················"output_type":·"stream",151 ····················"output_type":·"stream",
152 ····················"text":·[152 ····················"text":·[
153 ························"Error·in·callback·<function·_draw_all_if_interactive·at·0x7f1ba9917920>·(for·post_execute):\n"153 ························"Error·in·callback·<function·_draw_all_if_interactive·at·0x7f8bbe48b880>·(for·post_execute):\n"
154 ····················]154 ····················]
155 ················},155 ················},
156 ················{156 ················{
157 ····················"ename":·"PermissionError",157 ····················"ename":·"PermissionError",
158 ····················"evalue":·"[Errno·13]·Permission·denied:·'/nonexistent'",158 ····················"evalue":·"[Errno·13]·Permission·denied:·'/nonexistent'",
159 ····················"output_type":·"error",159 ····················"output_type":·"error",
160 ····················"traceback":·[160 ····················"traceback":·[
Offset 255, 18 lines modifiedOffset 255, 18 lines modified
255 ············]255 ············]
256 ········},256 ········},
257 ········{257 ········{
258 ············"cell_type":·"code",258 ············"cell_type":·"code",
259 ············"execution_count":·5,259 ············"execution_count":·5,
260 ············"metadata":·{260 ············"metadata":·{
261 ················"execution":·{261 ················"execution":·{
262 ····················"iopub.execute_input":·"2025-02-13T15:47:42.456403Z",262 ····················"iopub.execute_input":·"2024-01-12T09:46:44.613302Z",
263 ····················"iopub.status.busy":·"2025-02-13T15:47:42.455997Z",263 ····················"iopub.status.busy":·"2024-01-12T09:46:44.612788Z",
264 ····················"iopub.status.idle":·"2025-02-13T15:47:42.487585Z",264 ····················"iopub.status.idle":·"2024-01-12T09:46:44.724892Z",
265 ····················"shell.execute_reply":·"2025-02-13T15:47:42.486365Z"265 ····················"shell.execute_reply":·"2024-01-12T09:46:44.708840Z"
266 ················}266 ················}
267 ············},267 ············},
268 ············"outputs":·[268 ············"outputs":·[
269 ················{269 ················{
270 ····················"ename":·"NameError",270 ····················"ename":·"NameError",
271 ····················"evalue":·"name·'ds'·is·not·defined",271 ····················"evalue":·"name·'ds'·is·not·defined",
272 ····················"output_type":·"error",272 ····················"output_type":·"error",
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-12T09:46:55.514621Z', " "'iopub.status.busy': '2024-01-12T09:46:55.514015Z', 'iopub.status.idle': " "'2024-01-12T09:47:00.692924Z', 'shell.execute_reply': " "'2024-01-12T09:47:00.676953Z'}}}, 5: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:47:00.720027Z', 'iopub.status.busy': " "'2024-01-12T09:47:00.718856Z', 'iopub.status.idle': '2024-01-12T09:47:0 […]
    
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":·"2025-02-13T15:47:51.548593Z",24 ····················"iopub.execute_input":·"2024-01-12T09:46:55.514621Z",
25 ····················"iopub.status.busy":·"2025-02-13T15:47:51.548053Z",25 ····················"iopub.status.busy":·"2024-01-12T09:46:55.514015Z",
26 ····················"iopub.status.idle":·"2025-02-13T15:47:53.955852Z",26 ····················"iopub.status.idle":·"2024-01-12T09:47:00.692924Z",
27 ····················"shell.execute_reply":·"2025-02-13T15:47:53.954758Z"27 ····················"shell.execute_reply":·"2024-01-12T09:47:00.676953Z"
28 ················}28 ················}
29 ············},29 ············},
30 ············"outputs":·[],30 ············"outputs":·[],
31 ············"source":·[31 ············"source":·[
32 ················"import·numpy·as·np\n",32 ················"import·numpy·as·np\n",
33 ················"import·cartopy.crs·as·ccrs\n",33 ················"import·cartopy.crs·as·ccrs\n",
34 ················"import·cartopy.feature·as·cfeature\n",34 ················"import·cartopy.feature·as·cfeature\n",
Offset 75, 18 lines 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":·"2025-02-13T15:47:53.967554Z",82 ····················"iopub.execute_input":·"2024-01-12T09:47:00.720027Z",
83 ····················"iopub.status.busy":·"2025-02-13T15:47:53.966834Z",83 ····················"iopub.status.busy":·"2024-01-12T09:47:00.718856Z",
84 ····················"iopub.status.idle":·"2025-02-13T15:47:54.375440Z",84 ····················"iopub.status.idle":·"2024-01-12T09:47:01.761091Z",
85 ····················"shell.execute_reply":·"2025-02-13T15:47:54.368107Z"85 ····················"shell.execute_reply":·"2024-01-12T09:47:01.744962Z"
86 ················}86 ················}
87 ············},87 ············},
88 ············"outputs":·[88 ············"outputs":·[
89 ················{89 ················{
90 ····················"ename":·"ImportError",90 ····················"ename":·"ImportError",
91 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",91 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
92 ····················"output_type":·"error",92 ····················"output_type":·"error",
Offset 130, 18 lines 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":·"2025-02-13T15:47:54.388654Z",137 ····················"iopub.execute_input":·"2024-01-12T09:47:01.786913Z",
138 ····················"iopub.status.busy":·"2025-02-13T15:47:54.388227Z",138 ····················"iopub.status.busy":·"2024-01-12T09:47:01.786356Z",
139 ····················"iopub.status.idle":·"2025-02-13T15:47:54.455124Z",139 ····················"iopub.status.idle":·"2024-01-12T09:47:01.937172Z",
140 ····················"shell.execute_reply":·"2025-02-13T15:47:54.448306Z"140 ····················"shell.execute_reply":·"2024-01-12T09:47:01.920927Z"
141 ················}141 ················}
142 ············},142 ············},
143 ············"outputs":·[143 ············"outputs":·[
144 ················{144 ················{
145 ····················"ename":·"NameError",145 ····················"ename":·"NameError",
146 ····················"evalue":·"name·'ds'·is·not·defined",146 ····················"evalue":·"name·'ds'·is·not·defined",
147 ····················"output_type":·"error",147 ····················"output_type":·"error",
Offset 175, 18 lines 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":·"2025-02-13T15:47:54.469640Z",182 ····················"iopub.execute_input":·"2024-01-12T09:47:01.962611Z",
183 ····················"iopub.status.busy":·"2025-02-13T15:47:54.469147Z",183 ····················"iopub.status.busy":·"2024-01-12T09:47:01.962140Z",
184 ····················"iopub.status.idle":·"2025-02-13T15:47:54.527202Z",184 ····················"iopub.status.idle":·"2024-01-12T09:47:02.072899Z",
185 ····················"shell.execute_reply":·"2025-02-13T15:47:54.515948Z"185 ····················"shell.execute_reply":·"2024-01-12T09:47:02.056879Z"
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":·"2025-02-13T15:47:54.541659Z",218 ····················"iopub.execute_input":·"2024-01-12T09:47:02.099453Z",
219 ····················"iopub.status.busy":·"2025-02-13T15:47:54.541185Z",219 ····················"iopub.status.busy":·"2024-01-12T09:47:02.098771Z",
220 ····················"iopub.status.idle":·"2025-02-13T15:47:54.610735Z",220 ····················"iopub.status.idle":·"2024-01-12T09:47:02.229010Z",
221 ····················"shell.execute_reply":·"2025-02-13T15:47:54.601296Z"221 ····················"shell.execute_reply":·"2024-01-12T09:47:02.212934Z"
222 ················}222 ················}
223 ············},223 ············},
224 ············"outputs":·[224 ············"outputs":·[
225 ················{225 ················{
226 ····················"ename":·"NameError",226 ····················"ename":·"NameError",
227 ····················"evalue":·"name·'ds'·is·not·defined",227 ····················"evalue":·"name·'ds'·is·not·defined",
228 ····················"output_type":·"error",228 ····················"output_type":·"error",
Offset 250, 18 lines 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":·"2025-02-13T15:47:54.628526Z",257 ····················"iopub.execute_input":·"2024-01-12T09:47:02.254679Z",
258 ····················"iopub.status.busy":·"2025-02-13T15:47:54.628098Z",258 ····················"iopub.status.busy":·"2024-01-12T09:47:02.254221Z",
259 ····················"iopub.status.idle":·"2025-02-13T15:47:54.695075Z",259 ····················"iopub.status.idle":·"2024-01-12T09:47:02.368968Z",
260 ····················"shell.execute_reply":·"2025-02-13T15:47:54.685477Z"260 ····················"shell.execute_reply":·"2024-01-12T09:47:02.352986Z"
261 ················}261 ················}
262 ············},262 ············},
263 ············"outputs":·[263 ············"outputs":·[
264 ················{264 ················{
265 ····················"ename":·"NameError",265 ····················"ename":·"NameError",
266 ····················"evalue":·"name·'ds'·is·not·defined",266 ····················"evalue":·"name·'ds'·is·not·defined",
267 ····················"output_type":·"error",267 ····················"output_type":·"error",
Offset 285, 18 lines 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":·"2025-02-13T15:47:54.712940Z",292 ····················"iopub.execute_input":·"2024-01-12T09:47:02.394700Z",
293 ····················"iopub.status.busy":·"2025-02-13T15:47:54.712451Z",293 ····················"iopub.status.busy":·"2024-01-12T09:47:02.394194Z",
294 ····················"iopub.status.idle":·"2025-02-13T15:47:55.205459Z",294 ····················"iopub.status.idle":·"2024-01-12T09:47:03.369213Z",
295 ····················"shell.execute_reply":·"2025-02-13T15:47:55.198315Z"295 ····················"shell.execute_reply":·"2024-01-12T09:47:03.367074Z"
296 ················}296 ················}
297 ············},297 ············},
Max diff block lines reached; 166/7112 bytes (2.33%) of diff not shown.
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-12T09:47:12.287484Z', " "'iopub.status.busy': '2024-01-12T09:47:12.286713Z', 'iopub.status.idle': " "'2024-01-12T09:47:15.114824Z', 'shell.execute_reply': " "'2024-01-12T09:47:15.113645Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:47:15.130947Z', 'iopub.status.busy': " "'2024-01-12T09:47:15.130448Z', 'iopub.status.idle': '2024-01-12T09:47:1 […]
    
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":·"2025-02-13T15:48:03.985087Z",43 ····················"iopub.execute_input":·"2024-01-12T09:47:12.287484Z",
44 ····················"iopub.status.busy":·"2025-02-13T15:48:03.984540Z",44 ····················"iopub.status.busy":·"2024-01-12T09:47:12.286713Z",
45 ····················"iopub.status.idle":·"2025-02-13T15:48:05.683345Z",45 ····················"iopub.status.idle":·"2024-01-12T09:47:15.114824Z",
46 ····················"shell.execute_reply":·"2025-02-13T15:48:05.674733Z"46 ····················"shell.execute_reply":·"2024-01-12T09:47:15.113645Z"
47 ················}47 ················}
48 ············},48 ············},
49 ············"outputs":·[49 ············"outputs":·[
50 ················{50 ················{
51 ····················"ename":·"ImportError",51 ····················"ename":·"ImportError",
52 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",52 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
53 ····················"output_type":·"error",53 ····················"output_type":·"error",
Offset 91, 18 lines 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":·"2025-02-13T15:48:05.696729Z",98 ····················"iopub.execute_input":·"2024-01-12T09:47:15.130947Z",
99 ····················"iopub.status.busy":·"2025-02-13T15:48:05.696284Z",99 ····················"iopub.status.busy":·"2024-01-12T09:47:15.130448Z",
100 ····················"iopub.status.idle":·"2025-02-13T15:48:05.733985Z",100 ····················"iopub.status.idle":·"2024-01-12T09:47:15.161121Z",
101 ····················"shell.execute_reply":·"2025-02-13T15:48:05.732498Z"101 ····················"shell.execute_reply":·"2024-01-12T09:47:15.159694Z"
102 ················}102 ················}
103 ············},103 ············},
104 ············"outputs":·[104 ············"outputs":·[
105 ················{105 ················{
106 ····················"ename":·"NameError",106 ····················"ename":·"NameError",
107 ····················"evalue":·"name·'air'·is·not·defined",107 ····················"evalue":·"name·'air'·is·not·defined",
108 ····················"output_type":·"error",108 ····················"output_type":·"error",
Offset 131, 18 lines 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":·"2025-02-13T15:48:05.746637Z",138 ····················"iopub.execute_input":·"2024-01-12T09:47:15.174866Z",
139 ····················"iopub.status.busy":·"2025-02-13T15:48:05.746072Z",139 ····················"iopub.status.busy":·"2024-01-12T09:47:15.174407Z",
140 ····················"iopub.status.idle":·"2025-02-13T15:48:05.789858Z",140 ····················"iopub.status.idle":·"2024-01-12T09:47:15.211028Z",
141 ····················"shell.execute_reply":·"2025-02-13T15:48:05.788566Z"141 ····················"shell.execute_reply":·"2024-01-12T09:47:15.209910Z"
142 ················}142 ················}
143 ············},143 ············},
144 ············"outputs":·[144 ············"outputs":·[
145 ················{145 ················{
146 ····················"ename":·"NameError",146 ····················"ename":·"NameError",
147 ····················"evalue":·"name·'air'·is·not·defined",147 ····················"evalue":·"name·'air'·is·not·defined",
148 ····················"output_type":·"error",148 ····················"output_type":·"error",
Offset 190, 18 lines 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":·"2025-02-13T15:48:05.797888Z",197 ····················"iopub.execute_input":·"2024-01-12T09:47:15.230981Z",
198 ····················"iopub.status.busy":·"2025-02-13T15:48:05.797440Z",198 ····················"iopub.status.busy":·"2024-01-12T09:47:15.230423Z",
199 ····················"iopub.status.idle":·"2025-02-13T15:48:05.830362Z",199 ····················"iopub.status.idle":·"2024-01-12T09:47:15.259304Z",
200 ····················"shell.execute_reply":·"2025-02-13T15:48:05.829066Z"200 ····················"shell.execute_reply":·"2024-01-12T09:47:15.258242Z"
201 ················}201 ················}
202 ············},202 ············},
203 ············"outputs":·[203 ············"outputs":·[
204 ················{204 ················{
205 ····················"ename":·"NameError",205 ····················"ename":·"NameError",
206 ····················"evalue":·"name·'air'·is·not·defined",206 ····················"evalue":·"name·'air'·is·not·defined",
207 ····················"output_type":·"error",207 ····················"output_type":·"error",
Offset 256, 18 lines 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":·"2025-02-13T15:48:05.836981Z",263 ····················"iopub.execute_input":·"2024-01-12T09:47:15.275073Z",
264 ····················"iopub.status.busy":·"2025-02-13T15:48:05.836534Z",264 ····················"iopub.status.busy":·"2024-01-12T09:47:15.274597Z",
265 ····················"iopub.status.idle":·"2025-02-13T15:48:05.873467Z",265 ····················"iopub.status.idle":·"2024-01-12T09:47:15.308079Z",
266 ····················"shell.execute_reply":·"2025-02-13T15:48:05.872152Z"266 ····················"shell.execute_reply":·"2024-01-12T09:47:15.306797Z"
267 ················}267 ················}
268 ············},268 ············},
269 ············"outputs":·[269 ············"outputs":·[
270 ················{270 ················{
271 ····················"ename":·"NameError",271 ····················"ename":·"NameError",
272 ····················"evalue":·"name·'air'·is·not·defined",272 ····················"evalue":·"name·'air'·is·not·defined",
273 ····················"output_type":·"error",273 ····················"output_type":·"error",
Offset 334, 18 lines 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":·"2025-02-13T15:48:05.880122Z",341 ····················"iopub.execute_input":·"2024-01-12T09:47:15.323219Z",
342 ····················"iopub.status.busy":·"2025-02-13T15:48:05.879604Z",342 ····················"iopub.status.busy":·"2024-01-12T09:47:15.322736Z",
343 ····················"iopub.status.idle":·"2025-02-13T15:48:05.915968Z",343 ····················"iopub.status.idle":·"2024-01-12T09:47:15.354422Z",
344 ····················"shell.execute_reply":·"2025-02-13T15:48:05.914706Z"344 ····················"shell.execute_reply":·"2024-01-12T09:47:15.353127Z"
345 ················}345 ················}
346 ············},346 ············},
347 ············"outputs":·[347 ············"outputs":·[
348 ················{348 ················{
349 ····················"ename":·"NameError",349 ····················"ename":·"NameError",
350 ····················"evalue":·"name·'air'·is·not·defined",350 ····················"evalue":·"name·'air'·is·not·defined",
351 ····················"output_type":·"error",351 ····················"output_type":·"error",
Offset 380, 18 lines 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":·"2025-02-13T15:48:05.922382Z",387 ····················"iopub.execute_input":·"2024-01-12T09:47:15.366918Z",
388 ····················"iopub.status.busy":·"2025-02-13T15:48:05.921890Z",388 ····················"iopub.status.busy":·"2024-01-12T09:47:15.366466Z",
389 ····················"iopub.status.idle":·"2025-02-13T15:48:05.958029Z",389 ····················"iopub.status.idle":·"2024-01-12T09:47:15.402739Z",
390 ····················"shell.execute_reply":·"2025-02-13T15:48:05.956883Z"390 ····················"shell.execute_reply":·"2024-01-12T09:47:15.401621Z"
391 ················}391 ················}
392 ············},392 ············},
Max diff block lines reached; 9140/16869 bytes (54.18%) of diff not shown.
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-12T09:47:31.494450Z', " "'iopub.status.busy': '2024-01-12T09:47:31.494022Z', 'iopub.status.idle': " "'2024-01-12T09:47:34.288807Z', 'shell.execute_reply': " "'2024-01-12T09:47:34.272752Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:47:34.306518Z', 'iopub.status.busy': " "'2024-01-12T09:47:34.305954Z', 'iopub.status.idle': '2024-01-12T09:47:3 […]
    
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":·"2025-02-13T15:48:16.115392Z",35 ····················"iopub.execute_input":·"2024-01-12T09:47:31.494450Z",
36 ····················"iopub.status.busy":·"2025-02-13T15:48:16.114852Z",36 ····················"iopub.status.busy":·"2024-01-12T09:47:31.494022Z",
37 ····················"iopub.status.idle":·"2025-02-13T15:48:18.191281Z",37 ····················"iopub.status.idle":·"2024-01-12T09:47:34.288807Z",
38 ····················"shell.execute_reply":·"2025-02-13T15:48:18.174722Z"38 ····················"shell.execute_reply":·"2024-01-12T09:47:34.272752Z"
39 ················}39 ················}
40 ············},40 ············},
41 ············"outputs":·[],41 ············"outputs":·[],
42 ············"source":·[42 ············"source":·[
43 ················"%matplotlib·inline\n",43 ················"%matplotlib·inline\n",
44 ················"\n",44 ················"\n",
45 ················"import·cartopy.crs·as·ccrs\n",45 ················"import·cartopy.crs·as·ccrs\n",
Offset 63, 18 lines 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":·"2025-02-13T15:48:18.203229Z",70 ····················"iopub.execute_input":·"2024-01-12T09:47:34.306518Z",
71 ····················"iopub.status.busy":·"2025-02-13T15:48:18.202459Z",71 ····················"iopub.status.busy":·"2024-01-12T09:47:34.305954Z",
72 ····················"iopub.status.idle":·"2025-02-13T15:48:19.022807Z",72 ····················"iopub.status.idle":·"2024-01-12T09:47:35.072805Z",
73 ····················"shell.execute_reply":·"2025-02-13T15:48:19.006771Z"73 ····················"shell.execute_reply":·"2024-01-12T09:47:35.056767Z"
74 ················}74 ················}
75 ············},75 ············},
76 ············"outputs":·[76 ············"outputs":·[
77 ················{77 ················{
78 ····················"ename":·"ImportError",78 ····················"ename":·"ImportError",
79 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",79 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
80 ····················"output_type":·"error",80 ····················"output_type":·"error",
Offset 116, 18 lines 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":·"2025-02-13T15:48:19.044486Z",123 ····················"iopub.execute_input":·"2024-01-12T09:47:35.086362Z",
124 ····················"iopub.status.busy":·"2025-02-13T15:48:19.044030Z",124 ····················"iopub.status.busy":·"2024-01-12T09:47:35.085957Z",
125 ····················"iopub.status.idle":·"2025-02-13T15:48:19.407121Z",125 ····················"iopub.status.idle":·"2024-01-12T09:47:35.556802Z",
126 ····················"shell.execute_reply":·"2025-02-13T15:48:19.396599Z"126 ····················"shell.execute_reply":·"2024-01-12T09:47:35.540755Z"
127 ················}127 ················}
128 ············},128 ············},
129 ············"outputs":·[129 ············"outputs":·[
130 ················{130 ················{
131 ····················"ename":·"NameError",131 ····················"ename":·"NameError",
132 ····················"evalue":·"name·'air'·is·not·defined",132 ····················"evalue":·"name·'air'·is·not·defined",
133 ····················"output_type":·"error",133 ····················"output_type":·"error",
Offset 172, 18 lines 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":·"2025-02-13T15:48:19.424860Z",179 ····················"iopub.execute_input":·"2024-01-12T09:47:35.578488Z",
180 ····················"iopub.status.busy":·"2025-02-13T15:48:19.424366Z",180 ····················"iopub.status.busy":·"2024-01-12T09:47:35.578062Z",
181 ····················"iopub.status.idle":·"2025-02-13T15:48:19.483474Z",181 ····················"iopub.status.idle":·"2024-01-12T09:47:35.680804Z",
182 ····················"shell.execute_reply":·"2025-02-13T15:48:19.472569Z"182 ····················"shell.execute_reply":·"2024-01-12T09:47:35.664776Z"
183 ················}183 ················}
184 ············},184 ············},
185 ············"outputs":·[185 ············"outputs":·[
186 ················{186 ················{
187 ····················"ename":·"NameError",187 ····················"ename":·"NameError",
188 ····················"evalue":·"name·'air'·is·not·defined",188 ····················"evalue":·"name·'air'·is·not·defined",
189 ····················"output_type":·"error",189 ····················"output_type":·"error",
Offset 213, 18 lines 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":·"2025-02-13T15:48:19.492619Z",220 ····················"iopub.execute_input":·"2024-01-12T09:47:35.698347Z",
221 ····················"iopub.status.busy":·"2025-02-13T15:48:19.492187Z",221 ····················"iopub.status.busy":·"2024-01-12T09:47:35.697972Z",
222 ····················"iopub.status.idle":·"2025-02-13T15:48:19.583094Z",222 ····················"iopub.status.idle":·"2024-01-12T09:47:35.812831Z",
223 ····················"shell.execute_reply":·"2025-02-13T15:48:19.570764Z"223 ····················"shell.execute_reply":·"2024-01-12T09:47:35.796792Z"
224 ················}224 ················}
225 ············},225 ············},
226 ············"outputs":·[226 ············"outputs":·[
227 ················{227 ················{
228 ····················"ename":·"NameError",228 ····················"ename":·"NameError",
229 ····················"evalue":·"name·'air'·is·not·defined",229 ····················"evalue":·"name·'air'·is·not·defined",
230 ····················"output_type":·"error",230 ····················"output_type":·"error",
Offset 246, 18 lines 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":·"2025-02-13T15:48:19.599006Z",253 ····················"iopub.execute_input":·"2024-01-12T09:47:35.826335Z",
254 ····················"iopub.status.busy":·"2025-02-13T15:48:19.598520Z",254 ····················"iopub.status.busy":·"2024-01-12T09:47:35.825930Z",
255 ····················"iopub.status.idle":·"2025-02-13T15:48:19.982787Z",255 ····················"iopub.status.idle":·"2024-01-12T09:47:36.252852Z",
256 ····················"shell.execute_reply":·"2025-02-13T15:48:19.966736Z"256 ····················"shell.execute_reply":·"2024-01-12T09:47:36.236782Z"
257 ················}257 ················}
258 ············},258 ············},
259 ············"outputs":·[259 ············"outputs":·[
260 ················{260 ················{
261 ····················"ename":·"NameError",261 ····················"ename":·"NameError",
262 ····················"evalue":·"name·'air_weighted'·is·not·defined",262 ····················"evalue":·"name·'air_weighted'·is·not·defined",
263 ····················"output_type":·"error",263 ····················"output_type":·"error",
Offset 288, 18 lines 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":·"2025-02-13T15:48:20.008484Z",295 ····················"iopub.execute_input":·"2024-01-12T09:47:36.278505Z",
296 ····················"iopub.status.busy":·"2025-02-13T15:48:20.007983Z",296 ····················"iopub.status.busy":·"2024-01-12T09:47:36.278067Z",
297 ····················"iopub.status.idle":·"2025-02-13T15:48:20.114752Z",297 ····················"iopub.status.idle":·"2024-01-12T09:47:36.376869Z",
298 ····················"shell.execute_reply":·"2025-02-13T15:48:20.098711Z"298 ····················"shell.execute_reply":·"2024-01-12T09:47:36.360828Z"
299 ················}299 ················}
300 ············},300 ············},
Max diff block lines reached; 177/7888 bytes (2.24%) of diff not shown.
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-12T09:47:47.054870Z', " "'iopub.status.busy': '2024-01-12T09:47:47.054298Z', 'iopub.status.idle': " "'2024-01-12T09:47:51.096950Z', 'shell.execute_reply': " "'2024-01-12T09:47:51.080903Z'}}}}"}
    
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":·"2025-02-13T15:48:26.832369Z",19 ····················"iopub.execute_input":·"2024-01-12T09:47:47.054870Z",
20 ····················"iopub.status.busy":·"2025-02-13T15:48:26.831905Z",20 ····················"iopub.status.busy":·"2024-01-12T09:47:47.054298Z",
21 ····················"iopub.status.idle":·"2025-02-13T15:48:28.503240Z",21 ····················"iopub.status.idle":·"2024-01-12T09:47:51.096950Z",
22 ····················"shell.execute_reply":·"2025-02-13T15:48:28.497230Z"22 ····················"shell.execute_reply":·"2024-01-12T09:47:51.080903Z"
23 ················}23 ················}
24 ············},24 ············},
25 ············"outputs":·[25 ············"outputs":·[
26 ················{26 ················{
27 ····················"ename":·"ImportError",27 ····················"ename":·"ImportError",
28 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",28 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
29 ····················"output_type":·"error",29 ····················"output_type":·"error",
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-12T09:47:58.586810Z', " "'iopub.status.busy': '2024-01-12T09:47:58.586315Z', 'iopub.status.idle': " "'2024-01-12T09:48:03.224868Z', 'shell.execute_reply': " "'2024-01-12T09:48:03.208852Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:48:03.247242Z', 'iopub.status.busy': " "'2024-01-12T09:48:03.246431Z', 'iopub.status.idle': '2024-01-12T09:48:0 […]
    
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":·"2025-02-13T15:48:33.797231Z",26 ····················"iopub.execute_input":·"2024-01-12T09:47:58.586810Z",
27 ····················"iopub.status.busy":·"2025-02-13T15:48:33.796746Z",27 ····················"iopub.status.busy":·"2024-01-12T09:47:58.586315Z",
28 ····················"iopub.status.idle":·"2025-02-13T15:48:36.800291Z",28 ····················"iopub.status.idle":·"2024-01-12T09:48:03.224868Z",
29 ····················"shell.execute_reply":·"2025-02-13T15:48:36.798948Z"29 ····················"shell.execute_reply":·"2024-01-12T09:48:03.208852Z"
30 ················}30 ················}
31 ············},31 ············},
32 ············"outputs":·[],32 ············"outputs":·[],
33 ············"source":·[33 ············"source":·[
34 ················"%matplotlib·inline\n",34 ················"%matplotlib·inline\n",
35 ················"import·numpy·as·np\n",35 ················"import·numpy·as·np\n",
36 ················"import·pandas·as·pd\n",36 ················"import·pandas·as·pd\n",
Offset 50, 18 lines 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":·"2025-02-13T15:48:36.817647Z",57 ····················"iopub.execute_input":·"2024-01-12T09:48:03.247242Z",
58 ····················"iopub.status.busy":·"2025-02-13T15:48:36.816985Z",58 ····················"iopub.status.busy":·"2024-01-12T09:48:03.246431Z",
59 ····················"iopub.status.idle":·"2025-02-13T15:48:37.242307Z",59 ····················"iopub.status.idle":·"2024-01-12T09:48:04.033635Z",
60 ····················"shell.execute_reply":·"2025-02-13T15:48:37.239724Z"60 ····················"shell.execute_reply":·"2024-01-12T09:48:04.025691Z"
61 ················}61 ················}
62 ············},62 ············},
63 ············"outputs":·[63 ············"outputs":·[
64 ················{64 ················{
65 ····················"ename":·"ImportError",65 ····················"ename":·"ImportError",
66 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",66 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
67 ····················"output_type":·"error",67 ····················"output_type":·"error",
Offset 96, 18 lines 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":·"2025-02-13T15:48:37.253875Z",103 ····················"iopub.execute_input":·"2024-01-12T09:48:04.042824Z",
104 ····················"iopub.status.busy":·"2025-02-13T15:48:37.253432Z",104 ····················"iopub.status.busy":·"2024-01-12T09:48:04.042305Z",
105 ····················"iopub.status.idle":·"2025-02-13T15:48:37.308202Z",105 ····················"iopub.status.idle":·"2024-01-12T09:48:04.098346Z",
106 ····················"shell.execute_reply":·"2025-02-13T15:48:37.306714Z"106 ····················"shell.execute_reply":·"2024-01-12T09:48:04.096789Z"
107 ················}107 ················}
108 ············},108 ············},
109 ············"outputs":·[109 ············"outputs":·[
110 ················{110 ················{
111 ····················"ename":·"NameError",111 ····················"ename":·"NameError",
112 ····················"evalue":·"name·'ds'·is·not·defined",112 ····················"evalue":·"name·'ds'·is·not·defined",
113 ····················"output_type":·"error",113 ····················"output_type":·"error",
Offset 129, 18 lines 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":·"2025-02-13T15:48:37.314515Z",136 ····················"iopub.execute_input":·"2024-01-12T09:48:04.106997Z",
137 ····················"iopub.status.busy":·"2025-02-13T15:48:37.314082Z",137 ····················"iopub.status.busy":·"2024-01-12T09:48:04.106457Z",
138 ····················"iopub.status.idle":·"2025-02-13T15:48:37.434765Z",138 ····················"iopub.status.idle":·"2024-01-12T09:48:04.198381Z",
139 ····················"shell.execute_reply":·"2025-02-13T15:48:37.418717Z"139 ····················"shell.execute_reply":·"2024-01-12T09:48:04.196977Z"
140 ················}140 ················}
141 ············},141 ············},
142 ············"outputs":·[142 ············"outputs":·[
143 ················{143 ················{
144 ····················"ename":·"NameError",144 ····················"ename":·"NameError",
145 ····················"evalue":·"name·'month_length'·is·not·defined",145 ····················"evalue":·"name·'month_length'·is·not·defined",
146 ····················"output_type":·"error",146 ····················"output_type":·"error",
Offset 170, 18 lines 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":·"2025-02-13T15:48:37.444779Z",177 ····················"iopub.execute_input":·"2024-01-12T09:48:04.210725Z",
178 ····················"iopub.status.busy":·"2025-02-13T15:48:37.444293Z",178 ····················"iopub.status.busy":·"2024-01-12T09:48:04.210250Z",
179 ····················"iopub.status.idle":·"2025-02-13T15:48:37.538784Z",179 ····················"iopub.status.idle":·"2024-01-12T09:48:04.274377Z",
180 ····················"shell.execute_reply":·"2025-02-13T15:48:37.514694Z"180 ····················"shell.execute_reply":·"2024-01-12T09:48:04.272890Z"
181 ················}181 ················}
182 ············},182 ············},
183 ············"outputs":·[183 ············"outputs":·[
184 ················{184 ················{
185 ····················"ename":·"NameError",185 ····················"ename":·"NameError",
186 ····················"evalue":·"name·'ds_weighted'·is·not·defined",186 ····················"evalue":·"name·'ds_weighted'·is·not·defined",
187 ····················"output_type":·"error",187 ····················"output_type":·"error",
Offset 202, 18 lines 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":·"2025-02-13T15:48:37.548100Z",209 ····················"iopub.execute_input":·"2024-01-12T09:48:04.283143Z",
210 ····················"iopub.status.busy":·"2025-02-13T15:48:37.547611Z",210 ····················"iopub.status.busy":·"2024-01-12T09:48:04.282623Z",
211 ····················"iopub.status.idle":·"2025-02-13T15:48:37.658745Z",211 ····················"iopub.status.idle":·"2024-01-12T09:48:04.354414Z",
212 ····················"shell.execute_reply":·"2025-02-13T15:48:37.638724Z"212 ····················"shell.execute_reply":·"2024-01-12T09:48:04.352846Z"
213 ················}213 ················}
214 ············},214 ············},
215 ············"outputs":·[215 ············"outputs":·[
216 ················{216 ················{
217 ····················"ename":·"NameError",217 ····················"ename":·"NameError",
218 ····················"evalue":·"name·'ds'·is·not·defined",218 ····················"evalue":·"name·'ds'·is·not·defined",
219 ····················"output_type":·"error",219 ····················"output_type":·"error",
Offset 236, 18 lines 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":·"2025-02-13T15:48:37.668516Z",243 ····················"iopub.execute_input":·"2024-01-12T09:48:04.370796Z",
244 ····················"iopub.status.busy":·"2025-02-13T15:48:37.668025Z",244 ····················"iopub.status.busy":·"2024-01-12T09:48:04.370303Z",
245 ····················"iopub.status.idle":·"2025-02-13T15:48:37.814728Z",245 ····················"iopub.status.idle":·"2024-01-12T09:48:04.510793Z",
246 ····················"shell.execute_reply":·"2025-02-13T15:48:37.806698Z"246 ····················"shell.execute_reply":·"2024-01-12T09:48:04.509232Z"
247 ················}247 ················}
248 ············},248 ············},
Max diff block lines reached; 1376/8991 bytes (15.30%) of diff not shown.
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-12T09:48:13.327281Z', " "'iopub.status.busy': '2024-01-12T09:48:13.326616Z', 'iopub.status.idle': " "'2024-01-12T09:48:16.364923Z', 'shell.execute_reply': " "'2024-01-12T09:48:16.348841Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:48:16.391231Z', 'iopub.status.busy': " "'2024-01-12T09:48:16.390403Z', 'iopub.status.idle': '2024-01-12T09:48:1 […]
    
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":·"2025-02-13T15:48:42.610474Z",23 ····················"iopub.execute_input":·"2024-01-12T09:48:13.327281Z",
24 ····················"iopub.status.busy":·"2025-02-13T15:48:42.609993Z",24 ····················"iopub.status.busy":·"2024-01-12T09:48:13.326616Z",
25 ····················"iopub.status.idle":·"2025-02-13T15:48:44.771293Z",25 ····················"iopub.status.idle":·"2024-01-12T09:48:16.364923Z",
26 ····················"shell.execute_reply":·"2025-02-13T15:48:44.763964Z"26 ····················"shell.execute_reply":·"2024-01-12T09:48:16.348841Z"
27 ················}27 ················}
28 ············},28 ············},
29 ············"outputs":·[],29 ············"outputs":·[],
30 ············"source":·[30 ············"source":·[
31 ················"%matplotlib·inline\n",31 ················"%matplotlib·inline\n",
32 ················"import·numpy·as·np\n",32 ················"import·numpy·as·np\n",
33 ················"import·pandas·as·pd\n",33 ················"import·pandas·as·pd\n",
Offset 48, 18 lines 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":·"2025-02-13T15:48:44.796744Z",55 ····················"iopub.execute_input":·"2024-01-12T09:48:16.391231Z",
56 ····················"iopub.status.busy":·"2025-02-13T15:48:44.796073Z",56 ····················"iopub.status.busy":·"2024-01-12T09:48:16.390403Z",
57 ····················"iopub.status.idle":·"2025-02-13T15:48:45.273547Z",57 ····················"iopub.status.idle":·"2024-01-12T09:48:17.344983Z",
58 ····················"shell.execute_reply":·"2025-02-13T15:48:45.265057Z"58 ····················"shell.execute_reply":·"2024-01-12T09:48:17.328850Z"
59 ················}59 ················}
60 ············},60 ············},
61 ············"outputs":·[61 ············"outputs":·[
62 ················{62 ················{
63 ····················"ename":·"ImportError",63 ····················"ename":·"ImportError",
64 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",64 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
65 ····················"output_type":·"error",65 ····················"output_type":·"error",
Offset 93, 18 lines 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":·"2025-02-13T15:48:45.288866Z",100 ····················"iopub.execute_input":·"2024-01-12T09:48:17.374861Z",
101 ····················"iopub.status.busy":·"2025-02-13T15:48:45.288421Z",101 ····················"iopub.status.busy":·"2024-01-12T09:48:17.374376Z",
102 ····················"iopub.status.idle":·"2025-02-13T15:48:45.336284Z",102 ····················"iopub.status.idle":·"2024-01-12T09:48:17.492965Z",
103 ····················"shell.execute_reply":·"2025-02-13T15:48:45.334832Z"103 ····················"shell.execute_reply":·"2024-01-12T09:48:17.476891Z"
104 ················}104 ················}
105 ············},105 ············},
106 ············"outputs":·[106 ············"outputs":·[
107 ················{107 ················{
108 ····················"ename":·"NameError",108 ····················"ename":·"NameError",
109 ····················"evalue":·"name·'ds'·is·not·defined",109 ····················"evalue":·"name·'ds'·is·not·defined",
110 ····················"output_type":·"error",110 ····················"output_type":·"error",
Offset 135, 18 lines 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":·"2025-02-13T15:48:45.345164Z",142 ····················"iopub.execute_input":·"2024-01-12T09:48:17.522722Z",
143 ····················"iopub.status.busy":·"2025-02-13T15:48:45.344687Z",143 ····················"iopub.status.busy":·"2024-01-12T09:48:17.522214Z",
144 ····················"iopub.status.idle":·"2025-02-13T15:48:46.143331Z",144 ····················"iopub.status.idle":·"2024-01-12T09:48:19.246364Z",
145 ····················"shell.execute_reply":·"2025-02-13T15:48:46.137614Z"145 ····················"shell.execute_reply":·"2024-01-12T09:48:19.244846Z"
146 ················}146 ················}
147 ············},147 ············},
148 ············"outputs":·[148 ············"outputs":·[
149 ················{149 ················{
150 ····················"ename":·"NameError",150 ····················"ename":·"NameError",
151 ····················"evalue":·"name·'ds'·is·not·defined",151 ····················"evalue":·"name·'ds'·is·not·defined",
152 ····················"output_type":·"error",152 ····················"output_type":·"error",
Offset 188, 18 lines 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":·"2025-02-13T15:48:46.161375Z",195 ····················"iopub.execute_input":·"2024-01-12T09:48:19.260381Z",
196 ····················"iopub.status.busy":·"2025-02-13T15:48:46.160882Z",196 ····················"iopub.status.busy":·"2024-01-12T09:48:19.259849Z",
197 ····················"iopub.status.idle":·"2025-02-13T15:48:46.239771Z",197 ····················"iopub.status.idle":·"2024-01-12T09:48:19.326496Z",
198 ····················"shell.execute_reply":·"2025-02-13T15:48:46.232702Z"198 ····················"shell.execute_reply":·"2024-01-12T09:48:19.324915Z"
199 ················}199 ················}
200 ············},200 ············},
201 ············"outputs":·[201 ············"outputs":·[
202 ················{202 ················{
203 ····················"ename":·"NameError",203 ····················"ename":·"NameError",
204 ····················"evalue":·"name·'ds'·is·not·defined",204 ····················"evalue":·"name·'ds'·is·not·defined",
205 ····················"output_type":·"error",205 ····················"output_type":·"error",
Offset 227, 18 lines 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":·"2025-02-13T15:48:46.256616Z",234 ····················"iopub.execute_input":·"2024-01-12T09:48:19.346839Z",
235 ····················"iopub.status.busy":·"2025-02-13T15:48:46.256165Z",235 ····················"iopub.status.busy":·"2024-01-12T09:48:19.346316Z",
236 ····················"iopub.status.idle":·"2025-02-13T15:48:46.552220Z",236 ····················"iopub.status.idle":·"2024-01-12T09:48:19.794573Z",
237 ····················"shell.execute_reply":·"2025-02-13T15:48:46.548794Z"237 ····················"shell.execute_reply":·"2024-01-12T09:48:19.792857Z"
238 ················}238 ················}
239 ············},239 ············},
240 ············"outputs":·[240 ············"outputs":·[
241 ················{241 ················{
242 ····················"ename":·"NameError",242 ····················"ename":·"NameError",
243 ····················"evalue":·"name·'ds'·is·not·defined",243 ····················"evalue":·"name·'ds'·is·not·defined",
244 ····················"output_type":·"error",244 ····················"output_type":·"error",
Offset 285, 18 lines 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":·"2025-02-13T15:48:46.577553Z",292 ····················"iopub.execute_input":·"2024-01-12T09:48:19.810619Z",
293 ····················"iopub.status.busy":·"2025-02-13T15:48:46.577008Z",293 ····················"iopub.status.busy":·"2024-01-12T09:48:19.810115Z",
294 ····················"iopub.status.idle":·"2025-02-13T15:48:46.694820Z",294 ····················"iopub.status.idle":·"2024-01-12T09:48:19.894444Z",
295 ····················"shell.execute_reply":·"2025-02-13T15:48:46.678805Z"295 ····················"shell.execute_reply":·"2024-01-12T09:48:19.892807Z"
296 ················}296 ················}
297 ············},297 ············},
Max diff block lines reached; 166/7873 bytes (2.11%) of diff not shown.
3.64 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_3283687/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_1285013/2946363816.py:1:·DeprecationWarning:·open_rasterio·is·Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:·https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html
582 ··da·=·xr.tutorial.open_rasterio(&#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_3283687/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_1285013/3653941964.py:4:·DeprecationWarning:·open_rasterio·is·Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:·https://corteva.github.io/rioxarray/stable/getting_started/getting_started.html
665 ··da·=·xr.tutorial.open_rasterio(&#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.7 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_3283687/2946363816.py:1:·DeprecationWarning:·open_rasterio·is216 /tmp/ipykernel_1285013/2946363816.py:1:·DeprecationWarning:·open_rasterio·is
217 Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:217 Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:
218 https://corteva.github.io/rioxarray/stable/getting_started/getting_started.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_3283687/3653941964.py:4:·DeprecationWarning:·open_rasterio·is289 /tmp/ipykernel_1285013/3653941964.py:4:·DeprecationWarning:·open_rasterio·is
290 Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:290 Deprecated·in·favor·of·rioxarray.·For·information·about·transitioning,·see:
291 https://corteva.github.io/rioxarray/stable/getting_started/getting_started.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-12T09:48:28.938775Z', " "'iopub.status.busy': '2024-01-12T09:48:28.938205Z', 'iopub.status.idle': " "'2024-01-12T09:48:33.882079Z', 'shell.execute_reply': " "'2024-01-12T09:48:33.880802Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-12T09:48:33.892895Z', 'iopub.status.busy': " "'2024-01-12T09:48:33.892139Z', 'iopub.status.idle': '2024-01-12T09:48:3 […]
    
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":·"2025-02-13T15:48:56.452405Z",17 ····················"iopub.execute_input":·"2024-01-12T09:48:28.938775Z",
18 ····················"iopub.status.busy":·"2025-02-13T15:48:56.451926Z",18 ····················"iopub.status.busy":·"2024-01-12T09:48:28.938205Z",
19 ····················"iopub.status.idle":·"2025-02-13T15:48:59.200189Z",19 ····················"iopub.status.idle":·"2024-01-12T09:48:33.882079Z",
20 ····················"shell.execute_reply":·"2025-02-13T15:48:59.198740Z"20 ····················"shell.execute_reply":·"2024-01-12T09:48:33.880802Z"
21 ················}21 ················}
22 ············},22 ············},
23 ············"outputs":·[],23 ············"outputs":·[],
24 ············"source":·[24 ············"source":·[
25 ················"import·cartopy.crs·as·ccrs\n",25 ················"import·cartopy.crs·as·ccrs\n",
26 ················"import·matplotlib.pyplot·as·plt\n",26 ················"import·matplotlib.pyplot·as·plt\n",
27 ················"import·xarray·as·xr\n",27 ················"import·xarray·as·xr\n",
Offset 37, 18 lines 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":·"2025-02-13T15:48:59.212705Z",44 ····················"iopub.execute_input":·"2024-01-12T09:48:33.892895Z",
45 ····················"iopub.status.busy":·"2025-02-13T15:48:59.212032Z",45 ····················"iopub.status.busy":·"2024-01-12T09:48:33.892139Z",
46 ····················"iopub.status.idle":·"2025-02-13T15:49:00.046763Z",46 ····················"iopub.status.idle":·"2024-01-12T09:48:34.530865Z",
47 ····················"shell.execute_reply":·"2025-02-13T15:49:00.030728Z"47 ····················"shell.execute_reply":·"2024-01-12T09:48:34.529325Z"
48 ················}48 ················}
49 ············},49 ············},
50 ············"outputs":·[50 ············"outputs":·[
51 ················{51 ················{
52 ····················"ename":·"ImportError",52 ····················"ename":·"ImportError",
53 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",53 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
54 ····················"output_type":·"error",54 ····················"output_type":·"error",
Offset 85, 18 lines 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":·"2025-02-13T15:49:00.068488Z",92 ····················"iopub.execute_input":·"2024-01-12T09:48:34.547010Z",
93 ····················"iopub.status.busy":·"2025-02-13T15:49:00.068029Z",93 ····················"iopub.status.busy":·"2024-01-12T09:48:34.546511Z",
94 ····················"iopub.status.idle":·"2025-02-13T15:49:00.194740Z",94 ····················"iopub.status.idle":·"2024-01-12T09:48:34.612128Z",
95 ····················"shell.execute_reply":·"2025-02-13T15:49:00.178708Z"95 ····················"shell.execute_reply":·"2024-01-12T09:48:34.606975Z"
96 ················}96 ················}
97 ············},97 ············},
98 ············"outputs":·[98 ············"outputs":·[
99 ················{99 ················{
100 ····················"ename":·"NameError",100 ····················"ename":·"NameError",
101 ····················"evalue":·"name·'ds'·is·not·defined",101 ····················"evalue":·"name·'ds'·is·not·defined",
102 ····················"output_type":·"error",102 ····················"output_type":·"error",
Offset 138, 18 lines 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":·"2025-02-13T15:49:00.220520Z",145 ····················"iopub.execute_input":·"2024-01-12T09:48:34.630608Z",
146 ····················"iopub.status.busy":·"2025-02-13T15:49:00.220074Z",146 ····················"iopub.status.busy":·"2024-01-12T09:48:34.630097Z",
147 ····················"iopub.status.idle":·"2025-02-13T15:49:00.350799Z",147 ····················"iopub.status.idle":·"2024-01-12T09:48:34.718426Z",
148 ····················"shell.execute_reply":·"2025-02-13T15:49:00.334717Z"148 ····················"shell.execute_reply":·"2024-01-12T09:48:34.716885Z"
149 ················}149 ················}
150 ············},150 ············},
151 ············"outputs":·[151 ············"outputs":·[
152 ················{152 ················{
153 ····················"ename":·"NameError",153 ····················"ename":·"NameError",
154 ····················"evalue":·"name·'ds'·is·not·defined",154 ····················"evalue":·"name·'ds'·is·not·defined",
155 ····················"output_type":·"error",155 ····················"output_type":·"error",
Offset 202, 18 lines 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":·"2025-02-13T15:49:00.368479Z",209 ····················"iopub.execute_input":·"2024-01-12T09:48:34.731627Z",
210 ····················"iopub.status.busy":·"2025-02-13T15:49:00.368040Z",210 ····················"iopub.status.busy":·"2024-01-12T09:48:34.731203Z",
211 ····················"iopub.status.idle":·"2025-02-13T15:49:00.498756Z",211 ····················"iopub.status.idle":·"2024-01-12T09:48:34.832387Z",
212 ····················"shell.execute_reply":·"2025-02-13T15:49:00.482703Z"212 ····················"shell.execute_reply":·"2024-01-12T09:48:34.820874Z"
213 ················}213 ················}
214 ············},214 ············},
215 ············"outputs":·[215 ············"outputs":·[
216 ················{216 ················{
217 ····················"ename":·"NameError",217 ····················"ename":·"NameError",
218 ····················"evalue":·"name·'ds'·is·not·defined",218 ····················"evalue":·"name·'ds'·is·not·defined",
219 ····················"output_type":·"error",219 ····················"output_type":·"error",
Offset 258, 18 lines 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":·"2025-02-13T15:49:00.520376Z",265 ····················"iopub.execute_input":·"2024-01-12T09:48:34.847430Z",
266 ····················"iopub.status.busy":·"2025-02-13T15:49:00.519938Z",266 ····················"iopub.status.busy":·"2024-01-12T09:48:34.846701Z",
267 ····················"iopub.status.idle":·"2025-02-13T15:49:00.642777Z",267 ····················"iopub.status.idle":·"2024-01-12T09:48:34.981050Z",
268 ····················"shell.execute_reply":·"2025-02-13T15:49:00.626673Z"268 ····················"shell.execute_reply":·"2024-01-12T09:48:34.964907Z"
269 ················}269 ················}
270 ············},270 ············},
271 ············"outputs":·[271 ············"outputs":·[
272 ················{272 ················{
273 ····················"ename":·"NameError",273 ····················"ename":·"NameError",
274 ····················"evalue":·"name·'ds'·is·not·defined",274 ····················"evalue":·"name·'ds'·is·not·defined",
275 ····················"output_type":·"error",275 ····················"output_type":·"error",
Offset 320, 26 lines 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":·"2025-02-13T15:49:00.668325Z",327 ····················"iopub.execute_input":·"2024-01-12T09:48:34.995683Z",
328 ····················"iopub.status.busy":·"2025-02-13T15:49:00.667893Z",328 ····················"iopub.status.busy":·"2024-01-12T09:48:34.995216Z",
329 ····················"iopub.status.idle":·"2025-02-13T15:49:01.146790Z",329 ····················"iopub.status.idle":·"2024-01-12T09:48:35.360484Z",
330 ····················"shell.execute_reply":·"2025-02-13T15:49:01.130734Z"330 ····················"shell.execute_reply":·"2024-01-12T09:48:35.358695Z"
331 ················}331 ················}
332 ············},332 ············},
Max diff block lines reached; 2897/9848 bytes (29.42%) of diff not shown.
49.8 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-60844c0c-d88b-438a-b459-954842e7f696'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-60844c0c-d88b-438a-b459-954842e7f696'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·cfda551e348ee0d24ce31c9fb1c129d2e6d383b225d3f986d27449b6183cb6a1·...·]'·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-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·240979ccded080936a08150c9a6204f21b7ead3b93bd475c89a94be9b3c43c29·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([&#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-3f2ed858-0396-4504-ac1b-a3d7f995366c'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-3f2ed858-0396-4504-ac1b-a3d7f995366c'·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:·becc24f335db317eb604701feee897a2bd556d30e4b2ca290818a2465d354c0f·...·]'·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-e1551431-30d7-4e4e-8453-472687f202bf'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-e1551431-30d7-4e4e-8453-472687f202bf'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·7dbdcdc157dfe70269a3e310a5cdaa8c76f2ee9f3957a766f2c36ce6004aa43d·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201],
716 ·······[·-9.34115662,··-6.55807323,···0.13203714],716 ·······[·-9.34115662,··-6.55807323,···0.13203714],
717 ·······[-12.13971902,··-6.14641918,··-1.06187252],717 ·······[-12.13971902,··-6.14641918,··-1.06187252],
718 ·······...,718 ·······...,
719 ·······[·-5.34723825,·-13.37459826,··-4.93221199],719 ·······[·-5.34723825,·-13.37459826,··-4.93221199],
720 ·······[·-2.67283594,··-5.18072141,··-4.11567869],720 ·······[·-2.67283594,··-5.18072141,··-4.11567869],
721 ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-0a4a734f-a5fc-456e-8694-ebb6a17a39a6'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0a4a734f-a5fc-456e-8694-ebb6a17a39a6'·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:·a0ff0d18ee3224cadaa5585b3b4f1849edc713496bf7a66233524365f570f76d·...·]'·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-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·94e46468436b897095074362ceb0726a90c672ea4e24fa3ef469da83e011d1de·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382],
722 ·······[·0.44785582,··6.37271154,··4.8434966·],722 ·······[·0.44785582,··6.37271154,··4.8434966·],
723 ·······[·5.32269851,··6.25176289,··5.98033045],723 ·······[·5.32269851,··6.25176289,··5.98033045],
724 ·······...,724 ·······...,
725 ·······[·6.73078492,··7.74795302,··8.04569651],725 ·······[·6.73078492,··7.74795302,··8.04569651],
726 ·······[·6.46376911,··6.31695352,··1.55799171],726 ·······[·6.46376911,··6.31695352,··1.55799171],
727 ·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-a6c74fe7-0b99-4111-af18-4c9e9559d1df'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-a6c74fe7-0b99-4111-af18-4c9e9559d1df'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·dea57613fc8bb4f1bdc0d7e9f005ad3bf5384f733d1665c006df5d9c6bdc97a4·...·]'·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-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·1cc01914148f7ae7f1ff133d44ffb1a67be705cca1d7d12fbb786cc77323dbdb·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex([&#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-fe9f5183-5e6c-47d8-8e1a-96db9702bd62'·class='xr-index-data-in'·type='checkbox'/><label·for='index-fe9f5183-5e6c-47d8-8e1a-96db9702bd62'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·9ac089032c7e8f90a611b907d47e78eb73d7c317d5eda94f4aee97a4dc754271·...·]'·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-7019bfb3-f205-4f9c-b19e-ed4840061e73'·class='xr-index-data-in'·type='checkbox'/><label·for='index-7019bfb3-f205-4f9c-b19e-ed4840061e73'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·8f9c7299a66a27e3de4230f7f312cc4f0007d7ffbc993ee6e0ab8b0d309b8753·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div>
735 </div>735 </div>
736 <section·id="Examine-a-dataset-with-pandas-and-seaborn">736 <section·id="Examine-a-dataset-with-pandas-and-seaborn">
737 <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Permalink·to·this·heading">¶</a></h2>737 <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Permalink·to·this·heading">¶</a></h2>
738 <section·id="Convert-to-a-pandas-DataFrame">738 <section·id="Convert-to-a-pandas-DataFrame">
739 <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Permalink·to·this·heading">¶</a></h3>739 <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Permalink·to·this·heading">¶</a></h3>
740 <div·class="nbinput·docutils·container">740 <div·class="nbinput·docutils·container">
741 <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]:741 <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]:
Offset 932, 15 lines 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·0x7f79de890850&gt;939 &lt;seaborn.axisgrid.PairGrid·at·0x7f00ce57a690&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-e07860ee-c65a-4148-930a-72d20e9adafe'·class='xr-array-in'·type='checkbox'·checked><label·for='section-e07860ee-c65a-4148-930a-72d20e9adafe'·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-bfbc1a04-bb49-4239-b8b2-835699ad0538'·class='xr-array-in'·type='checkbox'·checked><label·for='section-bfbc1a04-bb49-4239-b8b2-835699ad0538'·title='Show/hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-array-preview·xr-preview'><span>0.9516·0.8871·0.9355·0.8421·0.7193·...·0.2333·0.9355·0.8548·0.8226</span></div><div·class='xr-array-data'><pre>array([[0.9516129·,·0.88709677,·0.93548387],
1346 ·······[0.84210526,·0.71929825,·0.77192982],1346 ·······[0.84210526,·0.71929825,·0.77192982],
1347 ·······[0.24193548,·0.12903226,·0.16129032],1347 ·······[0.24193548,·0.12903226,·0.16129032],
1348 ·······[0.········,·0.········,·0.········],1348 ·······[0.········,·0.········,·0.········],
1349 ·······[0.········,·0.········,·0.········],1349 ·······[0.········,·0.········,·0.········],
1350 ·······[0.········,·0.········,·0.········],1350 ·······[0.········,·0.········,·0.········],
1351 ·······[0.········,·0.········,·0.········],1351 ·······[0.········,·0.········,·0.········],
1352 ·······[0.········,·0.········,·0.········],1352 ·······[0.········,·0.········,·0.········],
1353 ·······[0.········,·0.········,·0.········],1353 ·······[0.········,·0.········,·0.········],
1354 ·······[0.········,·0.01612903,·0.········],1354 ·······[0.········,·0.01612903,·0.········],
1355 ·······[0.33333333,·0.35······,·0.23333333],1355 ·······[0.33333333,·0.35······,·0.23333333],
1356 ·······[0.93548387,·0.85483871,·0.82258065]])</pre></div></div></li><li·class='xr-section-item'><input·id='section-f68cf9dc-4f95-4c7d-98c0-e67825e04f64'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-f68cf9dc-4f95-4c7d-98c0-e67825e04f64'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3721,·SHA:·ffa0856d716dbbee85e6352e01e7e249be3acdec62161509417dba1d16cf856b·...·]'·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-4f1199be-6436-4ed9-863f-3f766c8492f6'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-4f1199be-6436-4ed9-863f-3f766c8492f6'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3721,·SHA:·ea4753a6a8d4d40f3e96e3abbb6586b9f77ba745c5379cdcaa62d1e029520664·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div>
1357 </div>1357 </div>
1358 <div·class="nbinput·docutils·container">1358 <div·class="nbinput·docutils·container">
1359 <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[7]:1359 <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[7]:
1360 </pre></div>1360 </pre></div>
1361 </div>1361 </div>
1362 <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">freeze</span><span·class="o">.</span><span·class="n">to_pandas</span><span·class="p">()</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span>1362 <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">freeze</span><span·class="o">.</span><span·class="n">to_pandas</span><span·class="p">()</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span>
1363 </pre></div>1363 </pre></div>
Offset 1863, 18 lines 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-02d69cf3-6f39-432f-b70d-6be0b771ff4c'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-02d69cf3-6f39-432f-b70d-6be0b771ff4c'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·bf98696767915c851516b2c9eb12bc7dbc0caa364bafeb7a7d3e1445a8ae8196·...·]'·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-215da39f-2e50-4841-a9f6-21849426f680'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-215da39f-2e50-4841-a9f6-21849426f680'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·51c54430f57b5a737286d4dd4821b8c12aac98a2650dbd56c05e8a563f4d774e·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([&#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-0f71b929-e3a3-450e-9907-2ea1d80aaf7d'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0f71b929-e3a3-450e-9907-2ea1d80aaf7d'·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:·df5f7fa4e1f6e1ebfd8b5d5457f49425962a6abb9c3064538ad8bc21757f189e·...·]'·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-3fba73de-40b0-46cd-acaa-8d316df1f784'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-3fba73de-40b0-46cd-acaa-8d316df1f784'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1112,·SHA:·1ffea3ef9e628245c10788929d29f574316b4bade3d4c217e5e5d8672280cfdc·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([·1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,
1874 ········1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··2,··2,··2,1874 ········1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··1,··2,··2,··2,
1875 ········2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,1875 ········2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,··2,
1876 ········2,··2,··2,··2,··2,··2,··2,··2,··2,··3,··3,··3,··3,··3,··3,··3,··3,1876 ········2,··2,··2,··2,··2,··2,··2,··2,··2,··3,··3,··3,··3,··3,··3,··3,··3,
1877 ········3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,1877 ········3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,··3,
1878 ········3,··3,··3,··3,··3,··3,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,1878 ········3,··3,··3,··3,··3,··3,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,
1879 ········4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,1879 ········4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,··4,
1880 ········4,··4,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,1880 ········4,··4,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,··5,
Offset 1906, 34 lines modifiedOffset 1906, 34 lines modified
1906 ········8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··9,··9,··9,1906 ········8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··8,··9,··9,··9,
1907 ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,1907 ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,··9,
1908 ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10,1908 ········9,··9,··9,··9,··9,··9,··9,··9,··9,··9,·10,·10,·10,·10,·10,·10,·10,
1909 ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,1909 ·······10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,·10,
1910 ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,1910 ·······10,·10,·10,·10,·10,·10,·10,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,
1911 ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,1911 ·······11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,·11,
1912 ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,1912 ·······11,·11,·11,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,
1913 ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-5aaa5ff5-517c-4be5-94de-44172330df09'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-5aaa5ff5-517c-4be5-94de-44172330df09'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·397353d7952bb3571961be7adea593eb0ae2b27753533fa1c2de7baf55b37f42·...·]'·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 ·······12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12,·12])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-f6bbbed7-2062-4bc1-b822-ebc25e98bdb0'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-f6bbbed7-2062-4bc1-b822-ebc25e98bdb0'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·d4ab9a9211c38f7313ef376a7a8d3de42b557837f017d429f33dcb74c7d03b38·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·········nan,··········nan,··········nan],
1914 ·······[·········nan,··········nan,··········nan],1914 ·······[·········nan,··········nan,··········nan],
1915 ·······[·········nan,··········nan,··········nan],1915 ·······[·········nan,··········nan,··········nan],
1916 ·······...,1916 ·······...,
1917 ·······[·-5.34723825,·-13.37459826,··-4.93221199],1917 ·······[·-5.34723825,·-13.37459826,··-4.93221199],
1918 ·······[·-2.67283594,··-5.18072141,··-4.11567869],1918 ·······[·-2.67283594,··-5.18072141,··-4.11567869],
1919 ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>filled</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>-5.163·-4.216·...·-1.346·-4.544</div><input·id='attrs-5c8e24d4-2370-4407-8bda-942e4d09a99e'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-5c8e24d4-2370-4407-8bda-942e4d09a99e'·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:·c7dd1290f8ef092b927524175790118e549483b8e18645be39455ef9c2325468·...·]'·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-0ae7ff8e-4f51-47df-974c-54f324f7ae15'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0ae7ff8e-4f51-47df-974c-54f324f7ae15'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·09839838268921767ed3f25c6b27a64425a4958eefd22a1d365486ac03d3550f·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-5.16274935,··-4.21616663,··-4.68137385],
1920 ·······[·-5.16274935,··-4.21616663,··-4.68137385],1920 ·······[·-5.16274935,··-4.21616663,··-4.68137385],
1921 ·······[·-5.16274935,··-4.21616663,··-4.68137385],1921 ·······[·-5.16274935,··-4.21616663,··-4.68137385],
1922 ·······...,1922 ·······...,
1923 ·······[·-5.34723825,·-13.37459826,··-4.93221199],1923 ·······[·-5.34723825,·-13.37459826,··-4.93221199],
1924 ·······[·-2.67283594,··-5.18072141,··-4.11567869],1924 ·······[·-2.67283594,··-5.18072141,··-4.11567869],
1925 ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-1316a781-5a35-411c-be40-39d9b2b0392f'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-1316a781-5a35-411c-be40-39d9b2b0392f'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·330,·SHA:·f90c622f1fda692d1fc73cf05fc32a5d0d93ca8162c72f9a38951dc8ae175475·...·]8'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex([&#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-da78fcf0-fdd1-4fd9-a01b-8b5fcf53d2d8'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-da78fcf0-fdd1-4fd9-a01b-8b5fcf53d2d8'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·330,·SHA:·bc5002807ebf2f3b3b4dba3ab652d6b71d2edd853aefd436126ab364a067aa6e·...·]8'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex([&#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-154ca03d-8235-4546-a181-ee2eab476ae0'·class='xr-index-data-in'·type='checkbox'/><label·for='index-154ca03d-8235-4546-a181-ee2eab476ae0'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·f47576f35c1c51f8178b2bf2b25a13892dda9a465dbd07c430ec54ca6d73a8a5·...·]'·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-b441f729-7786-4e00-8fe6-30e275eeff1e'·class='xr-index-data-in'·type='checkbox'/><label·for='index-b441f729-7786-4e00-8fe6-30e275eeff1e'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·69600bfcad5d1655e628c8b2ea62119c6800915cd7ea28e59292e270ca35e558·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div>
Max diff block lines reached; 1040/50353 bytes (2.07%) of diff not shown.
500 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·0x7f79de890850>163 <seaborn.axisgrid.PairGrid·at·0x7f00ce57a690>
164 [../_images/examples_weather-data_9_1.png]164 [../_images/examples_weather-data_9_1.png]
  
165 *****·Probability·of·freeze·by·calendar·month¶·*****165 *****·Probability·of·freeze·by·calendar·month¶·*****
166 [6]:166 [6]:
167 freeze·=·(ds["tmin"]·<=·0).groupby("time.month").mean("time")167 freeze·=·(ds["tmin"]·<=·0).groupby("time.month").mean("time")
168 freeze168 freeze
169 [6]:169 [6]:
66.4 KB
./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz
66.2 KB
weather-data.ipynb
66.2 KB
Pretty-printed
Similarity: 0.9992323118860381% Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2024-01-12T09:48:44.386940Z', " "'iopub.status.busy': '2024-01-12T09:48:44.386362Z', 'iopub.status.idle': " "'2024-01-12T09:48:50.068914Z', 'shell.execute_reply': " "'2024-01-12T09:48:50.052867Z'}}, '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":·"2025-02-13T15:49:07.544537Z",22 ····················"iopub.execute_input":·"2024-01-12T09:48:44.386940Z",
23 ····················"iopub.status.busy":·"2025-02-13T15:49:07.544003Z",23 ····················"iopub.status.busy":·"2024-01-12T09:48:44.386362Z",
24 ····················"iopub.status.idle":·"2025-02-13T15:49:10.298408Z",24 ····················"iopub.status.idle":·"2024-01-12T09:48:50.068914Z",
25 ····················"shell.execute_reply":·"2025-02-13T15:49:10.297219Z"25 ····················"shell.execute_reply":·"2024-01-12T09:48:50.052867Z"
26 ················}26 ················}
27 ············},27 ············},
28 ············"outputs":·[28 ············"outputs":·[
29 ················{29 ················{
30 ····················"data":·{30 ····················"data":·{
31 ························"text/html":·[31 ························"text/html":·[
32 ····························"<div><svg·style=\"position:·absolute;·width:·0;·height:·0;·overflow:·hidden\">\n",32 ····························"<div><svg·style=\"position:·absolute;·width:·0;·height:·0;·overflow:·hidden\">\n",
Offset 395, 37 lines 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-60844c0c-d88b-438a-b459-954842e7f696'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-60844c0c-d88b-438a-b459-954842e7f696'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·cfda551e348ee0d24ce31c9fb1c129d2e6d383b225d3f986d27449b6183cb6a1·...·]'·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-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-5370da59-23b9-4e08-9877-fc2b49dc59c6'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·240979ccded080936a08150c9a6204f21b7ead3b93bd475c89a94be9b3c43c29·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([&#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-3f2ed858-0396-4504-ac1b-a3d7f995366c'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-3f2ed858-0396-4504-ac1b-a3d7f995366c'·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:·becc24f335db317eb604701feee897a2bd556d30e4b2ca290818a2465d354c0f·...·]'·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-e1551431-30d7-4e4e-8453-472687f202bf'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-e1551431-30d7-4e4e-8453-472687f202bf'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·7dbdcdc157dfe70269a3e310a5cdaa8c76f2ee9f3957a766f2c36ce6004aa43d·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201],\n",
406 ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n",406 ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n",
407 ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n",407 ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n",
408 ····························"·······...,\n",408 ····························"·······...,\n",
409 ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n",409 ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n",
410 ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n",410 ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n",
411 ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-0a4a734f-a5fc-456e-8694-ebb6a17a39a6'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-0a4a734f-a5fc-456e-8694-ebb6a17a39a6'·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:·a0ff0d18ee3224cadaa5585b3b4f1849edc713496bf7a66233524365f570f76d·...·]'·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-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-cf2d87ee-84a7-4b1b-88b0-e322133f49bb'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·94e46468436b897095074362ceb0726a90c672ea4e24fa3ef469da83e011d1de·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382],\n",
412 ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n",412 ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n",
413 ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n",413 ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n",
414 ····························"·······...,\n",414 ····························"·······...,\n",
415 ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n",415 ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n",
416 ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n",416 ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n",
417 ····························"·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-a6c74fe7-0b99-4111-af18-4c9e9559d1df'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-a6c74fe7-0b99-4111-af18-4c9e9559d1df'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·dea57613fc8bb4f1bdc0d7e9f005ad3bf5384f733d1665c006df5d9c6bdc97a4·...·]'·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-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-1302dfa6-5bfe-42fd-a263-4d6edfb28afe'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·1cc01914148f7ae7f1ff133d44ffb1a67be705cca1d7d12fbb786cc77323dbdb·...·]'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-index-data'><pre>PandasIndex(DatetimeIndex([&#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-fe9f5183-5e6c-47d8-8e1a-96db9702bd62'·class='xr-index-data-in'·type='checkbox'/><label·for='index-fe9f5183-5e6c-47d8-8e1a-96db9702bd62'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·9ac089032c7e8f90a611b907d47e78eb73d7c317d5eda94f4aee97a4dc754271·...·]'·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-7019bfb3-f205-4f9c-b19e-ed4840061e73'·class='xr-index-data-in'·type='checkbox'/><label·for='index-7019bfb3-f205-4f9c-b19e-ed4840061e73'·title='Show/Hide·index·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><di[·...·truncated·by·diffoscope;·len:·380,·SHA:·8f9c7299a66a27e3de4230f7f312cc4f0007d7ffbc993ee6e0ab8b0d309b8753·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div>"
425 ························],425 ························],
426 ························"text/plain":·[426 ························"text/plain":·[
427 ····························"<xarray.Dataset>\n",427 ····························"<xarray.Dataset>\n",
428 ····························"Dimensions:···(time:·731,·location:·3)\n",428 ····························"Dimensions:···(time:·731,·location:·3)\n",
429 ····························"Coordinates:\n",429 ····························"Coordinates:\n",
430 ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n",430 ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n",
431 ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n",431 ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n",
Offset 487, 18 lines 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":·"2025-02-13T15:49:10.317091Z",494 ····················"iopub.execute_input":·"2024-01-12T09:48:50.095728Z",
495 ····················"iopub.status.busy":·"2025-02-13T15:49:10.316283Z",495 ····················"iopub.status.busy":·"2024-01-12T09:48:50.094748Z",
496 ····················"iopub.status.idle":·"2025-02-13T15:49:10.338279Z",496 ····················"iopub.status.idle":·"2024-01-12T09:48:50.209010Z",
497 ····················"shell.execute_reply":·"2025-02-13T15:49:10.337276Z"497 ····················"shell.execute_reply":·"2024-01-12T09:48:50.193759Z"
498 ················}498 ················}
499 ············},499 ············},
500 ············"outputs":·[500 ············"outputs":·[
501 ················{501 ················{
502 ····················"data":·{502 ····················"data":·{
503 ························"text/html":·[503 ························"text/html":·[
504 ····························"<div>\n",504 ····························"<div>\n",
Offset 587, 18 lines 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":·"2025-02-13T15:49:10.352471Z",594 ····················"iopub.execute_input":·"2024-01-12T09:48:50.239317Z",
595 ····················"iopub.status.busy":·"2025-02-13T15:49:10.352005Z",595 ····················"iopub.status.busy":·"2024-01-12T09:48:50.238780Z",
596 ····················"iopub.status.idle":·"2025-02-13T15:49:10.379258Z",596 ····················"iopub.status.idle":·"2024-01-12T09:48:50.357012Z",
597 ····················"shell.execute_reply":·"2025-02-13T15:49:10.377838Z"597 ····················"shell.execute_reply":·"2024-01-12T09:48:50.340945Z"
598 ················}598 ················}
599 ············},599 ············},
600 ············"outputs":·[600 ············"outputs":·[
601 ················{601 ················{
602 ····················"data":·{602 ····················"data":·{
603 ························"text/html":·[603 ························"text/html":·[
604 ····························"<div>\n",604 ····························"<div>\n",
Offset 701, 18 lines 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":·"2025-02-13T15:49:10.384989Z",708 ····················"iopub.execute_input":·"2024-01-12T09:48:50.387042Z",
709 ····················"iopub.status.busy":·"2025-02-13T15:49:10.384532Z",709 ····················"iopub.status.busy":·"2024-01-12T09:48:50.386514Z",
710 ····················"iopub.status.idle":·"2025-02-13T15:49:11.015413Z",710 ····················"iopub.status.idle":·"2024-01-12T09:48:52.012937Z",
711 ····················"shell.execute_reply":·"2025-02-13T15:49:11.002672Z"711 ····················"shell.execute_reply":·"2024-01-12T09:48:51.996884Z"
712 ················}712 ················}
713 ············},713 ············},
714 ············"outputs":·[714 ············"outputs":·[
715 ················{715 ················{
716 ····················"data":·{716 ····················"data":·{
717 ························"text/plain":·[717 ························"text/plain":·[
718 ····························"<AxesSubplot:·xlabel='time'>"718 ····························"<AxesSubplot:·xlabel='time'>"
Offset 749, 25 lines 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":·"2025-02-13T15:49:11.040490Z",756 ····················"iopub.execute_input":·"2024-01-12T09:48:52.038688Z",
757 ····················"iopub.status.busy":·"2025-02-13T15:49:11.039998Z",757 ····················"iopub.status.busy":·"2024-01-12T09:48:52.038204Z",
758 ····················"iopub.status.idle":·"2025-02-13T15:49:14.604220Z",758 ····················"iopub.status.idle":·"2024-01-12T09:48:56.900874Z",
759 ····················"shell.execute_reply":·"2025-02-13T15:49:14.602763Z"759 ····················"shell.execute_reply":·"2024-01-12T09:48:56.884923Z"
760 ················}760 ················}
761 ············},761 ············},
Max diff block lines reached; 43695/67187 bytes (65.03%) of diff not shown.
2.0 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·0x7f073f9fdfd0&gt;</span>317 <span·class="gh">Out[37]:·</span><span·class="go">&lt;matplotlib.collections.QuadMesh·at·0x7f56058667d0&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>
662 B
html2text {}
    
Offset 269, 15 lines modifiedOffset 269, 15 lines modified
269 Coordinates:269 Coordinates:
270 ··*·x········(x)·int64·10·20270 ··*·x········(x)·int64·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·0x7f073f9fdfd0>275 Out[37]:·<matplotlib.collections.QuadMesh·at·0x7f56058667d0>
276 [../_images/plotting_quick_overview.png]276 [../_images/plotting_quick_overview.png]
277 Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·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.0 KB
./usr/share/doc/python-xarray-doc/html/searchindex.js
9.91 KB
js-beautify {}
    
Offset 1122, 23 lines modifiedOffset 1122, 23 lines modified
1122 ········"british":·6,1122 ········"british":·6,
1123 ········"isl":·6,1123 ········"isl":·6,
1124 ········"march":·[6,·46],1124 ········"march":·[6,·46],
1125 ········"7":·[6,·7,·8,·9,·11,·12,·13,·14,·19,·23,·25,·28,·29,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47],1125 ········"7":·[6,·7,·8,·9,·11,·12,·13,·14,·19,·23,·25,·28,·29,·31,·32,·33,·34,·36,·38,·39,·40,·42,·43,·44,·46,·47],
1126 ········"callback":·6,1126 ········"callback":·6,
1127 ········"lt":·[6,·14],1127 ········"lt":·[6,·14],
1128 ········"_draw_all_if_interact":·6,1128 ········"_draw_all_if_interact":·6,
1129 ········"0x7f1ba9917920":·6,1129 ········"0x7f8bbe48b880":·6,
1130 ········"post_execut":·6,1130 ········"post_execut":·6,
1131 ········"permissionerror":·6,1131 ········"permissionerror":·6,
1132 ········"usr":·6,1132 ········"usr":·6,
1133 ········"lib":·6,1133 ········"lib":·6,
1134 ········"dist":·6,1134 ········"dist":·6,
1135 ········"119":·[6,·32,·38,·39,·43,·46],1135 ········"119":·[6,·32,·38,·39,·43,·46],
1136 ········"117":·[6,·32,·38,·43,·46],1136 ········"117":·[6,·32,·38,·43,·46],
1137 ········"118":·[6,·32,·38,·43,·46],1137 ········"118":·[6,·32,·33,·38,·43,·46],
1138 ········"is_interact":·6,1138 ········"is_interact":·6,
1139 ········"draw_al":·6,1139 ········"draw_al":·6,
1140 ········"_pylab_help":·6,1140 ········"_pylab_help":·6,
1141 ········"gcf":·6,1141 ········"gcf":·6,
1142 ········"cl":·[6,·28,·40],1142 ········"cl":·[6,·28,·40],
1143 ········"forc":·[6,·39,·43],1143 ········"forc":·[6,·39,·43],
1144 ········"130":·[6,·32,·38,·43],1144 ········"130":·[6,·32,·38,·43],
Offset 1812, 25 lines modifiedOffset 1812, 25 lines modified
1812 ········"until":·[13,·33,·36,·40,·43],1812 ········"until":·[13,·33,·36,·40,·43],
1813 ········"scitool":·[13,·18],1813 ········"scitool":·[13,·18],
1814 ········"813":·13,1814 ········"813":·13,
1815 ········"band":·[13,·34,·40,·44],1815 ········"band":·[13,·34,·40,·44],
1816 ········"color":·[13,·16,·18,·43,·48],1816 ········"color":·[13,·16,·18,·43,·48],
1817 ········"r":·[13,·28,·32,·33,·34,·38,·39,·40,·48],1817 ········"r":·[13,·28,·32,·33,·34,·38,·39,·40,·48],
1818 ········"tmp":·13,1818 ········"tmp":·13,
1819 ········"ipykernel_3283687":·13,1819 ········"ipykernel_1285013":·13,
1820 ········"2946363816":·13,1820 ········"2946363816":·13,
1821 ········"favor":·[13,·16,·40,·42,·48],1821 ········"favor":·[13,·16,·40,·42,·48],
1822 ········"transit":·[13,·40,·43,·48],1822 ········"transit":·[13,·40,·43,·48],
1823 ········"corteva":·[13,·40],1823 ········"corteva":·[13,·40],
1824 ········"getting_start":·[13,·40],1824 ········"getting_start":·[13,·40],
1825 ········"222":·13,1825 ········"222":·13,
1826 ········"221":·13,1826 ········"221":·13,
1827 ········"223":·13,1827 ········"223":·13,
1828 ········"224":·13,1828 ········"224":·13,
1829 ········"226":·13,1829 ········"226":·[13,·33],
1830 ········"227":·13,1830 ········"227":·13,
1831 ········"229":·[13,·48],1831 ········"229":·[13,·48],
1832 ········"230":·13,1832 ········"230":·13,
1833 ········"cartesian":·[13,·32,·40],1833 ········"cartesian":·[13,·32,·40],
1834 ········"might":·[13,·24,·29,·33,·34,·38,·39,·40,·43,·48],1834 ········"might":·[13,·24,·29,·33,·34,·38,·39,·40,·43,·48],
1835 ········"handi":·[13,·32,·43],1835 ········"handi":·[13,·32,·43],
1836 ········"index":·[13,·14,·16,·18,·20,·21,·31,·32,·33,·35,·36,·39,·40,·42,·43,·45,·47,·48],1836 ········"index":·[13,·14,·16,·18,·20,·21,·31,·32,·33,·35,·36,·39,·40,·42,·43,·45,·47,·48],
Offset 1982, 15 lines modifiedOffset 1982, 15 lines modified
1982 ········"xlabel":·[14,·43],1982 ········"xlabel":·[14,·43],
1983 ········"pairplot":·14,1983 ········"pairplot":·14,
1984 ········"reset_index":·[14,·42,·44,·48],1984 ········"reset_index":·[14,·42,·44,·48],
1985 ········"var":·[14,·25,·31,·32,·38,·43,·48],1985 ········"var":·[14,·25,·31,·32,·38,·43,·48],
1986 ········"data_var":·[14,·32,·34,·38,·40,·44,·48],1986 ········"data_var":·[14,·32,·34,·38,·40,·44,·48],
1987 ········"axisgrid":·14,1987 ········"axisgrid":·14,
1988 ········"pairgrid":·14,1988 ········"pairgrid":·14,
1989 ········"0x7f79de890850":·14,1989 ········"0x7f00ce57a690":·14,
1990 ········"9516129":·14,1990 ········"9516129":·14,
1991 ········"88709677":·14,1991 ········"88709677":·14,
1992 ········"93548387":·14,1992 ········"93548387":·14,
1993 ········"84210526":·14,1993 ········"84210526":·14,
1994 ········"71929825":·14,1994 ········"71929825":·14,
1995 ········"77192982":·14,1995 ········"77192982":·14,
1996 ········"24193548":·14,1996 ········"24193548":·14,
Offset 2321, 15 lines 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 ········"0x7f073f9fdfd0":·19,2328 ········"0x7f56058667d0":·19,
2329 ········"paid":·19,2329 ········"paid":·19,
2330 ········"customiz":·19,2330 ········"customiz":·19,
2331 ········"to_seri":·[19,·42,·48],2331 ········"to_seri":·[19,·42,·48],
2332 ········"to_xarrai":·[19,·42],2332 ········"to_xarrai":·[19,·42],
2333 ········"38":·[19,·31,·32,·33,·34,·38,·39,·40,·43,·44,·48],2333 ········"38":·[19,·31,·32,·33,·34,·38,·39,·40,·43,·44,·48],
2334 ········"469112":·[19,·42],2334 ········"469112":·[19,·42],
2335 ········"282863":·[19,·42],2335 ········"282863":·[19,·42],
Offset 2984, 15 lines modifiedOffset 2984, 15 lines modified
2984 ········"sqrt":·[32,·48],2984 ········"sqrt":·[32,·48],
2985 ········"58":·[32,·34,·38,·39,·40,·43,·44,·48],2985 ········"58":·[32,·34,·38,·39,·40,·43,·44,·48],
2986 ········"08299933":·32,2986 ········"08299933":·32,
2987 ········"59":·[32,·33,·34,·38,·39,·40,·43,·44,·48],2987 ········"59":·[32,·33,·34,·38,·39,·40,·43,·44,·48],
2988 ········"60":·[32,·34,·38,·39,·40,·43,·44,·46,·47,·48],2988 ········"60":·[32,·34,·38,·39,·40,·43,·44,·46,·47,·48],
2989 ········"61":·[32,·34,·38,·39,·40,·43,·48],2989 ········"61":·[32,·34,·38,·39,·40,·43,·48],
2990 ········"incorrectli":·[32,·48],2990 ········"incorrectli":·[32,·48],
2991 ········"62":·[32,·34,·38,·39,·40,·43,·48],2991 ········"62":·[32,·33,·34,·38,·39,·40,·43,·48],
2992 ········"63":·[32,·34,·38,·39,·40,·43,·48],2992 ········"63":·[32,·34,·38,·39,·40,·43,·48],
2993 ········"64":·[32,·34,·38,·39,·40,·43,·48],2993 ········"64":·[32,·34,·38,·39,·40,·43,·48],
2994 ········"65":·[32,·34,·38,·40,·43,·48],2994 ········"65":·[32,·34,·38,·40,·43,·48],
2995 ········"66":·[32,·34,·38,·39,·40,·43,·48],2995 ········"66":·[32,·34,·38,·39,·40,·43,·48],
2996 ········"67":·[32,·34,·36,·38,·40,·43,·48],2996 ········"67":·[32,·34,·36,·38,·40,·43,·48],
2997 ········"1999":·32,2997 ········"1999":·32,
2998 ········"364":·[32,·46],2998 ········"364":·[32,·46],
Offset 3227, 15 lines modifiedOffset 3227, 15 lines modified
3227 ········"120":·[32,·38,·40,·43,·46],3227 ········"120":·[32,·38,·40,·43,·46],
3228 ········"arithmetic_join":·[32,·41,·48],3228 ········"arithmetic_join":·[32,·41,·48],
3229 ········"121":·[32,·38,·43,·46],3229 ········"121":·[32,·38,·43,·46],
3230 ········"overhead":·[32,·33,·40],3230 ········"overhead":·[32,·33,·40],
3231 ········"repeat":·[32,·43,·46,·48],3231 ········"repeat":·[32,·43,·46,·48],
3232 ········"reindex":·[32,·35,·42,·48],3232 ········"reindex":·[32,·35,·42,·48],
3233 ········"although":·[32,·34,·36,·40,·44,·48],3233 ········"although":·[32,·34,·36,·40,·44,·48],
3234 ········"122":·[32,·33,·38,·43,·46],3234 ········"122":·[32,·38,·43,·46],
3235 ········"silent":·[32,·38,·48],3235 ········"silent":·[32,·38,·48],
3236 ········"124":·[32,·38,·40,·43,·46],3236 ········"124":·[32,·38,·40,·43,·46],
3237 ········"persist":·[32,·33,·34,·38,·48],3237 ········"persist":·[32,·33,·34,·38,·48],
3238 ········"125":·[32,·38,·40,·43],3238 ········"125":·[32,·38,·40,·43],
3239 ········"126":·[32,·38,·43,·48],3239 ········"126":·[32,·38,·43,·48],
3240 ········"127":·[32,·34,·36,·38,·43,·48],3240 ········"127":·[32,·34,·36,·38,·43,·48],
3241 ········"x_and_i":·32,3241 ········"x_and_i":·32,
Offset 3309, 15 lines modifiedOffset 3309, 15 lines modified
3309 ········"178":·33,3309 ········"178":·33,
3310 ········"179":·[33,·38],3310 ········"179":·[33,·38],
3311 ········"concaten":·[33,·36,·40,·44,·48],3311 ········"concaten":·[33,·36,·40,·44,·48],
3312 ········"disclaim":·33,3312 ········"disclaim":·33,
3313 ········"execut":·[33,·48],3313 ········"execut":·[33,·48],
3314 ········"ineffect":·33,3314 ········"ineffect":·33,
3315 ········"reveal":·33,3315 ········"reveal":·33,
3316 ········"39b7b670ad00b8e2e3cc5e2b10b5c905temperatur":·33,3316 ········"e465d2fa847582f6a280739021dc3613temperatur":·33,
3317 ········"progressbar":·33,3317 ········"progressbar":·33,
3318 ········"progress":·[33,·48],3318 ········"progress":·[33,·48],
3319 ········"schedul":·[33,·48],3319 ········"schedul":·[33,·48],
3320 ········"delayed_obj":·33,3320 ········"delayed_obj":·33,
3321 ········"hdf5_use_file_lock":·33,3321 ········"hdf5_use_file_lock":·33,
Max diff block lines reached; 5513/10120 bytes (54.48%) of diff not shown.
5.15 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-39b7b670ad00b8e2e3cc5e2b10b5c905temperature,·shape=(30,·180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray&gt;</span>121 <span·class="go">dask.array&lt;open_dataset-e465d2fa847582f6a280739021dc3613temperature,·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)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span>124 <span·class="go">··*·longitude··(longitude)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span>
125 <span·class="go">··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5</span>125 <span·class="go">··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5</span>
126 </pre></div>126 </pre></div>
127 </div>127 </div>
128 <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to128 <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to
Offset 138, 16 lines modifiedOffset 138, 17 lines modified
138 <span·class="go">#·or·distributed.progress·when·using·the·distributed·scheduler</span>138 <span·class="go">#·or·distributed.progress·when·using·the·distributed·scheduler</span>
139 <span·class="gp">In·[6]:·</span><span·class="n">delayed_obj</span>·<span·class="o">=</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">to_netcdf</span><span·class="p">(</span><span·class="s2">&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·|·15.02·ms</span>143 <span·class="go">[········································]·|·0%·Completed·|·10.29·ms</span>
 144 <span·class="go">[#########################···············]·|·62%·Completed·|·118.03·ms</span>
144 <span·class="go">[########################################]·|·100%·Completed·|·122.88·ms</span>145 <span·class="go">[########################################]·|·100%·Completed·|·226.13·ms</span>
145 </pre></div>146 </pre></div>
146 </div>147 </div>
147 <div·class="admonition·note">148 <div·class="admonition·note">
148 <p·class="admonition-title">Note</p>149 <p·class="admonition-title">Note</p>
149 <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,150 <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,
150 it·may·be·necessary·to·set·the·environment·variable·<cite>HDF5_USE_FILE_LOCKING=FALSE</cite>151 it·may·be·necessary·to·set·the·environment·variable·<cite>HDF5_USE_FILE_LOCKING=FALSE</cite>
151 to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that152 to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that
1.93 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-39b7b670ad00b8e2e3cc5e2b10b5c905temperature,·shape=(30,83 dask.array<open_dataset-e465d2fa847582f6a280739021dc3613temperature,·shape=(30,
84 180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray>84 180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray>
85 Coordinates:85 Coordinates:
86 ··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-3086 ··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30
87 ··*·longitude··(longitude)·int64·0·1·2·3·4·5·6·7·...·173·174·175·176·177·17887 ··*·longitude··(longitude)·int64·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, 16 lines modifiedOffset 98, 17 lines modified
98 In·[6]:·delayed_obj·=·ds.to_netcdf("manipulated-example-data.nc",98 In·[6]:·delayed_obj·=·ds.to_netcdf("manipulated-example-data.nc",
99 compute=False)99 compute=False)
  
100 In·[7]:·with·ProgressBar():100 In·[7]:·with·ProgressBar():
101 ···...:·····results·=·delayed_obj.compute()101 ···...:·····results·=·delayed_obj.compute()
102 ···...:102 ···...:
  
103 [········································]·|·0%·Completed·|·15.02·ms103 [········································]·|·0%·Completed·|·10.29·ms
 104 [#########################···············]·|·62%·Completed·|·118.03·ms
104 [########################################]·|·100%·Completed·|·122.88·ms105 [########################################]·|·100%·Completed·|·226.13·ms
105 Note106 Note
106 When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,·it·may·be107 When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,·it·may·be
107 necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid108 necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid
108 competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing109 competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing
109 netCDF·files·with·Dask’s·distributed·scheduler·is·only·supported·for110 netCDF·files·with·Dask’s·distributed·scheduler·is·only·supported·for
110 thenetcdf4backend.111 thenetcdf4backend.
111 A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe().112 A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe().
4.8 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·0x7f070fca15d0&gt;]</span>694 <span·class="gh">Out[60]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0x7f55d5461350&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·0x7f070f5933d0&gt;]</span>696 <span·class="gh">Out[61]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0x7f55d54be410&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.19 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·0x7f070fca15d0>]581 Out[60]:·[<matplotlib.lines.Line2D·at·0x7f55d5461350>]
  
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·0x7f070f5933d0>]584 Out[61]:·[<matplotlib.lines.Line2D·at·0x7f55d54be410>]
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.
  
9.52 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·0x7f070f54d490&gt;]</span>228 <span·class="gh">Out[17]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0x7f56048b4810&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·0x7f073fa35350&gt;]</span>230 <span·class="gh">Out[18]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0x7f560586f510&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·0x7f070f715950&gt;]</span>232 <span·class="gh">Out[19]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0x7f560586fb50&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·0x7f070e1fe510&gt;</span>234 <span·class="gh">Out[20]:·</span><span·class="go">&lt;matplotlib.legend.Legend·at·0x7f55d3f18ed0&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>
Offset 615, 15 lines modifiedOffset 615, 15 lines modified
615 <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>615 <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>
616 <span·class="g·g-Whitespace">····</span><span·class="mi">859</span>·········<span·class="p">)</span>616 <span·class="g·g-Whitespace">····</span><span·class="mi">859</span>·········<span·class="p">)</span>
617 <span·class="g·g-Whitespace">····</span><span·class="mi">861</span>·····<span·class="k">return</span>·<span·class="n">indexers</span>617 <span·class="g·g-Whitespace">····</span><span·class="mi">861</span>·····<span·class="k">return</span>·<span·class="n">indexers</span>
618 <span·class="g·g-Whitespace">····</span><span·class="mi">863</span>·<span·class="k">elif</span>·<span·class="n">missing_dims</span>·<span·class="o">==</span>·<span·class="s2">&quot;warn&quot;</span><span·class="p">:</span>618 <span·class="g·g-Whitespace">····</span><span·class="mi">863</span>·<span·class="k">elif</span>·<span·class="n">missing_dims</span>·<span·class="o">==</span>·<span·class="s2">&quot;warn&quot;</span><span·class="p">:</span>
619 <span·class="g·g-Whitespace">····</span><span·class="mi">864</span>·619 <span·class="g·g-Whitespace">····</span><span·class="mi">864</span>·
620 <span·class="g·g-Whitespace">····</span><span·class="mi">865</span>·····<span·class="c1">#·don&#39;t·modify·input</span>620 <span·class="g·g-Whitespace">····</span><span·class="mi">865</span>·····<span·class="c1">#·don&#39;t·modify·input</span>
  
621 <span·class="ne">ValueError</span>:·Dimensions·{&#39;lat&#39;,·&#39;lon&#39;}·do·not·exist.·Expected·one·or·more·of·Frozen({&#39;x&#39;:·3,·&#39;y&#39;:·4})621 <span·class="ne">ValueError</span>:·Dimensions·{&#39;lon&#39;,·&#39;lat&#39;}·do·not·exist.·Expected·one·or·more·of·Frozen({&#39;x&#39;:·3,·&#39;y&#39;:·4})
  
622 <span·class="gp">In·[63]:·</span><span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span>622 <span·class="gp">In·[63]:·</span><span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span>
623 <span·class="gt">---------------------------------------------------------------------------</span>623 <span·class="gt">---------------------------------------------------------------------------</span>
624 <span·class="ne">NameError</span><span·class="g·g-Whitespace">·································</span>Traceback·(most·recent·call·last)624 <span·class="ne">NameError</span><span·class="g·g-Whitespace">·································</span>Traceback·(most·recent·call·last)
625 <span·class="n">Cell</span>·<span·class="n">In</span>·<span·class="p">[</span><span·class="mi">63</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span>625 <span·class="n">Cell</span>·<span·class="n">In</span>·<span·class="p">[</span><span·class="mi">63</span><span·class="p">],</span>·<span·class="n">line</span>·<span·class="mi">1</span>
626 <span·class="ne">----&gt;·</span><span·class="mi">1</span>·<span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span>626 <span·class="ne">----&gt;·</span><span·class="mi">1</span>·<span·class="n">dsi</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span><span·class="n">ax</span><span·class="o">=</span><span·class="n">axes</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">])</span>
  
1.8 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·0x7f070f54d490>]171 Out[17]:·[<matplotlib.lines.Line2D·at·0x7f56048b4810>]
  
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·0x7f073fa35350>]174 Out[18]:·[<matplotlib.lines.Line2D·at·0x7f560586f510>]
  
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·0x7f070f715950>]177 Out[19]:·[<matplotlib.lines.Line2D·at·0x7f560586fb50>]
  
178 In·[20]:·plt.legend()178 In·[20]:·plt.legend()
179 Out[20]:·<matplotlib.legend.Legend·at·0x7f070e1fe510>179 Out[20]:·<matplotlib.legend.Legend·at·0x7f55d3f18ed0>
180 [../_images/interpolation_sample1.png]180 [../_images/interpolation_sample1.png]
181 Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.181 Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.
182 #·fill·0·for·the·outside·of·the·original·coordinates.182 #·fill·0·for·the·outside·of·the·original·coordinates.
183 In·[21]:·da.interp(x=np.linspace(-0.5,·1.5,·10),·kwargs={"fill_value":·0.0})183 In·[21]:·da.interp(x=np.linspace(-0.5,·1.5,·10),·kwargs={"fill_value":·0.0})
184 Out[21]:184 Out[21]:
185 <xarray.DataArray·(x:·10)>185 <xarray.DataArray·(x:·10)>
186 array([·0.···,··0.···,··0.···,··0.814,··0.604,·-0.604,·-0.814,··0.···,··0.···,186 array([·0.···,··0.···,··0.···,··0.814,··0.604,·-0.604,·-0.814,··0.···,··0.···,
Offset 558, 15 lines modifiedOffset 558, 15 lines modified
558 of·{dims}"558 of·{dims}"
559 ····859·········)559 ····859·········)
560 ····861·····return·indexers560 ····861·····return·indexers
561 ····863·elif·missing_dims·==·"warn":561 ····863·elif·missing_dims·==·"warn":
562 ····864562 ····864
563 ····865·····#·don't·modify·input563 ····865·····#·don't·modify·input
  
564 ValueError:·Dimensions·{'lat',·'lon'}·do·not·exist.·Expected·one·or·more·of564 ValueError:·Dimensions·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of
565 Frozen({'x':·3,·'y':·4})565 Frozen({'x':·3,·'y':·4})
  
566 In·[63]:·dsi.air.plot(ax=axes[1])566 In·[63]:·dsi.air.plot(ax=axes[1])
567 ---------------------------------------------------------------------------567 ---------------------------------------------------------------------------
568 NameError·································Traceback·(most·recent·call·last)568 NameError·································Traceback·(most·recent·call·last)
569 Cell·In·[63],·line·1569 Cell·In·[63],·line·1
570 ---->·1·dsi.air.plot(ax=axes[1])570 ---->·1·dsi.air.plot(ax=axes[1])
49.5 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·0x7f07c3fe13d0&gt;]</span>648 <span·class="gh">Out[51]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0x7f5685e7e750&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)·int64·0·1·2·3</span>1206 <span·class="go">··*·z········(z)·int64·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·0x7f07c3edf290&gt;</span>1211 <span·class="gh">Out[99]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f5685d2bed0&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·0x7f07c3d9c310&gt;</span>1217 <span·class="gh">Out[100]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f5685c6ba90&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·0x7f07c3e56690&gt;</span>1223 <span·class="gh">Out[101]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f5685cd6cd0&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·0x7f07c3e24310&gt;</span>1229 <span·class="gh">Out[102]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f5685c38c10&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·0x7f070d587290&gt;</span>1235 <span·class="gh">Out[103]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f55d343ccd0&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·0x7f07c3e405d0&gt;</span>1240 <span·class="gh">Out[104]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f55d3475dd0&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·0x7f070d5c7290&gt;</span>1247 <span·class="gh">Out[105]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0x7f55d32d1a50&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·0x7f070d430350&gt;</span>1253 <span·class="gh">Out[106]:·</span><span·class="go">&lt;mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f55d32f0190&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·0x7f070d4b4290&gt;</span>1259 <span·class="gh">Out[107]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0x7f55d6b7a050&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·0x7f070cf70350&gt;</span>1265 <span·class="gh">Out[108]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0x7f55d305c610&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·0x7f070d2de8d0&gt;</span>1276 <span·class="gh">Out[109]:·</span><span·class="go">&lt;matplotlib.quiver.Quiver·at·0x7f55d2c8cb90&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·0x7f070f6a9550&gt;</span>1282 <span·class="gh">Out[110]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0x7f55d2d61bd0&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·0x7f07c3e0fe10&gt;</span>1293 <span·class="gh">Out[111]:·</span><span·class="go">&lt;matplotlib.collections.LineCollection·at·0x7f55d29493d0&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·0x7f070d07d590&gt;</span>1300 <span·class="gh">Out[112]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0x7f55d2772690&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; 16761/38857 bytes (43.14%) of diff not shown.
11.4 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·0x7f07c3fe13d0>]546 Out[51]:·[<matplotlib.lines.Line2D·at·0x7f5685e7e750>]
547 [../_images/plotting_nonuniform_coords.png]547 [../_images/plotting_nonuniform_coords.png]
548 ***·Other·types·of·plot¶·***548 ***·Other·types·of·plot¶·***
549 There·are·several·other·options·for·plotting·2D·data.549 There·are·several·other·options·for·plotting·2D·data.
550 Contour·plot·using·DataArray.plot.contour()550 Contour·plot·using·DataArray.plot.contour()
551 In·[52]:·air2d.plot.contour()551 In·[52]:·air2d.plot.contour()
552 ---------------------------------------------------------------------------552 ---------------------------------------------------------------------------
553 NameError·································Traceback·(most·recent·call·last)553 NameError·································Traceback·(most·recent·call·last)
Offset 1030, 85 lines 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)·int64·0·1·2·31031 ··*·z········(z)·int64·0·1·2·3
1032 ··*·w········(w)·<U5·'one'·'two'·'three'·'five'1032 ··*·w········(w)·<U5·'one'·'two'·'three'·'five'
1033 Attributes:1033 Attributes:
1034 ····units:····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·0x7f07c3edf290>1036 Out[99]:·<matplotlib.collections.PathCollection·at·0x7f5685d2bed0>
1037 [../_images/da_A_y.png]1037 [../_images/da_A_y.png]
1038 Same·plot·can·be·displayed·using·the·dataset:1038 Same·plot·can·be·displayed·using·the·dataset:
1039 In·[100]:·ds.plot.scatter(x="y",·y="A")1039 In·[100]:·ds.plot.scatter(x="y",·y="A")
1040 Out[100]:·<matplotlib.collections.PathCollection·at·0x7f07c3d9c310>1040 Out[100]:·<matplotlib.collections.PathCollection·at·0x7f5685c6ba90>
1041 [../_images/ds_A_y.png]1041 [../_images/ds_A_y.png]
1042 Now·suppose·we·want·to·scatter·the·A·DataArray·against·the·B·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·0x7f07c3e56690>1044 Out[101]:·<matplotlib.collections.PathCollection·at·0x7f5685cd6cd0>
1045 [../_images/ds_simple_scatter.png]1045 [../_images/ds_simple_scatter.png]
1046 The·hue·kwarg·lets·you·vary·the·color·by·variable·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·0x7f07c3e24310>1048 Out[102]:·<matplotlib.collections.PathCollection·at·0x7f5685c38c10>
1049 [../_images/ds_hue_scatter.png]1049 [../_images/ds_hue_scatter.png]
1050 You·can·force·a·legend·instead·of·a·colorbar·by·setting·add_legend=True,1050 You·can·force·a·legend·instead·of·a·colorbar·by·setting·add_legend=True,
1051 add_colorbar=False.1051 add_colorbar=False.
1052 In·[103]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=True,1052 In·[103]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=True,
1053 add_colorbar=False)1053 add_colorbar=False)
1054 Out[103]:·<matplotlib.collections.PathCollection·at·0x7f070d587290>1054 Out[103]:·<matplotlib.collections.PathCollection·at·0x7f55d343ccd0>
1055 [../_images/ds_discrete_legend_hue_scatter.png]1055 [../_images/ds_discrete_legend_hue_scatter.png]
1056 In·[104]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=False,1056 In·[104]:·ds.plot.scatter(x="A",·y="B",·hue="w",·add_legend=False,
1057 add_colorbar=True)1057 add_colorbar=True)
1058 Out[104]:·<matplotlib.collections.PathCollection·at·0x7f07c3e405d0>1058 Out[104]:·<matplotlib.collections.PathCollection·at·0x7f55d3475dd0>
1059 [../_images/ds_discrete_colorbar_hue_scatter.png]1059 [../_images/ds_discrete_colorbar_hue_scatter.png]
1060 The·markersize·kwarg·lets·you·vary·the·point’s·size·by·variable·value.·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·0x7f070d5c7290>1064 Out[105]:·<matplotlib.collections.PathCollection·at·0x7f55d32d1a50>
1065 [../_images/ds_hue_size_scatter.png]1065 [../_images/ds_hue_size_scatter.png]
1066 The·z·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well.1066 The·z·kwarg·lets·you·plot·the·data·along·the·z-axis·as·well.
1067 In·[106]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x")1067 In·[106]:·ds.plot.scatter(x="A",·y="B",·z="z",·hue="y",·markersize="x")
1068 Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f070d430350>1068 Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0x7f55d32f0190>
1069 [../_images/ds_hue_size_scatter_z.png]1069 [../_images/ds_hue_size_scatter_z.png]
1070 Faceting·is·also·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·0x7f070d4b4290>1073 Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d6b7a050>
1074 [../_images/ds_facet_scatter.png]1074 [../_images/ds_facet_scatter.png]
1075 And·adding·the·z-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·0x7f070cf70350>1078 Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d305c610>
1079 [../_images/ds_facet_scatter_z.png]1079 [../_images/ds_facet_scatter_z.png]
1080 For·more·advanced·scatter·plots,·we·recommend·converting·the·relevant·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·0x7f070d2de8d0>1086 Out[109]:·<matplotlib.quiver.Quiver·at·0x7f55d2c8cb90>
1087 [../_images/ds_simple_quiver.png]1087 [../_images/ds_simple_quiver.png]
1088 where·u·and·v·denote·the·x·and·y·direction·components·of·the·arrow·vectors.1088 where·u·and·v·denote·the·x·and·y·direction·components·of·the·arrow·vectors.
1089 Again,·faceting·is·also·possible:1089 Again,·faceting·is·also·possible:
1090 In·[110]:·ds.plot.quiver(x="x",·y="y",·u="A",·v="B",·col="w",·row="z",·scale=4)1090 In·[110]:·ds.plot.quiver(x="x",·y="y",·u="A",·v="B",·col="w",·row="z",·scale=4)
1091 Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f070f6a9550>1091 Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d2d61bd0>
1092 [../_images/ds_facet_quiver.png]1092 [../_images/ds_facet_quiver.png]
1093 scale·is·required·for·faceted·quiver·plots.·The·scale·determines·the·number·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·0x7f07c3e0fe10>1099 Out[111]:·<matplotlib.collections.LineCollection·at·0x7f55d29493d0>
1100 [../_images/ds_simple_streamplot.png]1100 [../_images/ds_simple_streamplot.png]
1101 where·u·and·v·denote·the·x·and·y·direction·components·of·the·vectors·tangent·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·0x7f070d07d590>1104 Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0x7f55d2772690>
1105 [../_images/ds_facet_streamplot.png]1105 [../_images/ds_facet_streamplot.png]
1106 *****·Maps¶·*****1106 *****·Maps¶·*****
1107 To·follow·this·section·you’ll·need·to·have·Cartopy·installed·and·working.1107 To·follow·this·section·you’ll·need·to·have·Cartopy·installed·and·working.
1108 This·script·will·plot·the·air·temperature·on·a·map.1108 This·script·will·plot·the·air·temperature·on·a·map.
1109 In·[113]:·import·cartopy.crs·as·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·0x7f070bfd1490>]1225 Out[124]:·[<matplotlib.lines.Line2D·at·0x7f55d31f1ad0>]
  
1226 In·[125]:·da.plot.line(ax=axs[0,·1])1226 In·[125]:·da.plot.line(ax=axs[0,·1])
1227 Out[125]:·[<matplotlib.lines.Line2D·at·0x7f070c56cb50>]1227 Out[125]:·[<matplotlib.lines.Line2D·at·0x7f55d197f910>]
  
1228 In·[126]:·xplt.plot(da,·ax=axs[1,·0])1228 In·[126]:·xplt.plot(da,·ax=axs[1,·0])
1229 Out[126]:·[<matplotlib.lines.Line2D·at·0x7f070bb9ff90>]1229 Out[126]:·[<matplotlib.lines.Line2D·at·0x7f55d18ed490>]
  
1230 In·[127]:·xplt.line(da,·ax=axs[1,·1])1230 In·[127]:·xplt.line(da,·ax=axs[1,·1])
1231 Out[127]:·[<matplotlib.lines.Line2D·at·0x7f070bb9fc90>]1231 Out[127]:·[<matplotlib.lines.Line2D·at·0x7f55d18edf50>]
  
1232 In·[128]:·plt.tight_layout()1232 In·[128]:·plt.tight_layout()
  
1233 In·[129]:·plt.draw()1233 In·[129]:·plt.draw()
1234 [../_images/plotting_ways_to_use.png]1234 [../_images/plotting_ways_to_use.png]
1235 Here·the·output·is·the·same.·Since·the·data·is·1·dimensional·the·line·plot·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; 4927/11679 bytes (42.19%) of diff not shown.
3.72 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·0x7f07099d5d50&gt;</span>5860 <span·class="gh">Out[46]:·</span><span·class="go">&lt;matplotlib.collections.QuadMesh·at·0x7f55cdfdded0&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
886 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·0x7f07099d5d50>4054 ······Out[46]:·<matplotlib.collections.QuadMesh·at·0x7f55cdfdded0>
4055 ······[_images/where_example.png]4055 ······[_images/where_example.png]
4056 ····*·Added·new·methods·xray.DataArray.diff·and·xray.Dataset.diff·for·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)))