290 KB
/srv/reproducible-results/rbuild-debian/r-b-build.dsXyMOwQ/b1/python-xarray_2023.01.0-1.1_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.dsXyMOwQ/b2/python-xarray_2023.01.0-1.1_arm64.changes
315 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·6f4ce5648706086f1832d2e8b8165ebe·5278124·doc·optional·python-xarray-doc_2023.01.0-1.1_all.deb1 ·93f5b8ab1ec58df68edcb45557ce6c14·5278172·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
289 KB
python-xarray-doc_2023.01.0-1.1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2023-02-19·00:50:57.000000·debian-binary1 -rw-r--r--···0········0········0········4·2023-02-19·00:50:57.000000·debian-binary
2 -rw-r--r--···0········0········0·····6244·2023-02-19·00:50:57.000000·control.tar.xz2 -rw-r--r--···0········0········0·····6244·2023-02-19·00:50:57.000000·control.tar.xz
3 -rw-r--r--···0········0········0··5271688·2023-02-19·00:50:57.000000·data.tar.xz3 -rw-r--r--···0········0········0··5271736·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
289 KB
data.tar.xz
289 KB
data.tar
8.9 KB
file list
    
Offset 235, 29 lines modifiedOffset 235, 29 lines modified
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)·····6504·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)·····6504·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)····24040·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)····24046·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)·····9526·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)·····9539·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)····21757·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)····21760·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz
247 -rw-r--r--···0·root·········(0)·root·········(0)····22771·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.html247 -rw-r--r--···0·root·········(0)·root·········(0)····22771·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.html
248 -rw-r--r--···0·root·········(0)·root·········(0)·····1561·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz248 -rw-r--r--···0·root·········(0)·root·········(0)·····1556·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)·····3534·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)·····3540·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)····11182·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)····11173·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)·····4663·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)·····4662·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)···367742·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)···367785·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)···198700·2023-02-19·00:50:57.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js278 -rw-r--r--···0·root·········(0)·root·········(0)···198698·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)····74544·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)····74545·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·0xffff59c779c0&gt;·(for·post_execute):439 Error·in·callback·&lt;function·_draw_all_if_interactive·at·0xffff618eb9c0&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·0xffff59c779c0>·(for104 Error·in·callback·<function·_draw_all_if_interactive·at·0xffff618eb9c0>·(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-08T11:26:00.178902Z', " "'iopub.status.busy': '2024-01-08T11:26:00.178619Z', 'iopub.status.idle': " "'2024-01-08T11:26:05.203130Z', 'shell.execute_reply': " "'2024-01-08T11:26:05.202426Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:26:05.218756Z', 'iopub.status.busy': " "'2024-01-08T11:26:05.211215Z', 'iopub.status.idle': '2024-01-08T11:26:0 […]
    
Offset 15, 18 lines modifiedOffset 15, 18 lines modified
15 ············]15 ············]
16 ········},16 ········},
17 ········{17 ········{
18 ············"cell_type":·"code",18 ············"cell_type":·"code",
19 ············"execution_count":·1,19 ············"execution_count":·1,
20 ············"metadata":·{20 ············"metadata":·{
21 ················"execution":·{21 ················"execution":·{
22 ····················"iopub.execute_input":·"2024-01-08T11:14:03.486015Z",22 ····················"iopub.execute_input":·"2024-01-08T11:26:00.178902Z",
23 ····················"iopub.status.busy":·"2024-01-08T11:14:03.485718Z",23 ····················"iopub.status.busy":·"2024-01-08T11:26:00.178619Z",
24 ····················"iopub.status.idle":·"2024-01-08T11:14:07.841871Z",24 ····················"iopub.status.idle":·"2024-01-08T11:26:05.203130Z",
25 ····················"shell.execute_reply":·"2024-01-08T11:14:07.841019Z"25 ····················"shell.execute_reply":·"2024-01-08T11:26:05.202426Z"
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":·"2024-01-08T11:14:07.866408Z",54 ····················"iopub.execute_input":·"2024-01-08T11:26:05.218756Z",
55 ····················"iopub.status.busy":·"2024-01-08T11:14:07.865889Z",55 ····················"iopub.status.busy":·"2024-01-08T11:26:05.211215Z",
56 ····················"iopub.status.idle":·"2024-01-08T11:14:08.249882Z",56 ····················"iopub.status.idle":·"2024-01-08T11:26:05.931249Z",
57 ····················"shell.execute_reply":·"2024-01-08T11:14:08.249000Z"57 ····················"shell.execute_reply":·"2024-01-08T11:26:05.930456Z"
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":·"2024-01-08T11:14:08.256241Z",95 ····················"iopub.execute_input":·"2024-01-08T11:26:05.939423Z",
96 ····················"iopub.status.busy":·"2024-01-08T11:14:08.255931Z",96 ····················"iopub.status.busy":·"2024-01-08T11:26:05.939157Z",
97 ····················"iopub.status.idle":·"2024-01-08T11:14:08.292471Z",97 ····················"iopub.status.idle":·"2024-01-08T11:26:05.995128Z",
98 ····················"shell.execute_reply":·"2024-01-08T11:14:08.291661Z"98 ····················"shell.execute_reply":·"2024-01-08T11:26:05.994433Z"
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":·"2024-01-08T11:14:08.296332Z",131 ····················"iopub.execute_input":·"2024-01-08T11:26:06.003507Z",
132 ····················"iopub.status.busy":·"2024-01-08T11:14:08.296059Z",132 ····················"iopub.status.busy":·"2024-01-08T11:26:06.003228Z",
133 ····················"iopub.status.idle":·"2024-01-08T11:14:11.393951Z",133 ····················"iopub.status.idle":·"2024-01-08T11:26:12.718499Z",
134 ····················"shell.execute_reply":·"2024-01-08T11:14:11.393003Z"134 ····················"shell.execute_reply":·"2024-01-08T11:26:12.710458Z"
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·0xffff59c779c0>·(for·post_execute):\n"153 ························"Error·in·callback·<function·_draw_all_if_interactive·at·0xffff618eb9c0>·(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":·"2024-01-08T11:14:11.398058Z",262 ····················"iopub.execute_input":·"2024-01-08T11:26:12.727529Z",
263 ····················"iopub.status.busy":·"2024-01-08T11:14:11.397775Z",263 ····················"iopub.status.busy":·"2024-01-08T11:26:12.727233Z",
264 ····················"iopub.status.idle":·"2024-01-08T11:14:11.425781Z",264 ····················"iopub.status.idle":·"2024-01-08T11:26:12.799220Z",
265 ····················"shell.execute_reply":·"2024-01-08T11:14:11.424998Z"265 ····················"shell.execute_reply":·"2024-01-08T11:26:12.798431Z"
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-08T11:26:20.594000Z', " "'iopub.status.busy': '2024-01-08T11:26:20.593670Z', 'iopub.status.idle': " "'2024-01-08T11:26:24.502509Z', 'shell.execute_reply': " "'2024-01-08T11:26:24.494464Z'}}}, 5: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:26:24.511712Z', 'iopub.status.busy': " "'2024-01-08T11:26:24.511251Z', 'iopub.status.idle': '2024-01-08T11:26:2 […]
    
Offset 17, 18 lines modifiedOffset 17, 18 lines modified
17 ············]17 ············]
18 ········},18 ········},
19 ········{19 ········{
20 ············"cell_type":·"code",20 ············"cell_type":·"code",
21 ············"execution_count":·1,21 ············"execution_count":·1,
22 ············"metadata":·{22 ············"metadata":·{
23 ················"execution":·{23 ················"execution":·{
24 ····················"iopub.execute_input":·"2024-01-08T11:14:19.808398Z",24 ····················"iopub.execute_input":·"2024-01-08T11:26:20.594000Z",
25 ····················"iopub.status.busy":·"2024-01-08T11:14:19.808080Z",25 ····················"iopub.status.busy":·"2024-01-08T11:26:20.593670Z",
26 ····················"iopub.status.idle":·"2024-01-08T11:14:22.377757Z",26 ····················"iopub.status.idle":·"2024-01-08T11:26:24.502509Z",
27 ····················"shell.execute_reply":·"2024-01-08T11:14:22.377007Z"27 ····················"shell.execute_reply":·"2024-01-08T11:26:24.494464Z"
28 ················}28 ················}
29 ············},29 ············},
30 ············"outputs":·[],30 ············"outputs":·[],
31 ············"source":·[31 ············"source":·[
32 ················"import·numpy·as·np\n",32 ················"import·numpy·as·np\n",
33 ················"import·cartopy.crs·as·ccrs\n",33 ················"import·cartopy.crs·as·ccrs\n",
34 ················"import·cartopy.feature·as·cfeature\n",34 ················"import·cartopy.feature·as·cfeature\n",
Offset 75, 18 lines modifiedOffset 75, 18 lines modified
75 ············]75 ············]
76 ········},76 ········},
77 ········{77 ········{
78 ············"cell_type":·"code",78 ············"cell_type":·"code",
79 ············"execution_count":·2,79 ············"execution_count":·2,
80 ············"metadata":·{80 ············"metadata":·{
81 ················"execution":·{81 ················"execution":·{
82 ····················"iopub.execute_input":·"2024-01-08T11:14:22.386237Z",82 ····················"iopub.execute_input":·"2024-01-08T11:26:24.511712Z",
83 ····················"iopub.status.busy":·"2024-01-08T11:14:22.385805Z",83 ····················"iopub.status.busy":·"2024-01-08T11:26:24.511251Z",
84 ····················"iopub.status.idle":·"2024-01-08T11:14:22.822902Z",84 ····················"iopub.status.idle":·"2024-01-08T11:26:25.111336Z",
85 ····················"shell.execute_reply":·"2024-01-08T11:14:22.820995Z"85 ····················"shell.execute_reply":·"2024-01-08T11:26:25.110469Z"
86 ················}86 ················}
87 ············},87 ············},
88 ············"outputs":·[88 ············"outputs":·[
89 ················{89 ················{
90 ····················"ename":·"ImportError",90 ····················"ename":·"ImportError",
91 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",91 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
92 ····················"output_type":·"error",92 ····················"output_type":·"error",
Offset 130, 18 lines modifiedOffset 130, 18 lines modified
130 ············]130 ············]
131 ········},131 ········},
132 ········{132 ········{
133 ············"cell_type":·"code",133 ············"cell_type":·"code",
134 ············"execution_count":·3,134 ············"execution_count":·3,
135 ············"metadata":·{135 ············"metadata":·{
136 ················"execution":·{136 ················"execution":·{
137 ····················"iopub.execute_input":·"2024-01-08T11:14:22.826358Z",137 ····················"iopub.execute_input":·"2024-01-08T11:26:25.119637Z",
138 ····················"iopub.status.busy":·"2024-01-08T11:14:22.826089Z",138 ····················"iopub.status.busy":·"2024-01-08T11:26:25.119352Z",
139 ····················"iopub.status.idle":·"2024-01-08T11:14:22.861746Z",139 ····················"iopub.status.idle":·"2024-01-08T11:26:25.179251Z",
140 ····················"shell.execute_reply":·"2024-01-08T11:14:22.860993Z"140 ····················"shell.execute_reply":·"2024-01-08T11:26:25.178465Z"
141 ················}141 ················}
142 ············},142 ············},
143 ············"outputs":·[143 ············"outputs":·[
144 ················{144 ················{
145 ····················"ename":·"NameError",145 ····················"ename":·"NameError",
146 ····················"evalue":·"name·'ds'·is·not·defined",146 ····················"evalue":·"name·'ds'·is·not·defined",
147 ····················"output_type":·"error",147 ····················"output_type":·"error",
Offset 175, 18 lines modifiedOffset 175, 18 lines modified
175 ············]175 ············]
176 ········},176 ········},
177 ········{177 ········{
178 ············"cell_type":·"code",178 ············"cell_type":·"code",
179 ············"execution_count":·4,179 ············"execution_count":·4,
180 ············"metadata":·{180 ············"metadata":·{
181 ················"execution":·{181 ················"execution":·{
182 ····················"iopub.execute_input":·"2024-01-08T11:14:22.865355Z",182 ····················"iopub.execute_input":·"2024-01-08T11:26:25.187640Z",
183 ····················"iopub.status.busy":·"2024-01-08T11:14:22.865087Z",183 ····················"iopub.status.busy":·"2024-01-08T11:26:25.187359Z",
184 ····················"iopub.status.idle":·"2024-01-08T11:14:22.893754Z",184 ····················"iopub.status.idle":·"2024-01-08T11:26:25.231268Z",
185 ····················"shell.execute_reply":·"2024-01-08T11:14:22.893005Z"185 ····················"shell.execute_reply":·"2024-01-08T11:26:25.230474Z"
186 ················},186 ················},
187 ················"scrolled":·false187 ················"scrolled":·false
188 ············},188 ············},
189 ············"outputs":·[189 ············"outputs":·[
190 ················{190 ················{
191 ····················"ename":·"NameError",191 ····················"ename":·"NameError",
192 ····················"evalue":·"name·'ds'·is·not·defined",192 ····················"evalue":·"name·'ds'·is·not·defined",
Offset 211, 18 lines modifiedOffset 211, 18 lines modified
211 ············]211 ············]
212 ········},212 ········},
213 ········{213 ········{
214 ············"cell_type":·"code",214 ············"cell_type":·"code",
215 ············"execution_count":·5,215 ············"execution_count":·5,
216 ············"metadata":·{216 ············"metadata":·{
217 ················"execution":·{217 ················"execution":·{
218 ····················"iopub.execute_input":·"2024-01-08T11:14:22.897434Z",218 ····················"iopub.execute_input":·"2024-01-08T11:26:25.239562Z",
219 ····················"iopub.status.busy":·"2024-01-08T11:14:22.897163Z",219 ····················"iopub.status.busy":·"2024-01-08T11:26:25.239291Z",
220 ····················"iopub.status.idle":·"2024-01-08T11:14:22.933749Z",220 ····················"iopub.status.idle":·"2024-01-08T11:26:25.326478Z",
221 ····················"shell.execute_reply":·"2024-01-08T11:14:22.932994Z"221 ····················"shell.execute_reply":·"2024-01-08T11:26:25.310467Z"
222 ················}222 ················}
223 ············},223 ············},
224 ············"outputs":·[224 ············"outputs":·[
225 ················{225 ················{
226 ····················"ename":·"NameError",226 ····················"ename":·"NameError",
227 ····················"evalue":·"name·'ds'·is·not·defined",227 ····················"evalue":·"name·'ds'·is·not·defined",
228 ····················"output_type":·"error",228 ····················"output_type":·"error",
Offset 250, 18 lines modifiedOffset 250, 18 lines modified
250 ············]250 ············]
251 ········},251 ········},
252 ········{252 ········{
253 ············"cell_type":·"code",253 ············"cell_type":·"code",
254 ············"execution_count":·6,254 ············"execution_count":·6,
255 ············"metadata":·{255 ············"metadata":·{
256 ················"execution":·{256 ················"execution":·{
257 ····················"iopub.execute_input":·"2024-01-08T11:14:22.937293Z",257 ····················"iopub.execute_input":·"2024-01-08T11:26:25.333296Z",
258 ····················"iopub.status.busy":·"2024-01-08T11:14:22.937037Z",258 ····················"iopub.status.busy":·"2024-01-08T11:26:25.333003Z",
259 ····················"iopub.status.idle":·"2024-01-08T11:14:22.973712Z",259 ····················"iopub.status.idle":·"2024-01-08T11:26:25.406689Z",
260 ····················"shell.execute_reply":·"2024-01-08T11:14:22.972999Z"260 ····················"shell.execute_reply":·"2024-01-08T11:26:25.396688Z"
261 ················}261 ················}
262 ············},262 ············},
263 ············"outputs":·[263 ············"outputs":·[
264 ················{264 ················{
265 ····················"ename":·"NameError",265 ····················"ename":·"NameError",
266 ····················"evalue":·"name·'ds'·is·not·defined",266 ····················"evalue":·"name·'ds'·is·not·defined",
267 ····················"output_type":·"error",267 ····················"output_type":·"error",
Offset 285, 18 lines modifiedOffset 285, 18 lines modified
285 ············]285 ············]
286 ········},286 ········},
287 ········{287 ········{
288 ············"cell_type":·"code",288 ············"cell_type":·"code",
289 ············"execution_count":·7,289 ············"execution_count":·7,
290 ············"metadata":·{290 ············"metadata":·{
291 ················"execution":·{291 ················"execution":·{
292 ····················"iopub.execute_input":·"2024-01-08T11:14:22.977259Z",292 ····················"iopub.execute_input":·"2024-01-08T11:26:25.413500Z",
293 ····················"iopub.status.busy":·"2024-01-08T11:14:22.976990Z",293 ····················"iopub.status.busy":·"2024-01-08T11:26:25.413224Z",
294 ····················"iopub.status.idle":·"2024-01-08T11:14:23.417748Z",294 ····················"iopub.status.idle":·"2024-01-08T11:26:26.395197Z",
295 ····················"shell.execute_reply":·"2024-01-08T11:14:23.416998Z"295 ····················"shell.execute_reply":·"2024-01-08T11:26:26.394427Z"
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-08T11:26:34.069549Z', " "'iopub.status.busy': '2024-01-08T11:26:34.069253Z', 'iopub.status.idle': " "'2024-01-08T11:26:36.891262Z', 'shell.execute_reply': " "'2024-01-08T11:26:36.890458Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:26:36.899463Z', 'iopub.status.busy': " "'2024-01-08T11:26:36.899184Z', 'iopub.status.idle': '2024-01-08T11:26:3 […]
    
Offset 36, 18 lines modifiedOffset 36, 18 lines modified
36 ············"execution_count":·1,36 ············"execution_count":·1,
37 ············"metadata":·{37 ············"metadata":·{
38 ················"ExecuteTime":·{38 ················"ExecuteTime":·{
39 ····················"end_time":·"2020-01-15T14:45:51.659160Z",39 ····················"end_time":·"2020-01-15T14:45:51.659160Z",
40 ····················"start_time":·"2020-01-15T14:45:50.528742Z"40 ····················"start_time":·"2020-01-15T14:45:50.528742Z"
41 ················},41 ················},
42 ················"execution":·{42 ················"execution":·{
43 ····················"iopub.execute_input":·"2024-01-08T11:14:29.576513Z",43 ····················"iopub.execute_input":·"2024-01-08T11:26:34.069549Z",
44 ····················"iopub.status.busy":·"2024-01-08T11:14:29.576236Z",44 ····················"iopub.status.busy":·"2024-01-08T11:26:34.069253Z",
45 ····················"iopub.status.idle":·"2024-01-08T11:14:31.061818Z",45 ····················"iopub.status.idle":·"2024-01-08T11:26:36.891262Z",
46 ····················"shell.execute_reply":·"2024-01-08T11:14:31.061004Z"46 ····················"shell.execute_reply":·"2024-01-08T11:26:36.890458Z"
47 ················}47 ················}
48 ············},48 ············},
49 ············"outputs":·[49 ············"outputs":·[
50 ················{50 ················{
51 ····················"ename":·"ImportError",51 ····················"ename":·"ImportError",
52 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",52 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
53 ····················"output_type":·"error",53 ····················"output_type":·"error",
Offset 91, 18 lines modifiedOffset 91, 18 lines modified
91 ············"execution_count":·2,91 ············"execution_count":·2,
92 ············"metadata":·{92 ············"metadata":·{
93 ················"ExecuteTime":·{93 ················"ExecuteTime":·{
94 ····················"end_time":·"2020-01-15T14:45:55.431708Z",94 ····················"end_time":·"2020-01-15T14:45:55.431708Z",
95 ····················"start_time":·"2020-01-15T14:45:55.104701Z"95 ····················"start_time":·"2020-01-15T14:45:55.104701Z"
96 ················},96 ················},
97 ················"execution":·{97 ················"execution":·{
98 ····················"iopub.execute_input":·"2024-01-08T11:14:31.068304Z",98 ····················"iopub.execute_input":·"2024-01-08T11:26:36.899463Z",
99 ····················"iopub.status.busy":·"2024-01-08T11:14:31.068009Z",99 ····················"iopub.status.busy":·"2024-01-08T11:26:36.899184Z",
100 ····················"iopub.status.idle":·"2024-01-08T11:14:31.149019Z",100 ····················"iopub.status.idle":·"2024-01-08T11:26:36.970708Z",
101 ····················"shell.execute_reply":·"2024-01-08T11:14:31.133013Z"101 ····················"shell.execute_reply":·"2024-01-08T11:26:36.959219Z"
102 ················}102 ················}
103 ············},103 ············},
104 ············"outputs":·[104 ············"outputs":·[
105 ················{105 ················{
106 ····················"ename":·"NameError",106 ····················"ename":·"NameError",
107 ····················"evalue":·"name·'air'·is·not·defined",107 ····················"evalue":·"name·'air'·is·not·defined",
108 ····················"output_type":·"error",108 ····················"output_type":·"error",
Offset 131, 18 lines modifiedOffset 131, 18 lines modified
131 ············"execution_count":·3,131 ············"execution_count":·3,
132 ············"metadata":·{132 ············"metadata":·{
133 ················"ExecuteTime":·{133 ················"ExecuteTime":·{
134 ····················"end_time":·"2020-01-15T14:45:57.889496Z",134 ····················"end_time":·"2020-01-15T14:45:57.889496Z",
135 ····················"start_time":·"2020-01-15T14:45:57.792269Z"135 ····················"start_time":·"2020-01-15T14:45:57.792269Z"
136 ················},136 ················},
137 ················"execution":·{137 ················"execution":·{
138 ····················"iopub.execute_input":·"2024-01-08T11:14:31.157994Z",138 ····················"iopub.execute_input":·"2024-01-08T11:26:36.983422Z",
139 ····················"iopub.status.busy":·"2024-01-08T11:14:31.157720Z",139 ····················"iopub.status.busy":·"2024-01-08T11:26:36.983157Z",
140 ····················"iopub.status.idle":·"2024-01-08T11:14:31.237028Z",140 ····················"iopub.status.idle":·"2024-01-08T11:26:37.046671Z",
141 ····················"shell.execute_reply":·"2024-01-08T11:14:31.220997Z"141 ····················"shell.execute_reply":·"2024-01-08T11:26:37.039309Z"
142 ················}142 ················}
143 ············},143 ············},
144 ············"outputs":·[144 ············"outputs":·[
145 ················{145 ················{
146 ····················"ename":·"NameError",146 ····················"ename":·"NameError",
147 ····················"evalue":·"name·'air'·is·not·defined",147 ····················"evalue":·"name·'air'·is·not·defined",
148 ····················"output_type":·"error",148 ····················"output_type":·"error",
Offset 190, 18 lines modifiedOffset 190, 18 lines modified
190 ············"execution_count":·4,190 ············"execution_count":·4,
191 ············"metadata":·{191 ············"metadata":·{
192 ················"ExecuteTime":·{192 ················"ExecuteTime":·{
193 ····················"end_time":·"2020-01-15T14:45:59.768626Z",193 ····················"end_time":·"2020-01-15T14:45:59.768626Z",
194 ····················"start_time":·"2020-01-15T14:45:59.543808Z"194 ····················"start_time":·"2020-01-15T14:45:59.543808Z"
195 ················},195 ················},
196 ················"execution":·{196 ················"execution":·{
197 ····················"iopub.execute_input":·"2024-01-08T11:14:31.247457Z",197 ····················"iopub.execute_input":·"2024-01-08T11:26:37.053220Z",
198 ····················"iopub.status.busy":·"2024-01-08T11:14:31.247184Z",198 ····················"iopub.status.busy":·"2024-01-08T11:26:37.052857Z",
199 ····················"iopub.status.idle":·"2024-01-08T11:14:31.313021Z",199 ····················"iopub.status.idle":·"2024-01-08T11:26:37.106653Z",
200 ····················"shell.execute_reply":·"2024-01-08T11:14:31.297006Z"200 ····················"shell.execute_reply":·"2024-01-08T11:26:37.099284Z"
201 ················}201 ················}
202 ············},202 ············},
203 ············"outputs":·[203 ············"outputs":·[
204 ················{204 ················{
205 ····················"ename":·"NameError",205 ····················"ename":·"NameError",
206 ····················"evalue":·"name·'air'·is·not·defined",206 ····················"evalue":·"name·'air'·is·not·defined",
207 ····················"output_type":·"error",207 ····················"output_type":·"error",
Offset 256, 18 lines modifiedOffset 256, 18 lines modified
256 ············"execution_count":·5,256 ············"execution_count":·5,
257 ············"metadata":·{257 ············"metadata":·{
258 ················"ExecuteTime":·{258 ················"ExecuteTime":·{
259 ····················"end_time":·"2020-01-15T14:46:02.187012Z",259 ····················"end_time":·"2020-01-15T14:46:02.187012Z",
260 ····················"start_time":·"2020-01-15T14:46:02.105563Z"260 ····················"start_time":·"2020-01-15T14:46:02.105563Z"
261 ················},261 ················},
262 ················"execution":·{262 ················"execution":·{
263 ····················"iopub.execute_input":·"2024-01-08T11:14:31.322050Z",263 ····················"iopub.execute_input":·"2024-01-08T11:26:37.113040Z",
264 ····················"iopub.status.busy":·"2024-01-08T11:14:31.321771Z",264 ····················"iopub.status.busy":·"2024-01-08T11:26:37.112683Z",
265 ····················"iopub.status.idle":·"2024-01-08T11:14:31.351031Z",265 ····················"iopub.status.idle":·"2024-01-08T11:26:37.218485Z",
266 ····················"shell.execute_reply":·"2024-01-08T11:14:31.347083Z"266 ····················"shell.execute_reply":·"2024-01-08T11:26:37.202455Z"
267 ················}267 ················}
268 ············},268 ············},
269 ············"outputs":·[269 ············"outputs":·[
270 ················{270 ················{
271 ····················"ename":·"NameError",271 ····················"ename":·"NameError",
272 ····················"evalue":·"name·'air'·is·not·defined",272 ····················"evalue":·"name·'air'·is·not·defined",
273 ····················"output_type":·"error",273 ····················"output_type":·"error",
Offset 334, 18 lines modifiedOffset 334, 18 lines modified
334 ············"execution_count":·6,334 ············"execution_count":·6,
335 ············"metadata":·{335 ············"metadata":·{
336 ················"ExecuteTime":·{336 ················"ExecuteTime":·{
337 ····················"end_time":·"2020-01-15T14:46:05.031672Z",337 ····················"end_time":·"2020-01-15T14:46:05.031672Z",
338 ····················"start_time":·"2020-01-15T14:46:04.947588Z"338 ····················"start_time":·"2020-01-15T14:46:04.947588Z"
339 ················},339 ················},
340 ················"execution":·{340 ················"execution":·{
341 ····················"iopub.execute_input":·"2024-01-08T11:14:31.354965Z",341 ····················"iopub.execute_input":·"2024-01-08T11:26:37.230619Z",
342 ····················"iopub.status.busy":·"2024-01-08T11:14:31.354500Z",342 ····················"iopub.status.busy":·"2024-01-08T11:26:37.227121Z",
343 ····················"iopub.status.idle":·"2024-01-08T11:14:31.407915Z",343 ····················"iopub.status.idle":·"2024-01-08T11:26:37.326479Z",
344 ····················"shell.execute_reply":·"2024-01-08T11:14:31.407234Z"344 ····················"shell.execute_reply":·"2024-01-08T11:26:37.310466Z"
345 ················}345 ················}
346 ············},346 ············},
347 ············"outputs":·[347 ············"outputs":·[
348 ················{348 ················{
349 ····················"ename":·"NameError",349 ····················"ename":·"NameError",
350 ····················"evalue":·"name·'air'·is·not·defined",350 ····················"evalue":·"name·'air'·is·not·defined",
351 ····················"output_type":·"error",351 ····················"output_type":·"error",
Offset 380, 18 lines modifiedOffset 380, 18 lines modified
380 ············"execution_count":·7,380 ············"execution_count":·7,
381 ············"metadata":·{381 ············"metadata":·{
382 ················"ExecuteTime":·{382 ················"ExecuteTime":·{
383 ····················"end_time":·"2020-01-15T14:46:09.325218Z",383 ····················"end_time":·"2020-01-15T14:46:09.325218Z",
384 ····················"start_time":·"2020-01-15T14:46:09.303020Z"384 ····················"start_time":·"2020-01-15T14:46:09.303020Z"
385 ················},385 ················},
386 ················"execution":·{386 ················"execution":·{
387 ····················"iopub.execute_input":·"2024-01-08T11:14:31.411618Z",387 ····················"iopub.execute_input":·"2024-01-08T11:26:37.333154Z",
388 ····················"iopub.status.busy":·"2024-01-08T11:14:31.411366Z",388 ····················"iopub.status.busy":·"2024-01-08T11:26:37.332878Z",
389 ····················"iopub.status.idle":·"2024-01-08T11:14:31.439647Z",389 ····················"iopub.status.idle":·"2024-01-08T11:26:37.379179Z",
390 ····················"shell.execute_reply":·"2024-01-08T11:14:31.437000Z"390 ····················"shell.execute_reply":·"2024-01-08T11:26:37.378453Z"
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-08T11:26:48.250678Z', " "'iopub.status.busy': '2024-01-08T11:26:48.250352Z', 'iopub.status.idle': " "'2024-01-08T11:26:53.047228Z', 'shell.execute_reply': " "'2024-01-08T11:26:53.046473Z'}}}, 4: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:26:53.055596Z', 'iopub.status.busy': " "'2024-01-08T11:26:53.055198Z', 'iopub.status.idle': '2024-01-08T11:26:5 […]
    
Offset 28, 18 lines modifiedOffset 28, 18 lines modified
28 ············"execution_count":·1,28 ············"execution_count":·1,
29 ············"metadata":·{29 ············"metadata":·{
30 ················"ExecuteTime":·{30 ················"ExecuteTime":·{
31 ····················"end_time":·"2020-03-17T14:43:57.222351Z",31 ····················"end_time":·"2020-03-17T14:43:57.222351Z",
32 ····················"start_time":·"2020-03-17T14:43:56.147541Z"32 ····················"start_time":·"2020-03-17T14:43:56.147541Z"
33 ················},33 ················},
34 ················"execution":·{34 ················"execution":·{
35 ····················"iopub.execute_input":·"2024-01-08T11:14:41.778048Z",35 ····················"iopub.execute_input":·"2024-01-08T11:26:48.250678Z",
36 ····················"iopub.status.busy":·"2024-01-08T11:14:41.777740Z",36 ····················"iopub.status.busy":·"2024-01-08T11:26:48.250352Z",
37 ····················"iopub.status.idle":·"2024-01-08T11:14:44.085022Z",37 ····················"iopub.status.idle":·"2024-01-08T11:26:53.047228Z",
38 ····················"shell.execute_reply":·"2024-01-08T11:14:44.069147Z"38 ····················"shell.execute_reply":·"2024-01-08T11:26:53.046473Z"
39 ················}39 ················}
40 ············},40 ············},
41 ············"outputs":·[],41 ············"outputs":·[],
42 ············"source":·[42 ············"source":·[
43 ················"%matplotlib·inline\n",43 ················"%matplotlib·inline\n",
44 ················"\n",44 ················"\n",
45 ················"import·cartopy.crs·as·ccrs\n",45 ················"import·cartopy.crs·as·ccrs\n",
Offset 63, 18 lines modifiedOffset 63, 18 lines modified
63 ············"execution_count":·2,63 ············"execution_count":·2,
64 ············"metadata":·{64 ············"metadata":·{
65 ················"ExecuteTime":·{65 ················"ExecuteTime":·{
66 ····················"end_time":·"2020-03-17T14:43:57.831734Z",66 ····················"end_time":·"2020-03-17T14:43:57.831734Z",
67 ····················"start_time":·"2020-03-17T14:43:57.651845Z"67 ····················"start_time":·"2020-03-17T14:43:57.651845Z"
68 ················},68 ················},
69 ················"execution":·{69 ················"execution":·{
70 ····················"iopub.execute_input":·"2024-01-08T11:14:44.098216Z",70 ····················"iopub.execute_input":·"2024-01-08T11:26:53.055596Z",
71 ····················"iopub.status.busy":·"2024-01-08T11:14:44.097779Z",71 ····················"iopub.status.busy":·"2024-01-08T11:26:53.055198Z",
72 ····················"iopub.status.idle":·"2024-01-08T11:14:44.497024Z",72 ····················"iopub.status.idle":·"2024-01-08T11:26:53.582740Z",
73 ····················"shell.execute_reply":·"2024-01-08T11:14:44.480990Z"73 ····················"shell.execute_reply":·"2024-01-08T11:26:53.575282Z"
74 ················}74 ················}
75 ············},75 ············},
76 ············"outputs":·[76 ············"outputs":·[
77 ················{77 ················{
78 ····················"ename":·"ImportError",78 ····················"ename":·"ImportError",
79 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",79 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
80 ····················"output_type":·"error",80 ····················"output_type":·"error",
Offset 116, 18 lines modifiedOffset 116, 18 lines modified
116 ············"execution_count":·3,116 ············"execution_count":·3,
117 ············"metadata":·{117 ············"metadata":·{
118 ················"ExecuteTime":·{118 ················"ExecuteTime":·{
119 ····················"end_time":·"2020-03-17T14:43:59.887120Z",119 ····················"end_time":·"2020-03-17T14:43:59.887120Z",
120 ····················"start_time":·"2020-03-17T14:43:59.582894Z"120 ····················"start_time":·"2020-03-17T14:43:59.582894Z"
121 ················},121 ················},
122 ················"execution":·{122 ················"execution":·{
123 ····················"iopub.execute_input":·"2024-01-08T11:14:44.507560Z",123 ····················"iopub.execute_input":·"2024-01-08T11:26:53.589048Z",
124 ····················"iopub.status.busy":·"2024-01-08T11:14:44.507296Z",124 ····················"iopub.status.busy":·"2024-01-08T11:26:53.588772Z",
125 ····················"iopub.status.idle":·"2024-01-08T11:14:44.857029Z",125 ····················"iopub.status.idle":·"2024-01-08T11:26:53.975634Z",
126 ····················"shell.execute_reply":·"2024-01-08T11:14:44.841005Z"126 ····················"shell.execute_reply":·"2024-01-08T11:26:53.970463Z"
127 ················}127 ················}
128 ············},128 ············},
129 ············"outputs":·[129 ············"outputs":·[
130 ················{130 ················{
131 ····················"ename":·"NameError",131 ····················"ename":·"NameError",
132 ····················"evalue":·"name·'air'·is·not·defined",132 ····················"evalue":·"name·'air'·is·not·defined",
133 ····················"output_type":·"error",133 ····················"output_type":·"error",
Offset 172, 18 lines modifiedOffset 172, 18 lines modified
172 ············"execution_count":·4,172 ············"execution_count":·4,
173 ············"metadata":·{173 ············"metadata":·{
174 ················"ExecuteTime":·{174 ················"ExecuteTime":·{
175 ····················"end_time":·"2020-03-17T14:44:18.777092Z",175 ····················"end_time":·"2020-03-17T14:44:18.777092Z",
176 ····················"start_time":·"2020-03-17T14:44:18.736587Z"176 ····················"start_time":·"2020-03-17T14:44:18.736587Z"
177 ················},177 ················},
178 ················"execution":·{178 ················"execution":·{
179 ····················"iopub.execute_input":·"2024-01-08T11:14:44.863763Z",179 ····················"iopub.execute_input":·"2024-01-08T11:26:53.982758Z",
180 ····················"iopub.status.busy":·"2024-01-08T11:14:44.863489Z",180 ····················"iopub.status.busy":·"2024-01-08T11:26:53.980549Z",
181 ····················"iopub.status.idle":·"2024-01-08T11:14:44.945014Z",181 ····················"iopub.status.idle":·"2024-01-08T11:26:54.036272Z",
182 ····················"shell.execute_reply":·"2024-01-08T11:14:44.928997Z"182 ····················"shell.execute_reply":·"2024-01-08T11:26:54.035523Z"
183 ················}183 ················}
184 ············},184 ············},
185 ············"outputs":·[185 ············"outputs":·[
186 ················{186 ················{
187 ····················"ename":·"NameError",187 ····················"ename":·"NameError",
188 ····················"evalue":·"name·'air'·is·not·defined",188 ····················"evalue":·"name·'air'·is·not·defined",
189 ····················"output_type":·"error",189 ····················"output_type":·"error",
Offset 213, 18 lines modifiedOffset 213, 18 lines modified
213 ············"execution_count":·5,213 ············"execution_count":·5,
214 ············"metadata":·{214 ············"metadata":·{
215 ················"ExecuteTime":·{215 ················"ExecuteTime":·{
216 ····················"end_time":·"2020-03-17T14:44:52.607120Z",216 ····················"end_time":·"2020-03-17T14:44:52.607120Z",
217 ····················"start_time":·"2020-03-17T14:44:52.564674Z"217 ····················"start_time":·"2020-03-17T14:44:52.564674Z"
218 ················},218 ················},
219 ················"execution":·{219 ················"execution":·{
220 ····················"iopub.execute_input":·"2024-01-08T11:14:44.954081Z",220 ····················"iopub.execute_input":·"2024-01-08T11:26:54.042997Z",
221 ····················"iopub.status.busy":·"2024-01-08T11:14:44.953798Z",221 ····················"iopub.status.busy":·"2024-01-08T11:26:54.040819Z",
222 ····················"iopub.status.idle":·"2024-01-08T11:14:45.037014Z",222 ····················"iopub.status.idle":·"2024-01-08T11:26:54.091071Z",
223 ····················"shell.execute_reply":·"2024-01-08T11:14:45.020998Z"223 ····················"shell.execute_reply":·"2024-01-08T11:26:54.090516Z"
224 ················}224 ················}
225 ············},225 ············},
226 ············"outputs":·[226 ············"outputs":·[
227 ················{227 ················{
228 ····················"ename":·"NameError",228 ····················"ename":·"NameError",
229 ····················"evalue":·"name·'air'·is·not·defined",229 ····················"evalue":·"name·'air'·is·not·defined",
230 ····················"output_type":·"error",230 ····················"output_type":·"error",
Offset 246, 18 lines modifiedOffset 246, 18 lines modified
246 ············"execution_count":·6,246 ············"execution_count":·6,
247 ············"metadata":·{247 ············"metadata":·{
248 ················"ExecuteTime":·{248 ················"ExecuteTime":·{
249 ····················"end_time":·"2020-03-17T14:44:54.334279Z",249 ····················"end_time":·"2020-03-17T14:44:54.334279Z",
250 ····················"start_time":·"2020-03-17T14:44:54.280022Z"250 ····················"start_time":·"2020-03-17T14:44:54.280022Z"
251 ················},251 ················},
252 ················"execution":·{252 ················"execution":·{
253 ····················"iopub.execute_input":·"2024-01-08T11:14:45.043715Z",253 ····················"iopub.execute_input":·"2024-01-08T11:26:54.097668Z",
254 ····················"iopub.status.busy":·"2024-01-08T11:14:45.043432Z",254 ····················"iopub.status.busy":·"2024-01-08T11:26:54.095544Z",
255 ····················"iopub.status.idle":·"2024-01-08T11:14:45.321728Z",255 ····················"iopub.status.idle":·"2024-01-08T11:26:54.535956Z",
256 ····················"shell.execute_reply":·"2024-01-08T11:14:45.320992Z"256 ····················"shell.execute_reply":·"2024-01-08T11:26:54.535372Z"
257 ················}257 ················}
258 ············},258 ············},
259 ············"outputs":·[259 ············"outputs":·[
260 ················{260 ················{
261 ····················"ename":·"NameError",261 ····················"ename":·"NameError",
262 ····················"evalue":·"name·'air_weighted'·is·not·defined",262 ····················"evalue":·"name·'air_weighted'·is·not·defined",
263 ····················"output_type":·"error",263 ····················"output_type":·"error",
Offset 288, 18 lines modifiedOffset 288, 18 lines modified
288 ············"execution_count":·7,288 ············"execution_count":·7,
289 ············"metadata":·{289 ············"metadata":·{
290 ················"ExecuteTime":·{290 ················"ExecuteTime":·{
291 ····················"end_time":·"2020-03-17T14:45:08.877307Z",291 ····················"end_time":·"2020-03-17T14:45:08.877307Z",
292 ····················"start_time":·"2020-03-17T14:45:08.673383Z"292 ····················"start_time":·"2020-03-17T14:45:08.673383Z"
293 ················},293 ················},
294 ················"execution":·{294 ················"execution":·{
295 ····················"iopub.execute_input":·"2024-01-08T11:14:45.345995Z",295 ····················"iopub.execute_input":·"2024-01-08T11:26:54.543383Z",
296 ····················"iopub.status.busy":·"2024-01-08T11:14:45.345723Z",296 ····················"iopub.status.busy":·"2024-01-08T11:26:54.540305Z",
297 ····················"iopub.status.idle":·"2024-01-08T11:14:45.373733Z",297 ····················"iopub.status.idle":·"2024-01-08T11:26:54.591773Z",
298 ····················"shell.execute_reply":·"2024-01-08T11:14:45.373003Z"298 ····················"shell.execute_reply":·"2024-01-08T11:26:54.590470Z"
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-08T11:27:02.347443Z', " "'iopub.status.busy': '2024-01-08T11:27:02.347139Z', 'iopub.status.idle': " "'2024-01-08T11:27:05.151310Z', 'shell.execute_reply': " "'2024-01-08T11:27:05.150459Z'}}}}"}
    
Offset 12, 18 lines modifiedOffset 12, 18 lines modified
12 ········},12 ········},
13 ········{13 ········{
14 ············"cell_type":·"code",14 ············"cell_type":·"code",
15 ············"execution_count":·1,15 ············"execution_count":·1,
16 ············"id":·"41b90ede",16 ············"id":·"41b90ede",
17 ············"metadata":·{17 ············"metadata":·{
18 ················"execution":·{18 ················"execution":·{
19 ····················"iopub.execute_input":·"2024-01-08T11:14:50.598044Z",19 ····················"iopub.execute_input":·"2024-01-08T11:27:02.347443Z",
20 ····················"iopub.status.busy":·"2024-01-08T11:14:50.597737Z",20 ····················"iopub.status.busy":·"2024-01-08T11:27:02.347139Z",
21 ····················"iopub.status.idle":·"2024-01-08T11:14:52.541798Z",21 ····················"iopub.status.idle":·"2024-01-08T11:27:05.151310Z",
22 ····················"shell.execute_reply":·"2024-01-08T11:14:52.540999Z"22 ····················"shell.execute_reply":·"2024-01-08T11:27:05.150459Z"
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-08T11:27:12.172407Z', " "'iopub.status.busy': '2024-01-08T11:27:12.172098Z', 'iopub.status.idle': " "'2024-01-08T11:27:16.017674Z', 'shell.execute_reply': " "'2024-01-08T11:27:16.016967Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:27:16.021155Z', 'iopub.status.busy': " "'2024-01-08T11:27:16.020634Z', 'iopub.status.idle': '2024-01-08T11:27:1 […]
    
Offset 19, 18 lines modifiedOffset 19, 18 lines modified
19 ············"execution_count":·1,19 ············"execution_count":·1,
20 ············"metadata":·{20 ············"metadata":·{
21 ················"ExecuteTime":·{21 ················"ExecuteTime":·{
22 ····················"end_time":·"2018-11-28T20:51:35.958210Z",22 ····················"end_time":·"2018-11-28T20:51:35.958210Z",
23 ····················"start_time":·"2018-11-28T20:51:35.936966Z"23 ····················"start_time":·"2018-11-28T20:51:35.936966Z"
24 ················},24 ················},
25 ················"execution":·{25 ················"execution":·{
26 ····················"iopub.execute_input":·"2024-01-08T11:14:56.258039Z",26 ····················"iopub.execute_input":·"2024-01-08T11:27:12.172407Z",
27 ····················"iopub.status.busy":·"2024-01-08T11:14:56.257710Z",27 ····················"iopub.status.busy":·"2024-01-08T11:27:12.172098Z",
28 ····················"iopub.status.idle":·"2024-01-08T11:14:58.529840Z",28 ····················"iopub.status.idle":·"2024-01-08T11:27:16.017674Z",
29 ····················"shell.execute_reply":·"2024-01-08T11:14:58.529060Z"29 ····················"shell.execute_reply":·"2024-01-08T11:27:16.016967Z"
30 ················}30 ················}
31 ············},31 ············},
32 ············"outputs":·[],32 ············"outputs":·[],
33 ············"source":·[33 ············"source":·[
34 ················"%matplotlib·inline\n",34 ················"%matplotlib·inline\n",
35 ················"import·numpy·as·np\n",35 ················"import·numpy·as·np\n",
36 ················"import·pandas·as·pd\n",36 ················"import·pandas·as·pd\n",
Offset 50, 18 lines modifiedOffset 50, 18 lines modified
50 ············"execution_count":·2,50 ············"execution_count":·2,
51 ············"metadata":·{51 ············"metadata":·{
52 ················"ExecuteTime":·{52 ················"ExecuteTime":·{
53 ····················"end_time":·"2018-11-28T20:51:36.072316Z",53 ····················"end_time":·"2018-11-28T20:51:36.072316Z",
54 ····················"start_time":·"2018-11-28T20:51:36.016594Z"54 ····················"start_time":·"2018-11-28T20:51:36.016594Z"
55 ················},55 ················},
56 ················"execution":·{56 ················"execution":·{
57 ····················"iopub.execute_input":·"2024-01-08T11:14:58.538161Z",57 ····················"iopub.execute_input":·"2024-01-08T11:27:16.021155Z",
58 ····················"iopub.status.busy":·"2024-01-08T11:14:58.537760Z",58 ····················"iopub.status.busy":·"2024-01-08T11:27:16.020634Z",
59 ····················"iopub.status.idle":·"2024-01-08T11:14:58.837774Z",59 ····················"iopub.status.idle":·"2024-01-08T11:27:16.541032Z",
60 ····················"shell.execute_reply":·"2024-01-08T11:14:58.836996Z"60 ····················"shell.execute_reply":·"2024-01-08T11:27:16.540368Z"
61 ················}61 ················}
62 ············},62 ············},
63 ············"outputs":·[63 ············"outputs":·[
64 ················{64 ················{
65 ····················"ename":·"ImportError",65 ····················"ename":·"ImportError",
66 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",66 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
67 ····················"output_type":·"error",67 ····················"output_type":·"error",
Offset 96, 18 lines modifiedOffset 96, 18 lines modified
96 ············]96 ············]
97 ········},97 ········},
98 ········{98 ········{
99 ············"cell_type":·"code",99 ············"cell_type":·"code",
100 ············"execution_count":·3,100 ············"execution_count":·3,
101 ············"metadata":·{101 ············"metadata":·{
102 ················"execution":·{102 ················"execution":·{
103 ····················"iopub.execute_input":·"2024-01-08T11:14:58.846132Z",103 ····················"iopub.execute_input":·"2024-01-08T11:27:16.550734Z",
104 ····················"iopub.status.busy":·"2024-01-08T11:14:58.845854Z",104 ····················"iopub.status.busy":·"2024-01-08T11:27:16.543594Z",
105 ····················"iopub.status.idle":·"2024-01-08T11:14:58.865753Z",105 ····················"iopub.status.idle":·"2024-01-08T11:27:16.580596Z",
106 ····················"shell.execute_reply":·"2024-01-08T11:14:58.864993Z"106 ····················"shell.execute_reply":·"2024-01-08T11:27:16.580009Z"
107 ················}107 ················}
108 ············},108 ············},
109 ············"outputs":·[109 ············"outputs":·[
110 ················{110 ················{
111 ····················"ename":·"NameError",111 ····················"ename":·"NameError",
112 ····················"evalue":·"name·'ds'·is·not·defined",112 ····················"evalue":·"name·'ds'·is·not·defined",
113 ····················"output_type":·"error",113 ····················"output_type":·"error",
Offset 129, 18 lines modifiedOffset 129, 18 lines modified
129 ············"execution_count":·4,129 ············"execution_count":·4,
130 ············"metadata":·{130 ············"metadata":·{
131 ················"ExecuteTime":·{131 ················"ExecuteTime":·{
132 ····················"end_time":·"2018-11-28T20:51:36.132413Z",132 ····················"end_time":·"2018-11-28T20:51:36.132413Z",
133 ····················"start_time":·"2018-11-28T20:51:36.073708Z"133 ····················"start_time":·"2018-11-28T20:51:36.073708Z"
134 ················},134 ················},
135 ················"execution":·{135 ················"execution":·{
136 ····················"iopub.execute_input":·"2024-01-08T11:14:58.874105Z",136 ····················"iopub.execute_input":·"2024-01-08T11:27:16.589909Z",
137 ····················"iopub.status.busy":·"2024-01-08T11:14:58.873834Z",137 ····················"iopub.status.busy":·"2024-01-08T11:27:16.588699Z",
138 ····················"iopub.status.idle":·"2024-01-08T11:14:58.905764Z",138 ····················"iopub.status.idle":·"2024-01-08T11:27:16.639483Z",
139 ····················"shell.execute_reply":·"2024-01-08T11:14:58.904992Z"139 ····················"shell.execute_reply":·"2024-01-08T11:27:16.638453Z"
140 ················}140 ················}
141 ············},141 ············},
142 ············"outputs":·[142 ············"outputs":·[
143 ················{143 ················{
144 ····················"ename":·"NameError",144 ····················"ename":·"NameError",
145 ····················"evalue":·"name·'month_length'·is·not·defined",145 ····················"evalue":·"name·'month_length'·is·not·defined",
146 ····················"output_type":·"error",146 ····················"output_type":·"error",
Offset 170, 18 lines modifiedOffset 170, 18 lines modified
170 ············"execution_count":·5,170 ············"execution_count":·5,
171 ············"metadata":·{171 ············"metadata":·{
172 ················"ExecuteTime":·{172 ················"ExecuteTime":·{
173 ····················"end_time":·"2018-11-28T20:51:36.152913Z",173 ····················"end_time":·"2018-11-28T20:51:36.152913Z",
174 ····················"start_time":·"2018-11-28T20:51:36.133997Z"174 ····················"start_time":·"2018-11-28T20:51:36.133997Z"
175 ················},175 ················},
176 ················"execution":·{176 ················"execution":·{
177 ····················"iopub.execute_input":·"2024-01-08T11:14:58.914088Z",177 ····················"iopub.execute_input":·"2024-01-08T11:27:16.642917Z",
178 ····················"iopub.status.busy":·"2024-01-08T11:14:58.913822Z",178 ····················"iopub.status.busy":·"2024-01-08T11:27:16.641954Z",
179 ····················"iopub.status.idle":·"2024-01-08T11:14:58.937738Z",179 ····················"iopub.status.idle":·"2024-01-08T11:27:16.674069Z",
180 ····················"shell.execute_reply":·"2024-01-08T11:14:58.936989Z"180 ····················"shell.execute_reply":·"2024-01-08T11:27:16.673503Z"
181 ················}181 ················}
182 ············},182 ············},
183 ············"outputs":·[183 ············"outputs":·[
184 ················{184 ················{
185 ····················"ename":·"NameError",185 ····················"ename":·"NameError",
186 ····················"evalue":·"name·'ds_weighted'·is·not·defined",186 ····················"evalue":·"name·'ds_weighted'·is·not·defined",
187 ····················"output_type":·"error",187 ····················"output_type":·"error",
Offset 202, 18 lines modifiedOffset 202, 18 lines modified
202 ············"execution_count":·6,202 ············"execution_count":·6,
203 ············"metadata":·{203 ············"metadata":·{
204 ················"ExecuteTime":·{204 ················"ExecuteTime":·{
205 ····················"end_time":·"2018-11-28T20:51:36.190765Z",205 ····················"end_time":·"2018-11-28T20:51:36.190765Z",
206 ····················"start_time":·"2018-11-28T20:51:36.154416Z"206 ····················"start_time":·"2018-11-28T20:51:36.154416Z"
207 ················},207 ················},
208 ················"execution":·{208 ················"execution":·{
209 ····················"iopub.execute_input":·"2024-01-08T11:14:58.946048Z",209 ····················"iopub.execute_input":·"2024-01-08T11:27:16.682998Z",
210 ····················"iopub.status.busy":·"2024-01-08T11:14:58.945775Z",210 ····················"iopub.status.busy":·"2024-01-08T11:27:16.677411Z",
211 ····················"iopub.status.idle":·"2024-01-08T11:14:58.969741Z",211 ····················"iopub.status.idle":·"2024-01-08T11:27:16.722014Z",
212 ····················"shell.execute_reply":·"2024-01-08T11:14:58.969015Z"212 ····················"shell.execute_reply":·"2024-01-08T11:27:16.721448Z"
213 ················}213 ················}
214 ············},214 ············},
215 ············"outputs":·[215 ············"outputs":·[
216 ················{216 ················{
217 ····················"ename":·"NameError",217 ····················"ename":·"NameError",
218 ····················"evalue":·"name·'ds'·is·not·defined",218 ····················"evalue":·"name·'ds'·is·not·defined",
219 ····················"output_type":·"error",219 ····················"output_type":·"error",
Offset 236, 18 lines modifiedOffset 236, 18 lines modified
236 ············"execution_count":·7,236 ············"execution_count":·7,
237 ············"metadata":·{237 ············"metadata":·{
238 ················"ExecuteTime":·{238 ················"ExecuteTime":·{
239 ····················"end_time":·"2018-11-28T20:51:40.264871Z",239 ····················"end_time":·"2018-11-28T20:51:40.264871Z",
240 ····················"start_time":·"2018-11-28T20:51:36.192467Z"240 ····················"start_time":·"2018-11-28T20:51:36.192467Z"
241 ················},241 ················},
242 ················"execution":·{242 ················"execution":·{
243 ····················"iopub.execute_input":·"2024-01-08T11:14:58.978252Z",243 ····················"iopub.execute_input":·"2024-01-08T11:27:16.725308Z",
244 ····················"iopub.status.busy":·"2024-01-08T11:14:58.977979Z",244 ····················"iopub.status.busy":·"2024-01-08T11:27:16.724332Z",
245 ····················"iopub.status.idle":·"2024-01-08T11:14:59.021748Z",245 ····················"iopub.status.idle":·"2024-01-08T11:27:16.799471Z",
246 ····················"shell.execute_reply":·"2024-01-08T11:14:59.021013Z"246 ····················"shell.execute_reply":·"2024-01-08T11:27:16.798455Z"
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-08T11:27:23.775596Z', " "'iopub.status.busy': '2024-01-08T11:27:23.775280Z', 'iopub.status.idle': " "'2024-01-08T11:27:26.387363Z', 'shell.execute_reply': " "'2024-01-08T11:27:26.386644Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:27:26.395627Z', 'iopub.status.busy': " "'2024-01-08T11:27:26.395207Z', 'iopub.status.idle': '2024-01-08T11:27:2 […]
    
Offset 16, 18 lines modifiedOffset 16, 18 lines modified
16 ············"execution_count":·1,16 ············"execution_count":·1,
17 ············"metadata":·{17 ············"metadata":·{
18 ················"ExecuteTime":·{18 ················"ExecuteTime":·{
19 ····················"end_time":·"2018-11-28T20:49:56.068395Z",19 ····················"end_time":·"2018-11-28T20:49:56.068395Z",
20 ····················"start_time":·"2018-11-28T20:49:56.035349Z"20 ····················"start_time":·"2018-11-28T20:49:56.035349Z"
21 ················},21 ················},
22 ················"execution":·{22 ················"execution":·{
23 ····················"iopub.execute_input":·"2024-01-08T11:15:04.914111Z",23 ····················"iopub.execute_input":·"2024-01-08T11:27:23.775596Z",
24 ····················"iopub.status.busy":·"2024-01-08T11:15:04.913791Z",24 ····················"iopub.status.busy":·"2024-01-08T11:27:23.775280Z",
25 ····················"iopub.status.idle":·"2024-01-08T11:15:06.825011Z",25 ····················"iopub.status.idle":·"2024-01-08T11:27:26.387363Z",
26 ····················"shell.execute_reply":·"2024-01-08T11:15:06.809022Z"26 ····················"shell.execute_reply":·"2024-01-08T11:27:26.386644Z"
27 ················}27 ················}
28 ············},28 ············},
29 ············"outputs":·[],29 ············"outputs":·[],
30 ············"source":·[30 ············"source":·[
31 ················"%matplotlib·inline\n",31 ················"%matplotlib·inline\n",
32 ················"import·numpy·as·np\n",32 ················"import·numpy·as·np\n",
33 ················"import·pandas·as·pd\n",33 ················"import·pandas·as·pd\n",
Offset 48, 18 lines modifiedOffset 48, 18 lines modified
48 ············"execution_count":·2,48 ············"execution_count":·2,
49 ············"metadata":·{49 ············"metadata":·{
50 ················"ExecuteTime":·{50 ················"ExecuteTime":·{
51 ····················"end_time":·"2018-11-28T20:50:13.629720Z",51 ····················"end_time":·"2018-11-28T20:50:13.629720Z",
52 ····················"start_time":·"2018-11-28T20:50:13.484542Z"52 ····················"start_time":·"2018-11-28T20:50:13.484542Z"
53 ················},53 ················},
54 ················"execution":·{54 ················"execution":·{
55 ····················"iopub.execute_input":·"2024-01-08T11:15:06.832442Z",55 ····················"iopub.execute_input":·"2024-01-08T11:27:26.395627Z",
56 ····················"iopub.status.busy":·"2024-01-08T11:15:06.831995Z",56 ····················"iopub.status.busy":·"2024-01-08T11:27:26.395207Z",
57 ····················"iopub.status.idle":·"2024-01-08T11:15:07.189808Z",57 ····················"iopub.status.idle":·"2024-01-08T11:27:26.727243Z",
58 ····················"shell.execute_reply":·"2024-01-08T11:15:07.189040Z"58 ····················"shell.execute_reply":·"2024-01-08T11:27:26.726451Z"
59 ················}59 ················}
60 ············},60 ············},
61 ············"outputs":·[61 ············"outputs":·[
62 ················{62 ················{
63 ····················"ename":·"ImportError",63 ····················"ename":·"ImportError",
64 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",64 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
65 ····················"output_type":·"error",65 ····················"output_type":·"error",
Offset 93, 18 lines modifiedOffset 93, 18 lines modified
93 ············"execution_count":·3,93 ············"execution_count":·3,
94 ············"metadata":·{94 ············"metadata":·{
95 ················"ExecuteTime":·{95 ················"ExecuteTime":·{
96 ····················"end_time":·"2018-11-28T20:50:15.836061Z",96 ····················"end_time":·"2018-11-28T20:50:15.836061Z",
97 ····················"start_time":·"2018-11-28T20:50:15.768376Z"97 ····················"start_time":·"2018-11-28T20:50:15.768376Z"
98 ················},98 ················},
99 ················"execution":·{99 ················"execution":·{
100 ····················"iopub.execute_input":·"2024-01-08T11:15:07.198201Z",100 ····················"iopub.execute_input":·"2024-01-08T11:27:26.735499Z",
101 ····················"iopub.status.busy":·"2024-01-08T11:15:07.197922Z",101 ····················"iopub.status.busy":·"2024-01-08T11:27:26.735224Z",
102 ····················"iopub.status.idle":·"2024-01-08T11:15:07.221735Z",102 ····················"iopub.status.idle":·"2024-01-08T11:27:26.767200Z",
103 ····················"shell.execute_reply":·"2024-01-08T11:15:07.220992Z"103 ····················"shell.execute_reply":·"2024-01-08T11:27:26.766448Z"
104 ················}104 ················}
105 ············},105 ············},
106 ············"outputs":·[106 ············"outputs":·[
107 ················{107 ················{
108 ····················"ename":·"NameError",108 ····················"ename":·"NameError",
109 ····················"evalue":·"name·'ds'·is·not·defined",109 ····················"evalue":·"name·'ds'·is·not·defined",
110 ····················"output_type":·"error",110 ····················"output_type":·"error",
Offset 135, 18 lines modifiedOffset 135, 18 lines modified
135 ············"execution_count":·4,135 ············"execution_count":·4,
136 ············"metadata":·{136 ············"metadata":·{
137 ················"ExecuteTime":·{137 ················"ExecuteTime":·{
138 ····················"end_time":·"2018-11-28T20:50:17.928556Z",138 ····················"end_time":·"2018-11-28T20:50:17.928556Z",
139 ····················"start_time":·"2018-11-28T20:50:17.031211Z"139 ····················"start_time":·"2018-11-28T20:50:17.031211Z"
140 ················},140 ················},
141 ················"execution":·{141 ················"execution":·{
142 ····················"iopub.execute_input":·"2024-01-08T11:15:07.230010Z",142 ····················"iopub.execute_input":·"2024-01-08T11:27:26.770843Z",
143 ····················"iopub.status.busy":·"2024-01-08T11:15:07.229737Z",143 ····················"iopub.status.busy":·"2024-01-08T11:27:26.770584Z",
144 ····················"iopub.status.idle":·"2024-01-08T11:15:07.925756Z",144 ····················"iopub.status.idle":·"2024-01-08T11:27:27.519230Z",
145 ····················"shell.execute_reply":·"2024-01-08T11:15:07.925008Z"145 ····················"shell.execute_reply":·"2024-01-08T11:27:27.518484Z"
146 ················}146 ················}
147 ············},147 ············},
148 ············"outputs":·[148 ············"outputs":·[
149 ················{149 ················{
150 ····················"ename":·"NameError",150 ····················"ename":·"NameError",
151 ····················"evalue":·"name·'ds'·is·not·defined",151 ····················"evalue":·"name·'ds'·is·not·defined",
152 ····················"output_type":·"error",152 ····················"output_type":·"error",
Offset 188, 18 lines modifiedOffset 188, 18 lines modified
188 ············"execution_count":·5,188 ············"execution_count":·5,
189 ············"metadata":·{189 ············"metadata":·{
190 ················"ExecuteTime":·{190 ················"ExecuteTime":·{
191 ····················"end_time":·"2018-11-28T20:50:20.567749Z",191 ····················"end_time":·"2018-11-28T20:50:20.567749Z",
192 ····················"start_time":·"2018-11-28T20:50:19.999393Z"192 ····················"start_time":·"2018-11-28T20:50:19.999393Z"
193 ················},193 ················},
194 ················"execution":·{194 ················"execution":·{
195 ····················"iopub.execute_input":·"2024-01-08T11:15:07.929687Z",195 ····················"iopub.execute_input":·"2024-01-08T11:27:27.522905Z",
196 ····················"iopub.status.busy":·"2024-01-08T11:15:07.929397Z",196 ····················"iopub.status.busy":·"2024-01-08T11:27:27.522637Z",
197 ····················"iopub.status.idle":·"2024-01-08T11:15:07.961758Z",197 ····················"iopub.status.idle":·"2024-01-08T11:27:27.559160Z",
198 ····················"shell.execute_reply":·"2024-01-08T11:15:07.961002Z"198 ····················"shell.execute_reply":·"2024-01-08T11:27:27.558449Z"
199 ················}199 ················}
200 ············},200 ············},
201 ············"outputs":·[201 ············"outputs":·[
202 ················{202 ················{
203 ····················"ename":·"NameError",203 ····················"ename":·"NameError",
204 ····················"evalue":·"name·'ds'·is·not·defined",204 ····················"evalue":·"name·'ds'·is·not·defined",
205 ····················"output_type":·"error",205 ····················"output_type":·"error",
Offset 227, 18 lines modifiedOffset 227, 18 lines modified
227 ············"execution_count":·6,227 ············"execution_count":·6,
228 ············"metadata":·{228 ············"metadata":·{
229 ················"ExecuteTime":·{229 ················"ExecuteTime":·{
230 ····················"end_time":·"2018-11-28T20:50:31.131708Z",230 ····················"end_time":·"2018-11-28T20:50:31.131708Z",
231 ····················"start_time":·"2018-11-28T20:50:30.444697Z"231 ····················"start_time":·"2018-11-28T20:50:30.444697Z"
232 ················},232 ················},
233 ················"execution":·{233 ················"execution":·{
234 ····················"iopub.execute_input":·"2024-01-08T11:15:07.965411Z",234 ····················"iopub.execute_input":·"2024-01-08T11:27:27.562741Z",
235 ····················"iopub.status.busy":·"2024-01-08T11:15:07.965137Z",235 ····················"iopub.status.busy":·"2024-01-08T11:27:27.562477Z",
236 ····················"iopub.status.idle":·"2024-01-08T11:15:08.113764Z",236 ····················"iopub.status.idle":·"2024-01-08T11:27:27.731185Z",
237 ····················"shell.execute_reply":·"2024-01-08T11:15:08.113008Z"237 ····················"shell.execute_reply":·"2024-01-08T11:27:27.730446Z"
238 ················}238 ················}
239 ············},239 ············},
240 ············"outputs":·[240 ············"outputs":·[
241 ················{241 ················{
242 ····················"ename":·"NameError",242 ····················"ename":·"NameError",
243 ····················"evalue":·"name·'ds'·is·not·defined",243 ····················"evalue":·"name·'ds'·is·not·defined",
244 ····················"output_type":·"error",244 ····················"output_type":·"error",
Offset 285, 18 lines modifiedOffset 285, 18 lines modified
285 ············"execution_count":·7,285 ············"execution_count":·7,
286 ············"metadata":·{286 ············"metadata":·{
287 ················"ExecuteTime":·{287 ················"ExecuteTime":·{
288 ····················"end_time":·"2018-11-28T20:50:43.670463Z",288 ····················"end_time":·"2018-11-28T20:50:43.670463Z",
289 ····················"start_time":·"2018-11-28T20:50:43.245501Z"289 ····················"start_time":·"2018-11-28T20:50:43.245501Z"
290 ················},290 ················},
291 ················"execution":·{291 ················"execution":·{
292 ····················"iopub.execute_input":·"2024-01-08T11:15:08.117440Z",292 ····················"iopub.execute_input":·"2024-01-08T11:27:27.734770Z",
293 ····················"iopub.status.busy":·"2024-01-08T11:15:08.117179Z",293 ····················"iopub.status.busy":·"2024-01-08T11:27:27.734512Z",
294 ····················"iopub.status.idle":·"2024-01-08T11:15:08.145740Z",294 ····················"iopub.status.idle":·"2024-01-08T11:27:27.771180Z",
295 ····················"shell.execute_reply":·"2024-01-08T11:15:08.145010Z"295 ····················"shell.execute_reply":·"2024-01-08T11:27:27.770451Z"
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_1525232/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_3179774/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_1525232/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_3179774/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_1525232/2946363816.py:1:·DeprecationWarning:·open_rasterio·is216 /tmp/ipykernel_3179774/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_1525232/3653941964.py:4:·DeprecationWarning:·open_rasterio·is289 /tmp/ipykernel_3179774/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-08T11:27:34.583456Z', " "'iopub.status.busy': '2024-01-08T11:27:34.583160Z', 'iopub.status.idle': " "'2024-01-08T11:27:36.858459Z', 'shell.execute_reply': " "'2024-01-08T11:27:36.842469Z'}}}, 3: {'metadata': {'execution': " "{'iopub.execute_input': '2024-01-08T11:27:36.867599Z', 'iopub.status.busy': " "'2024-01-08T11:27:36.867180Z', 'iopub.status.idle': '2024-01-08T11:27: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":·"2024-01-08T11:15:14.266116Z",17 ····················"iopub.execute_input":·"2024-01-08T11:27:34.583456Z",
18 ····················"iopub.status.busy":·"2024-01-08T11:15:14.265799Z",18 ····················"iopub.status.busy":·"2024-01-08T11:27:34.583160Z",
19 ····················"iopub.status.idle":·"2024-01-08T11:15:16.185926Z",19 ····················"iopub.status.idle":·"2024-01-08T11:27:36.858459Z",
20 ····················"shell.execute_reply":·"2024-01-08T11:15:16.185124Z"20 ····················"shell.execute_reply":·"2024-01-08T11:27:36.842469Z"
21 ················}21 ················}
22 ············},22 ············},
23 ············"outputs":·[],23 ············"outputs":·[],
24 ············"source":·[24 ············"source":·[
25 ················"import·cartopy.crs·as·ccrs\n",25 ················"import·cartopy.crs·as·ccrs\n",
26 ················"import·matplotlib.pyplot·as·plt\n",26 ················"import·matplotlib.pyplot·as·plt\n",
27 ················"import·xarray·as·xr\n",27 ················"import·xarray·as·xr\n",
Offset 37, 18 lines modifiedOffset 37, 18 lines modified
37 ············]37 ············]
38 ········},38 ········},
39 ········{39 ········{
40 ············"cell_type":·"code",40 ············"cell_type":·"code",
41 ············"execution_count":·2,41 ············"execution_count":·2,
42 ············"metadata":·{42 ············"metadata":·{
43 ················"execution":·{43 ················"execution":·{
44 ····················"iopub.execute_input":·"2024-01-08T11:15:16.202280Z",44 ····················"iopub.execute_input":·"2024-01-08T11:27:36.867599Z",
45 ····················"iopub.status.busy":·"2024-01-08T11:15:16.201820Z",45 ····················"iopub.status.busy":·"2024-01-08T11:27:36.867180Z",
46 ····················"iopub.status.idle":·"2024-01-08T11:15:16.377894Z",46 ····················"iopub.status.idle":·"2024-01-08T11:27:37.242478Z",
47 ····················"shell.execute_reply":·"2024-01-08T11:15:16.377036Z"47 ····················"shell.execute_reply":·"2024-01-08T11:27:37.226428Z"
48 ················}48 ················}
49 ············},49 ············},
50 ············"outputs":·[50 ············"outputs":·[
51 ················{51 ················{
52 ····················"ename":·"ImportError",52 ····················"ename":·"ImportError",
53 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",53 ····················"evalue":·"tutorial.open_dataset·depends·on·pooch·to·download·and·manage·datasets.·To·proceed·please·install·pooch.",
54 ····················"output_type":·"error",54 ····················"output_type":·"error",
Offset 85, 18 lines modifiedOffset 85, 18 lines modified
85 ············]85 ············]
86 ········},86 ········},
87 ········{87 ········{
88 ············"cell_type":·"code",88 ············"cell_type":·"code",
89 ············"execution_count":·3,89 ············"execution_count":·3,
90 ············"metadata":·{90 ············"metadata":·{
91 ················"execution":·{91 ················"execution":·{
92 ····················"iopub.execute_input":·"2024-01-08T11:15:16.386112Z",92 ····················"iopub.execute_input":·"2024-01-08T11:27:37.252985Z",
93 ····················"iopub.status.busy":·"2024-01-08T11:15:16.385824Z",93 ····················"iopub.status.busy":·"2024-01-08T11:27:37.252701Z",
94 ····················"iopub.status.idle":·"2024-01-08T11:15:16.413810Z",94 ····················"iopub.status.idle":·"2024-01-08T11:27:37.322472Z",
95 ····················"shell.execute_reply":·"2024-01-08T11:15:16.413007Z"95 ····················"shell.execute_reply":·"2024-01-08T11:27:37.306452Z"
96 ················}96 ················}
97 ············},97 ············},
98 ············"outputs":·[98 ············"outputs":·[
99 ················{99 ················{
100 ····················"ename":·"NameError",100 ····················"ename":·"NameError",
101 ····················"evalue":·"name·'ds'·is·not·defined",101 ····················"evalue":·"name·'ds'·is·not·defined",
102 ····················"output_type":·"error",102 ····················"output_type":·"error",
Offset 138, 18 lines modifiedOffset 138, 18 lines modified
138 ············]138 ············]
139 ········},139 ········},
140 ········{140 ········{
141 ············"cell_type":·"code",141 ············"cell_type":·"code",
142 ············"execution_count":·4,142 ············"execution_count":·4,
143 ············"metadata":·{143 ············"metadata":·{
144 ················"execution":·{144 ················"execution":·{
145 ····················"iopub.execute_input":·"2024-01-08T11:15:16.422083Z",145 ····················"iopub.execute_input":·"2024-01-08T11:27:37.339444Z",
146 ····················"iopub.status.busy":·"2024-01-08T11:15:16.421791Z",146 ····················"iopub.status.busy":·"2024-01-08T11:27:37.339169Z",
147 ····················"iopub.status.idle":·"2024-01-08T11:15:16.461792Z",147 ····················"iopub.status.idle":·"2024-01-08T11:27:37.418465Z",
148 ····················"shell.execute_reply":·"2024-01-08T11:15:16.461002Z"148 ····················"shell.execute_reply":·"2024-01-08T11:27:37.402444Z"
149 ················}149 ················}
150 ············},150 ············},
151 ············"outputs":·[151 ············"outputs":·[
152 ················{152 ················{
153 ····················"ename":·"NameError",153 ····················"ename":·"NameError",
154 ····················"evalue":·"name·'ds'·is·not·defined",154 ····················"evalue":·"name·'ds'·is·not·defined",
155 ····················"output_type":·"error",155 ····················"output_type":·"error",
Offset 202, 18 lines modifiedOffset 202, 18 lines modified
202 ············]202 ············]
203 ········},203 ········},
204 ········{204 ········{
205 ············"cell_type":·"code",205 ············"cell_type":·"code",
206 ············"execution_count":·5,206 ············"execution_count":·5,
207 ············"metadata":·{207 ············"metadata":·{
208 ················"execution":·{208 ················"execution":·{
209 ····················"iopub.execute_input":·"2024-01-08T11:15:16.470108Z",209 ····················"iopub.execute_input":·"2024-01-08T11:27:37.435499Z",
210 ····················"iopub.status.busy":·"2024-01-08T11:15:16.469811Z",210 ····················"iopub.status.busy":·"2024-01-08T11:27:37.435218Z",
211 ····················"iopub.status.idle":·"2024-01-08T11:15:16.505685Z",211 ····················"iopub.status.idle":·"2024-01-08T11:27:37.455135Z",
212 ····················"shell.execute_reply":·"2024-01-08T11:15:16.504985Z"212 ····················"shell.execute_reply":·"2024-01-08T11:27:37.454436Z"
213 ················}213 ················}
214 ············},214 ············},
215 ············"outputs":·[215 ············"outputs":·[
216 ················{216 ················{
217 ····················"ename":·"NameError",217 ····················"ename":·"NameError",
218 ····················"evalue":·"name·'ds'·is·not·defined",218 ····················"evalue":·"name·'ds'·is·not·defined",
219 ····················"output_type":·"error",219 ····················"output_type":·"error",
Offset 258, 18 lines modifiedOffset 258, 18 lines modified
258 ············]258 ············]
259 ········},259 ········},
260 ········{260 ········{
261 ············"cell_type":·"code",261 ············"cell_type":·"code",
262 ············"execution_count":·6,262 ············"execution_count":·6,
263 ············"metadata":·{263 ············"metadata":·{
264 ················"execution":·{264 ················"execution":·{
265 ····················"iopub.execute_input":·"2024-01-08T11:15:16.514021Z",265 ····················"iopub.execute_input":·"2024-01-08T11:27:37.463376Z",
266 ····················"iopub.status.busy":·"2024-01-08T11:15:16.513738Z",266 ····················"iopub.status.busy":·"2024-01-08T11:27:37.463120Z",
267 ····················"iopub.status.idle":·"2024-01-08T11:15:16.549784Z",267 ····················"iopub.status.idle":·"2024-01-08T11:27:37.495106Z",
268 ····················"shell.execute_reply":·"2024-01-08T11:15:16.549008Z"268 ····················"shell.execute_reply":·"2024-01-08T11:27:37.494437Z"
269 ················}269 ················}
270 ············},270 ············},
271 ············"outputs":·[271 ············"outputs":·[
272 ················{272 ················{
273 ····················"ename":·"NameError",273 ····················"ename":·"NameError",
274 ····················"evalue":·"name·'ds'·is·not·defined",274 ····················"evalue":·"name·'ds'·is·not·defined",
275 ····················"output_type":·"error",275 ····················"output_type":·"error",
Offset 320, 26 lines modifiedOffset 320, 26 lines modified
320 ············]320 ············]
321 ········},321 ········},
322 ········{322 ········{
323 ············"cell_type":·"code",323 ············"cell_type":·"code",
324 ············"execution_count":·7,324 ············"execution_count":·7,
325 ············"metadata":·{325 ············"metadata":·{
326 ················"execution":·{326 ················"execution":·{
327 ····················"iopub.execute_input":·"2024-01-08T11:15:16.558023Z",327 ····················"iopub.execute_input":·"2024-01-08T11:27:37.503371Z",
328 ····················"iopub.status.busy":·"2024-01-08T11:15:16.557740Z",328 ····················"iopub.status.busy":·"2024-01-08T11:27:37.503114Z",
329 ····················"iopub.status.idle":·"2024-01-08T11:15:16.797817Z",329 ····················"iopub.status.idle":·"2024-01-08T11:27:37.803129Z",
330 ····················"shell.execute_reply":·"2024-01-08T11:15:16.797004Z"330 ····················"shell.execute_reply":·"2024-01-08T11:27:37.802428Z"
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-9153c5fb-111d-4a05-8c8e-a77c8a86fda1'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-9153c5fb-111d-4a05-8c8e-a77c8a86fda1'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·53dd07afb3b941263d73842d1a800e77d6ec0687f9f013bb5e072b36f6ab1d24·...·]'·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-fad972ab-a5c3-4f29-84cd-b845ddd8beff'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-fad972ab-a5c3-4f29-84cd-b845ddd8beff'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·0ecff7768fb852aa8657451e51acf986d7be37efbbe6594d68a87c1693f9246f·...·]'·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-b82652ce-8bbd-49ed-84c0-ab07bed8b899'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-b82652ce-8bbd-49ed-84c0-ab07bed8b899'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1501,·SHA:·5d55c422f68a9c98fecc8d2dbf9bee1e7c9cadf1b5eef7b783d51c3c2f38c8d7·...·]e'·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-9fe938e1-c09b-4d16-b335-415f9bc3970a'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-9fe938e1-c09b-4d16-b335-415f9bc3970a'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1501,·SHA:·10f28ebb8df889a9583d4e3867a3319ec3cbbb20d0d794af7e1d1bf654fb2027·...·]e'·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-b32b031e-a5ee-4224-a477-b2e38f15a8d5'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-b32b031e-a5ee-4224-a477-b2e38f15a8d5'·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:·d78d318f0a5508f311b8a5a376d5af85a251ecadfdfe366200b748dcf3b8789e·...·]'·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-a0e851d1-3470-488e-a3e8-a4c475794cfb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-a0e851d1-3470-488e-a3e8-a4c475794cfb'·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:·d31e32a57c3157754526e50fe3c3d174d7680325f1edf0975792072611b98b10·...·]'·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-695020c7-f34b-43b4-89b4-c1572ca113cf'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-695020c7-f34b-43b4-89b4-c1572ca113cf'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·a8165ec63d524ea0f2571506e1c9a4d44720ae6dd74011acbca940f92cc0a0ad·...·]'·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-4d0f1318-d068-4e6a-ab46-f64a09260a70'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-4d0f1318-d068-4e6a-ab46-f64a09260a70'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·98039605c935db428a2d0fbdf2ed2f1bb230e946f10cde15c4b54b1e956ba109·...·]'·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-4191f0ee-f8c9-4966-930f-376d10d7b984'·class='xr-index-data-in'·type='checkbox'/><label·for='index-4191f0ee-f8c9-4966-930f-376d10d7b984'·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:·3d7e7d7b27ec140d944810257bede6511e9efdbefd27bb8597fc160427da944e·...·]'·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-c09b8f68-ade6-4be4-94d8-9b2a5579436a'·class='xr-index-data-in'·type='checkbox'/><label·for='index-c09b8f68-ade6-4be4-94d8-9b2a5579436a'·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:·0d701653ac834365b197aa92aa4339042d11af42a8d684c5f06d6aab168b9629·...·]'·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·0xffff6edf2850&gt;939 &lt;seaborn.axisgrid.PairGrid·at·0xffff5e61fad0&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-36b5481c-9f62-4434-8cad-839c126e2992'·class='xr-array-in'·type='checkbox'·checked><label·for='section-36b5481c-9f62-4434-8cad-839c126e2992'·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-e14e8ec7-034b-471c-a10f-1255d24cdae8'·class='xr-array-in'·type='checkbox'·checked><label·for='section-e14e8ec7-034b-471c-a10f-1255d24cdae8'·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-1705cf06-3300-4ed8-8bec-e9833c16a2d4'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-1705cf06-3300-4ed8-8bec-e9833c16a2d4'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3721,·SHA:·6a83833eef3c74d71fa4266147b95a3fa42cb9123b452806b4d8f397d2ee68e1·...·]'·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-f433aa4b-f6b5-4858-8acd-e0a72ad27c11'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-f433aa4b-f6b5-4858-8acd-e0a72ad27c11'·class='xr-section-summary'·>Coordinates:·<span>(2)</span></label><div·class='xr-section-inline-details'><[·...·truncated·by·diffoscope;·len:·3721,·SHA:·eb4c60e7aab18ba9d70f633fc95463503476121435c7c5ba485731b6a509ef9d·...·]'·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-680c79bb-2bc2-40d3-8c1f-479bf6898112'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-680c79bb-2bc2-40d3-8c1f-479bf6898112'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1234,·SHA:·115376fdd560185f7adb5503cebbd68aa95daa8f38390dc31ce1d57cd27cd363·...·]f'·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-ef144e1e-ef73-4105-ad33-385e1749a70d'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-ef144e1e-ef73-4105-ad33-385e1749a70d'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1234,·SHA:·bb8f1526bdfb6812861b0285c73fd810e1f13c9392dd73e7f76a6e3797ec4cef·...·]f'·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-3d95ac78-48c0-49d3-9d9f-2e94779c3307'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-3d95ac78-48c0-49d3-9d9f-2e94779c3307'·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:·a0d50a75355e04d74d221d2ce353b509e08c15edf6fe371afbc3843fd5789b73·...·]'·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-9306d8ea-08b6-4381-b620-2cd47b76952a'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-9306d8ea-08b6-4381-b620-2cd47b76952a'·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:·393b1145ae873c4c57153a5736968c4ff617d80408de4fde6b9c4586e6a4c0a1·...·]'·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-3bdd4ccc-5d5a-486a-8335-0690c2a23f98'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-3bdd4ccc-5d5a-486a-8335-0690c2a23f98'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·5d37c4addfd762db3c88b7d64744803abfb231e198f75c1e41c3b0a92285422b·...·]'·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-090161f0-bd88-42fe-a5ef-b4d8b23eea03'·class='xr-section-summary-in'·type='checkbox'··checked><label·for='section-090161f0-bd88-42fe-a5ef-b4d8b23eea03'·class='xr-section-summary'·>Data·variables:·<span>(2)</span></label><div·class='xr-section-inline-details[·...·truncated·by·diffoscope;·len:·737,·SHA:·7d59d9c3de4d7a5f530e8b8b9324914122a62078d6971f2e8150da90e06160e6·...·]'·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-1a748503-dce8-44b2-8ca3-41033c18aaf7'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-1a748503-dce8-44b2-8ca3-41033c18aaf7'·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:·258ff130fa7c248c011ea2a3b4c2ed0e8db94d5fb892c86130227a7b5207062a·...·]'·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-fcc43079-cf08-4281-b180-62de1a955a32'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-fcc43079-cf08-4281-b180-62de1a955a32'·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:·307bcb9b25e0744b9b4a533b4fe1ab525d33416d3ab8d87d69dec3aeada4c5fd·...·]'·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-53ce0dd8-cea6-40be-bdab-232d535a4c24'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-53ce0dd8-cea6-40be-bdab-232d535a4c24'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·fe3d8da703c032fc9dc09cf5c96fb350b49fb9134893e9f90c147583ff2f291d·...·]'·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-6c3973fb-798d-413a-b91b-98835c34f915'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-6c3973fb-798d-413a-b91b-98835c34f915'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·76346dbd82d4f71dce6e16a52b145226d5c40c6e0a3f3bd78468cbedeb28ed0d·...·]'·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-deb0b602-7c57-4316-920e-7f6e6969db79'·class='xr-index-data-in'·type='checkbox'/><label·for='index-deb0b602-7c57-4316-920e-7f6e6969db79'·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:·e88085b8737349635aa2baa8db7435d70e82fdd615227008371dfc0f181c3f38·...·]'·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-2c31bdc5-7835-4236-9682-16e3926fa772'·class='xr-index-data-in'·type='checkbox'/><label·for='index-2c31bdc5-7835-4236-9682-16e3926fa772'·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:·d2995639eb01546ace5f963800fc2e2550f964bba918c60f5738db04df08b28b·...·]'·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·0xffff6edf2850>163 <seaborn.axisgrid.PairGrid·at·0xffff5e61fad0>
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-08T11:27:42.590472Z', " "'iopub.status.busy': '2024-01-08T11:27:42.590156Z', 'iopub.status.idle': " "'2024-01-08T11:27:47.081164Z', 'shell.execute_reply': " "'2024-01-08T11:27:47.080493Z'}}, 'outputs': {0: {'data': {'text/html': {insert: " '[(370, " tmax (time, location) float64 12.98 3.31 6.779 ... 6.636 3.343 ' "3.805</pre><div class='xr-wrap' style='display:none […]
    
Offset 15, 18 lines modifiedOffset 15, 18 lines modified
15 ············"execution_count":·1,15 ············"execution_count":·1,
16 ············"metadata":·{16 ············"metadata":·{
17 ················"ExecuteTime":·{17 ················"ExecuteTime":·{
18 ····················"end_time":·"2020-01-27T15:43:36.127628Z",18 ····················"end_time":·"2020-01-27T15:43:36.127628Z",
19 ····················"start_time":·"2020-01-27T15:43:36.081733Z"19 ····················"start_time":·"2020-01-27T15:43:36.081733Z"
20 ················},20 ················},
21 ················"execution":·{21 ················"execution":·{
22 ····················"iopub.execute_input":·"2024-01-08T11:15:23.582172Z",22 ····················"iopub.execute_input":·"2024-01-08T11:27:42.590472Z",
23 ····················"iopub.status.busy":·"2024-01-08T11:15:23.581842Z",23 ····················"iopub.status.busy":·"2024-01-08T11:27:42.590156Z",
24 ····················"iopub.status.idle":·"2024-01-08T11:15:26.709773Z",24 ····················"iopub.status.idle":·"2024-01-08T11:27:47.081164Z",
25 ····················"shell.execute_reply":·"2024-01-08T11:15:26.709000Z"25 ····················"shell.execute_reply":·"2024-01-08T11:27:47.080493Z"
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-9153c5fb-111d-4a05-8c8e-a77c8a86fda1'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-9153c5fb-111d-4a05-8c8e-a77c8a86fda1'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·53dd07afb3b941263d73842d1a800e77d6ec0687f9f013bb5e072b36f6ab1d24·...·]'·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-fad972ab-a5c3-4f29-84cd-b845ddd8beff'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-fad972ab-a5c3-4f29-84cd-b845ddd8beff'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·0ecff7768fb852aa8657451e51acf986d7be37efbbe6594d68a87c1693f9246f·...·]'·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-b82652ce-8bbd-49ed-84c0-ab07bed8b899'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-b82652ce-8bbd-49ed-84c0-ab07bed8b899'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1501,·SHA:·5d55c422f68a9c98fecc8d2dbf9bee1e7c9cadf1b5eef7b783d51c3c2f38c8d7·...·]e'·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-9fe938e1-c09b-4d16-b335-415f9bc3970a'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-9fe938e1-c09b-4d16-b335-415f9bc3970a'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1501,·SHA:·10f28ebb8df889a9583d4e3867a3319ec3cbbb20d0d794af7e1d1bf654fb2027·...·]e'·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-b32b031e-a5ee-4224-a477-b2e38f15a8d5'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-b32b031e-a5ee-4224-a477-b2e38f15a8d5'·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:·d78d318f0a5508f311b8a5a376d5af85a251ecadfdfe366200b748dcf3b8789e·...·]'·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-a0e851d1-3470-488e-a3e8-a4c475794cfb'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-a0e851d1-3470-488e-a3e8-a4c475794cfb'·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:·d31e32a57c3157754526e50fe3c3d174d7680325f1edf0975792072611b98b10·...·]'·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-695020c7-f34b-43b4-89b4-c1572ca113cf'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-695020c7-f34b-43b4-89b4-c1572ca113cf'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·a8165ec63d524ea0f2571506e1c9a4d44720ae6dd74011acbca940f92cc0a0ad·...·]'·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-4d0f1318-d068-4e6a-ab46-f64a09260a70'·class='xr-section-summary-in'·type='checkbox'··><label·for='section-4d0f1318-d068-4e6a-ab46-f64a09260a70'·class='xr-section-summary'·>Indexes:·<span>(2)</span></label><div·class='xr-section-inline-details'></div><div·c[·...·truncated·by·diffoscope;·len:·331,·SHA:·98039605c935db428a2d0fbdf2ed2f1bb230e946f10cde15c4b54b1e956ba109·...·]'·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-4191f0ee-f8c9-4966-930f-376d10d7b984'·class='xr-index-data-in'·type='checkbox'/><label·for='index-4191f0ee-f8c9-4966-930f-376d10d7b984'·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:·3d7e7d7b27ec140d944810257bede6511e9efdbefd27bb8597fc160427da944e·...·]'·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-c09b8f68-ade6-4be4-94d8-9b2a5579436a'·class='xr-index-data-in'·type='checkbox'/><label·for='index-c09b8f68-ade6-4be4-94d8-9b2a5579436a'·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:·0d701653ac834365b197aa92aa4339042d11af42a8d684c5f06d6aab168b9629·...·]'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div>"
425 ························],425 ························],
426 ························"text/plain":·[426 ························"text/plain":·[
427 ····························"<xarray.Dataset>\n",427 ····························"<xarray.Dataset>\n",
428 ····························"Dimensions:···(time:·731,·location:·3)\n",428 ····························"Dimensions:···(time:·731,·location:·3)\n",
429 ····························"Coordinates:\n",429 ····························"Coordinates:\n",
430 ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n",430 ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n",
431 ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n",431 ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n",
Offset 487, 18 lines modifiedOffset 487, 18 lines modified
487 ············"execution_count":·2,487 ············"execution_count":·2,
488 ············"metadata":·{488 ············"metadata":·{
489 ················"ExecuteTime":·{489 ················"ExecuteTime":·{
490 ····················"end_time":·"2020-01-27T15:47:14.160297Z",490 ····················"end_time":·"2020-01-27T15:47:14.160297Z",
491 ····················"start_time":·"2020-01-27T15:47:14.126738Z"491 ····················"start_time":·"2020-01-27T15:47:14.126738Z"
492 ················},492 ················},
493 ················"execution":·{493 ················"execution":·{
494 ····················"iopub.execute_input":·"2024-01-08T11:15:26.714008Z",494 ····················"iopub.execute_input":·"2024-01-08T11:27:47.088413Z",
495 ····················"iopub.status.busy":·"2024-01-08T11:15:26.713513Z",495 ····················"iopub.status.busy":·"2024-01-08T11:27:47.086116Z",
496 ····················"iopub.status.idle":·"2024-01-08T11:15:26.745743Z",496 ····················"iopub.status.idle":·"2024-01-08T11:27:47.118747Z",
497 ····················"shell.execute_reply":·"2024-01-08T11:15:26.744993Z"497 ····················"shell.execute_reply":·"2024-01-08T11:27:47.118156Z"
498 ················}498 ················}
499 ············},499 ············},
500 ············"outputs":·[500 ············"outputs":·[
501 ················{501 ················{
502 ····················"data":·{502 ····················"data":·{
503 ························"text/html":·[503 ························"text/html":·[
504 ····························"<div>\n",504 ····························"<div>\n",
Offset 587, 18 lines modifiedOffset 587, 18 lines modified
587 ············"execution_count":·3,587 ············"execution_count":·3,
588 ············"metadata":·{588 ············"metadata":·{
589 ················"ExecuteTime":·{589 ················"ExecuteTime":·{
590 ····················"end_time":·"2020-01-27T15:47:32.682065Z",590 ····················"end_time":·"2020-01-27T15:47:32.682065Z",
591 ····················"start_time":·"2020-01-27T15:47:32.652629Z"591 ····················"start_time":·"2020-01-27T15:47:32.652629Z"
592 ················},592 ················},
593 ················"execution":·{593 ················"execution":·{
594 ····················"iopub.execute_input":·"2024-01-08T11:15:26.749643Z",594 ····················"iopub.execute_input":·"2024-01-08T11:27:47.125086Z",
595 ····················"iopub.status.busy":·"2024-01-08T11:15:26.749351Z",595 ····················"iopub.status.busy":·"2024-01-08T11:27:47.123079Z",
596 ····················"iopub.status.idle":·"2024-01-08T11:15:26.785774Z",596 ····················"iopub.status.idle":·"2024-01-08T11:27:47.155322Z",
597 ····················"shell.execute_reply":·"2024-01-08T11:15:26.784993Z"597 ····················"shell.execute_reply":·"2024-01-08T11:27:47.154745Z"
598 ················}598 ················}
599 ············},599 ············},
600 ············"outputs":·[600 ············"outputs":·[
601 ················{601 ················{
602 ····················"data":·{602 ····················"data":·{
603 ························"text/html":·[603 ························"text/html":·[
604 ····························"<div>\n",604 ····························"<div>\n",
Offset 701, 18 lines modifiedOffset 701, 18 lines modified
701 ············"execution_count":·4,701 ············"execution_count":·4,
702 ············"metadata":·{702 ············"metadata":·{
703 ················"ExecuteTime":·{703 ················"ExecuteTime":·{
704 ····················"end_time":·"2020-01-27T15:47:34.617042Z",704 ····················"end_time":·"2020-01-27T15:47:34.617042Z",
705 ····················"start_time":·"2020-01-27T15:47:34.282605Z"705 ····················"start_time":·"2020-01-27T15:47:34.282605Z"
706 ················},706 ················},
707 ················"execution":·{707 ················"execution":·{
708 ····················"iopub.execute_input":·"2024-01-08T11:15:26.789808Z",708 ····················"iopub.execute_input":·"2024-01-08T11:27:47.161513Z",
709 ····················"iopub.status.busy":·"2024-01-08T11:15:26.789529Z",709 ····················"iopub.status.busy":·"2024-01-08T11:27:47.159577Z",
710 ····················"iopub.status.idle":·"2024-01-08T11:15:27.309771Z",710 ····················"iopub.status.idle":·"2024-01-08T11:27:47.853962Z",
711 ····················"shell.execute_reply":·"2024-01-08T11:15:27.309004Z"711 ····················"shell.execute_reply":·"2024-01-08T11:27:47.853344Z"
712 ················}712 ················}
713 ············},713 ············},
714 ············"outputs":·[714 ············"outputs":·[
715 ················{715 ················{
716 ····················"data":·{716 ····················"data":·{
717 ························"text/plain":·[717 ························"text/plain":·[
718 ····························"<AxesSubplot:·xlabel='time'>"718 ····························"<AxesSubplot:·xlabel='time'>"
Offset 749, 25 lines modifiedOffset 749, 25 lines modified
749 ············"execution_count":·5,749 ············"execution_count":·5,
750 ············"metadata":·{750 ············"metadata":·{
751 ················"ExecuteTime":·{751 ················"ExecuteTime":·{
752 ····················"end_time":·"2020-01-27T15:47:37.643175Z",752 ····················"end_time":·"2020-01-27T15:47:37.643175Z",
753 ····················"start_time":·"2020-01-27T15:47:37.202479Z"753 ····················"start_time":·"2020-01-27T15:47:37.202479Z"
754 ················},754 ················},
755 ················"execution":·{755 ················"execution":·{
756 ····················"iopub.execute_input":·"2024-01-08T11:15:27.313549Z",756 ····················"iopub.execute_input":·"2024-01-08T11:27:47.857335Z",
757 ····················"iopub.status.busy":·"2024-01-08T11:15:27.313268Z",757 ····················"iopub.status.busy":·"2024-01-08T11:27:47.857050Z",
758 ····················"iopub.status.idle":·"2024-01-08T11:15:29.145020Z",758 ····················"iopub.status.idle":·"2024-01-08T11:27:50.429039Z",
759 ····················"shell.execute_reply":·"2024-01-08T11:15:29.128989Z"759 ····················"shell.execute_reply":·"2024-01-08T11:27:50.428463Z"
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·0xffff43f65c90&gt;</span>317 <span·class="gh">Out[37]:·</span><span·class="go">&lt;matplotlib.collections.QuadMesh·at·0xffff67537a10&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·0xffff43f65c90>275 Out[37]:·<matplotlib.collections.QuadMesh·at·0xffff67537a10>
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
11.4 KB
./usr/share/doc/python-xarray-doc/html/searchindex.js
11.3 KB
js-beautify {}
    
Offset 704, 15 lines modifiedOffset 704, 15 lines modified
704 ········"track":·[3,·16,·19,·20,·29,·32,·48],704 ········"track":·[3,·16,·19,·20,·29,·32,·48],
705 ········"again":·[3,·8,·33,·40,·43,·48],705 ········"again":·[3,·8,·33,·40,·43,·48],
706 ········"give":·[3,·7,·8,·39,·43,·48],706 ········"give":·[3,·7,·8,·39,·43,·48],
707 ········"rel":·[3,·31,·42,·48],707 ········"rel":·[3,·31,·42,·48],
708 ········"messag":·[3,·8,·48],708 ········"messag":·[3,·8,·48],
709 ········"subject":·3,709 ········"subject":·3,
710 ········"line":·[3,·6,·7,·8,·9,·10,·11,·12,·16,·18,·23,·28,·34,·36,·38,·39,·40,·44,·48],710 ········"line":·[3,·6,·7,·8,·9,·10,·11,·12,·16,·18,·23,·28,·34,·36,·38,·39,·40,·44,·48],
711 ········"72":·[3,·6,·32,·34,·38,·40,·43,·48],711 ········"72":·[3,·6,·32,·33,·34,·38,·40,·43,·48],
712 ········"char":·3,712 ········"char":·3,
713 ········"One":·[3,·8,·24,·33,·40,·42,·44,·46,·48],713 ········"One":·[3,·8,·24,·33,·40,·42,·44,·46,·48],
714 ········"blank":·3,714 ········"blank":·3,
715 ········"bodi":·3,715 ········"bodi":·3,
716 ········"refer":·[3,·8,·14,·16,·19,·25,·29,·34,·40,·43,·44,·45,·48],716 ········"refer":·[3,·8,·14,·16,·19,·25,·29,·34,·40,·43,·44,·45,·48],
717 ········"gh1234":·3,717 ········"gh1234":·3,
718 ········"fine":·[3,·40],718 ········"fine":·[3,·40],
Offset 1122, 15 lines modifiedOffset 1122, 15 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 ········"0xffff59c779c0":·6,1129 ········"0xffff618eb9c0":·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],
Offset 1176, 15 lines modifiedOffset 1176, 15 lines modified
1176 ········"superclass":·6,1176 ········"superclass":·6,
1177 ········"408":·6,1177 ········"408":·6,
1178 ········"super":·6,1178 ········"super":·6,
1179 ········"artist":·6,1179 ········"artist":·6,
1180 ········"74":·[6,·32,·33,·34,·38,·40,·43,·48],1180 ········"74":·[6,·32,·33,·34,·38,·40,·43,·48],
1181 ········"_finalize_raster":·6,1181 ········"_finalize_raster":·6,
1182 ········"draw_wrapp":·6,1182 ········"draw_wrapp":·6,
1183 ········"73":·[6,·32,·34,·38,·40,·43,·48],1183 ········"73":·[6,·32,·33,·34,·38,·40,·43,·48],
1184 ········"75":·[6,·8,·13,·14,·32,·34,·38,·40,·43,·48],1184 ········"75":·[6,·8,·13,·14,·32,·34,·38,·40,·43,·48],
1185 ········"_raster":·6,1185 ········"_raster":·6,
1186 ········"76":·[6,·32,·34,·38,·40,·43,·48],1186 ········"76":·[6,·32,·34,·38,·40,·43,·48],
1187 ········"stop_raster":·6,1187 ········"stop_raster":·6,
1188 ········"51":·[6,·32,·34,·38,·39,·40,·43,·44,·48],1188 ········"51":·[6,·32,·34,·38,·39,·40,·43,·44,·48],
1189 ········"allow_raster":·6,1189 ········"allow_raster":·6,
1190 ········"48":·[6,·19,·32,·34,·38,·39,·40,·43,·44,·48],1190 ········"48":·[6,·19,·32,·34,·38,·39,·40,·43,·44,·48],
Offset 1283, 15 lines modifiedOffset 1283, 15 lines modified
1283 ········"106":·[6,·32,·38,·43,·48],1283 ········"106":·[6,·32,·38,·43,·48],
1284 ········"extent_geom":·6,1284 ········"extent_geom":·6,
1285 ········"sgeom":·6,1285 ········"sgeom":·6,
1286 ········"box":·6,1286 ········"box":·6,
1287 ········"107":·[6,·32,·38,·43],1287 ········"107":·[6,·32,·38,·43],
1288 ········"109":·[6,·32,·38,·43],1288 ········"109":·[6,·32,·38,·43],
1289 ········"110":·[6,·32,·38,·43],1289 ········"110":·[6,·32,·38,·43],
1290 ········"111":·[6,·32,·38,·43],1290 ········"111":·[6,·32,·33,·38,·43],
1291 ········"287":·6,1291 ········"287":·6,
1292 ········"categori":·[6,·29,·34],1292 ········"categori":·[6,·29,·34],
1293 ········"286":·6,1293 ········"286":·6,
1294 ········"_natural_earth_geom_cach":·6,1294 ········"_natural_earth_geom_cach":·6,
1295 ········"shaperead":·6,1295 ········"shaperead":·6,
1296 ········"natural_earth":·6,1296 ········"natural_earth":·6,
1297 ········"288":·6,1297 ········"288":·6,
Offset 1812, 15 lines modifiedOffset 1812, 15 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_1525232":·13,1819 ········"ipykernel_3179774":·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,
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 ········"0xffff6edf2850":·14,1989 ········"0xffff5e61fad0":·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 ········"0xffff43f65c90":·19,2328 ········"0xffff67537a10":·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 3184, 15 lines modifiedOffset 3184, 15 lines modified
3184 ········"gaussian_2d":·32,3184 ········"gaussian_2d":·32,
3185 ········"xalpha":·32,3185 ········"xalpha":·32,
3186 ········"yalpha":·32,3186 ········"yalpha":·32,
3187 ········"94":·[32,·38,·43,·48],3187 ········"94":·[32,·38,·43,·48],
3188 ········"multi_peak":·32,3188 ········"multi_peak":·32,
3189 ········"zero":·[32,·38,·40,·43,·48],3189 ········"zero":·[32,·38,·40,·43,·48],
3190 ········"96":·[32,·38,·43,·48],3190 ········"96":·[32,·38,·43,·48],
3191 ········"97":·[32,·33,·38,·43,·48],3191 ········"97":·[32,·38,·43,·48],
3192 ········"n_peak":·32,3192 ········"n_peak":·32,
3193 ········"99":·[32,·34,·38,·39,·43,·44,·48],3193 ········"99":·[32,·34,·38,·39,·43,·44,·48],
3194 ········"101":·[32,·38,·43,·48],3194 ········"101":·[32,·38,·43,·48],
3195 ········"102":·[32,·38,·43,·48],3195 ········"102":·[32,·38,·43,·48],
3196 ········"normal":·[32,·38,·43,·44,·48],3196 ········"normal":·[32,·38,·43,·44,·48],
3197 ········"103":·[32,·38,·43,·48],3197 ········"103":·[32,·38,·43,·48],
3198 ········"param_nam":·32,3198 ········"param_nam":·32,
Max diff block lines reached; 7120/11587 bytes (61.45%) of diff not shown.
2.37 KB
./usr/share/doc/python-xarray-doc/html/user-guide/computation.html
    
Offset 837, 15 lines modifiedOffset 837, 15 lines modified
837 <span·class="go">Dimensions:················(param:·10,·cov_i:·10,·cov_j:·10)</span>837 <span·class="go">Dimensions:················(param:·10,·cov_i:·10,·cov_j:·10)</span>
838 <span·class="go">Coordinates:</span>838 <span·class="go">Coordinates:</span>
839 <span·class="go">··*·param··················(param)·&lt;U7·&#39;a0&#39;·&#39;xc0&#39;·&#39;yc0&#39;·...·&#39;xalpha1&#39;·&#39;yalpha1&#39;</span>839 <span·class="go">··*·param··················(param)·&lt;U7·&#39;a0&#39;·&#39;xc0&#39;·&#39;yc0&#39;·...·&#39;xalpha1&#39;·&#39;yalpha1&#39;</span>
840 <span·class="go">··*·cov_i··················(cov_i)·&lt;U7·&#39;a0&#39;·&#39;xc0&#39;·&#39;yc0&#39;·...·&#39;xalpha1&#39;·&#39;yalpha1&#39;</span>840 <span·class="go">··*·cov_i··················(cov_i)·&lt;U7·&#39;a0&#39;·&#39;xc0&#39;·&#39;yc0&#39;·...·&#39;xalpha1&#39;·&#39;yalpha1&#39;</span>
841 <span·class="go">··*·cov_j··················(cov_j)·&lt;U7·&#39;a0&#39;·&#39;xc0&#39;·&#39;yc0&#39;·...·&#39;xalpha1&#39;·&#39;yalpha1&#39;</span>841 <span·class="go">··*·cov_j··················(cov_j)·&lt;U7·&#39;a0&#39;·&#39;xc0&#39;·&#39;yc0&#39;·...·&#39;xalpha1&#39;·&#39;yalpha1&#39;</span>
842 <span·class="go">Data·variables:</span>842 <span·class="go">Data·variables:</span>
843 <span·class="go">····curvefit_coefficients··(param)·float64·1.994·-0.9986·-2.001·...·1.999·0.9986</span>843 <span·class="go">····curvefit_coefficients··(param)·float64·1.994·-0.9986·-2.001·...·1.999·0.9986</span>
844 <span·class="go">····curvefit_covariance····(cov_i,·cov_j)·float64·6.556e-05·...·4.466e-06</span>844 <span·class="go">····curvefit_covariance····(cov_i,·cov_j)·float64·6.556e-05·...·4.467e-06</span>
845 </pre></div>845 </pre></div>
846 </div>846 </div>
847 <div·class="admonition·note">847 <div·class="admonition·note">
848 <p·class="admonition-title">Note</p>848 <p·class="admonition-title">Note</p>
849 <p>This·method·replicates·the·behavior·of·<a·class="reference·external"·href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.curve_fit.html#scipy.optimize.curve_fit"·title="(in·SciPy·v1.10.1)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">scipy.optimize.curve_fit()</span></code></a>.</p>849 <p>This·method·replicates·the·behavior·of·<a·class="reference·external"·href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.curve_fit.html#scipy.optimize.curve_fit"·title="(in·SciPy·v1.10.1)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">scipy.optimize.curve_fit()</span></code></a>.</p>
850 </div>850 </div>
851 </section>851 </section>
906 B
html2text {}
    
Offset 705, 15 lines modifiedOffset 705, 15 lines modified
705 Coordinates:705 Coordinates:
706 ··*·param··················(param)·<U7·'a0'·'xc0'·'yc0'·...·'xalpha1'·'yalpha1'706 ··*·param··················(param)·<U7·'a0'·'xc0'·'yc0'·...·'xalpha1'·'yalpha1'
707 ··*·cov_i··················(cov_i)·<U7·'a0'·'xc0'·'yc0'·...·'xalpha1'·'yalpha1'707 ··*·cov_i··················(cov_i)·<U7·'a0'·'xc0'·'yc0'·...·'xalpha1'·'yalpha1'
708 ··*·cov_j··················(cov_j)·<U7·'a0'·'xc0'·'yc0'·...·'xalpha1'·'yalpha1'708 ··*·cov_j··················(cov_j)·<U7·'a0'·'xc0'·'yc0'·...·'xalpha1'·'yalpha1'
709 Data·variables:709 Data·variables:
710 ····curvefit_coefficients··(param)·float64·1.994·-0.9986·-2.001·...·1.999710 ····curvefit_coefficients··(param)·float64·1.994·-0.9986·-2.001·...·1.999
711 0.9986711 0.9986
712 ····curvefit_covariance····(cov_i,·cov_j)·float64·6.556e-05·...·4.466e-06712 ····curvefit_covariance····(cov_i,·cov_j)·float64·6.556e-05·...·4.467e-06
713 Note713 Note
714 This·method·replicates·the·behavior·of·scipy.optimize.curve_fit().714 This·method·replicates·the·behavior·of·scipy.optimize.curve_fit().
  
715 *****·Broadcasting·by·dimension·name¶·*****715 *****·Broadcasting·by·dimension·name¶·*****
716 DataArray·objects·automatically·align·themselves·(“broadcasting”·in·the716 DataArray·objects·automatically·align·themselves·(“broadcasting”·in·the
717 numpy·parlance)·by·dimension·name·instead·of·axis·order.·With·xarray,·you·do717 numpy·parlance)·by·dimension·name·instead·of·axis·order.·With·xarray,·you·do
718 not·need·to·transpose·arrays·or·insert·dimensions·of·length·1·to·get·array718 not·need·to·transpose·arrays·or·insert·dimensions·of·length·1·to·get·array
4.99 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-78c250975acbcfcf8c779b7811a8c27ctemperature,·shape=(30,·180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray&gt;</span>121 <span·class="go">dask.array&lt;open_dataset-4dbe4737ce0678ff5049460d084186c6temperature,·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, 16 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·|·9.97·ms</span>143 <span·class="go">[········································]·|·0%·Completed·|·10.73·ms</span>
144 <span·class="go">[########################################]·|·100%·Completed·|·114.03·ms</span>144 <span·class="go">[########################################]·|·100%·Completed·|·111.72·ms</span>
145 </pre></div>145 </pre></div>
146 </div>146 </div>
147 <div·class="admonition·note">147 <div·class="admonition·note">
148 <p·class="admonition-title">Note</p>148 <p·class="admonition-title">Note</p>
149 <p>When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,149 <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>150 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·that151 to·avoid·competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that
1.86 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-78c250975acbcfcf8c779b7811a8c27ctemperature,·shape=(30,83 dask.array<open_dataset-4dbe4737ce0678ff5049460d084186c6temperature,·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, 16 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·|·9.97·ms103 [········································]·|·0%·Completed·|·10.73·ms
104 [########################################]·|·100%·Completed·|·114.03·ms104 [########################################]·|·100%·Completed·|·111.72·ms
105 Note105 Note
106 When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,·it·may·be106 When·using·Dask’s·distributed·scheduler·to·write·NETCDF4·files,·it·may·be
107 necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid107 necessary·to·set·the·environment·variableHDF5_USE_FILE_LOCKING=FALSEto·avoid
108 competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing108 competing·locks·within·the·HDF5·SWMR·file·locking·scheme.·Note·that·writing
109 netCDF·files·with·Dask’s·distributed·scheduler·is·only·supported·for109 netCDF·files·with·Dask’s·distributed·scheduler·is·only·supported·for
110 thenetcdf4backend.110 thenetcdf4backend.
111 A·dataset·can·also·be·converted·to·a·Dask·DataFrame·using·to_dask_dataframe().111 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·0xffff35426dd0&gt;]</span>694 <span·class="gh">Out[60]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xffff5c9f11d0&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·0xffff35336650&gt;]</span>696 <span·class="gh">Out[61]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xffff5c93c9d0&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·0xffff35426dd0>]581 Out[60]:·[<matplotlib.lines.Line2D·at·0xffff5c9f11d0>]
  
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·0xffff35336650>]584 Out[61]:·[<matplotlib.lines.Line2D·at·0xffff5c93c9d0>]
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·0xffff58108b90&gt;]</span>228 <span·class="gh">Out[17]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xffff5e0911d0&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·0xffff6087ac90&gt;]</span>230 <span·class="gh">Out[18]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xffff87f0e890&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·0xffff60956bd0&gt;]</span>232 <span·class="gh">Out[19]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xffff8761c050&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·0xffff6088a690&gt;</span>234 <span·class="gh">Out[20]:·</span><span·class="go">&lt;matplotlib.legend.Legend·at·0xffff5b539a50&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;lon&#39;,·&#39;lat&#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;lat&#39;,·&#39;lon&#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·0xffff58108b90>]171 Out[17]:·[<matplotlib.lines.Line2D·at·0xffff5e0911d0>]
  
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·0xffff6087ac90>]174 Out[18]:·[<matplotlib.lines.Line2D·at·0xffff87f0e890>]
  
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·0xffff60956bd0>]177 Out[19]:·[<matplotlib.lines.Line2D·at·0xffff8761c050>]
  
178 In·[20]:·plt.legend()178 In·[20]:·plt.legend()
179 Out[20]:·<matplotlib.legend.Legend·at·0xffff6088a690>179 Out[20]:·<matplotlib.legend.Legend·at·0xffff5b539a50>
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·{'lon',·'lat'}·do·not·exist.·Expected·one·or·more·of564 ValueError:·Dimensions·{'lat',·'lon'}·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·0xffff83223890&gt;]</span>648 <span·class="gh">Out[51]:·</span><span·class="go">[&lt;matplotlib.lines.Line2D·at·0xffffaa97b2d0&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·0xffff8310ae90&gt;</span>1211 <span·class="gh">Out[99]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffffaa7f0190&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·0xffff8324c6d0&gt;</span>1217 <span·class="gh">Out[100]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffffaa766d10&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·0xffff830380d0&gt;</span>1223 <span·class="gh">Out[101]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffff5e32f010&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·0xffff83093810&gt;</span>1229 <span·class="gh">Out[102]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffffaa5eb190&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·0xffff82faa410&gt;</span>1235 <span·class="gh">Out[103]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffffaa76ed50&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·0xffff83093790&gt;</span>1240 <span·class="gh">Out[104]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffffaa685090&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·0xffff32fdf810&gt;</span>1247 <span·class="gh">Out[105]:·</span><span·class="go">&lt;matplotlib.collections.PathCollection·at·0xffff5a4f0b50&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·0xffff32e61950&gt;</span>1253 <span·class="gh">Out[106]:·</span><span·class="go">&lt;mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xffff5a3f1250&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·0xffff32e6be50&gt;</span>1259 <span·class="gh">Out[107]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xffffaa493350&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·0xffff8655b350&gt;</span>1265 <span·class="gh">Out[108]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xffff5a28b350&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·0xffff32906b50&gt;</span>1276 <span·class="gh">Out[109]:·</span><span·class="go">&lt;matplotlib.quiver.Quiver·at·0xffff59d96010&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·0xffff32bab290&gt;</span>1282 <span·class="gh">Out[110]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xffff59db1cd0&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·0xffff32ae6e90&gt;</span>1293 <span·class="gh">Out[111]:·</span><span·class="go">&lt;matplotlib.collections.LineCollection·at·0xffff59ec8890&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·0xffff32d74dd0&gt;</span>1300 <span·class="gh">Out[112]:·</span><span·class="go">&lt;xarray.plot.facetgrid.FacetGrid·at·0xffff59c03e50&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·0xffff83223890>]546 Out[51]:·[<matplotlib.lines.Line2D·at·0xffffaa97b2d0>]
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·0xffff8310ae90>1036 Out[99]:·<matplotlib.collections.PathCollection·at·0xffffaa7f0190>
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·0xffff8324c6d0>1040 Out[100]:·<matplotlib.collections.PathCollection·at·0xffffaa766d10>
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·0xffff830380d0>1044 Out[101]:·<matplotlib.collections.PathCollection·at·0xffff5e32f010>
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·0xffff83093810>1048 Out[102]:·<matplotlib.collections.PathCollection·at·0xffffaa5eb190>
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·0xffff82faa410>1054 Out[103]:·<matplotlib.collections.PathCollection·at·0xffffaa76ed50>
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·0xffff83093790>1058 Out[104]:·<matplotlib.collections.PathCollection·at·0xffffaa685090>
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·0xffff32fdf810>1064 Out[105]:·<matplotlib.collections.PathCollection·at·0xffff5a4f0b50>
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·0xffff32e61950>1068 Out[106]:·<mpl_toolkits.mplot3d.art3d.Path3DCollection·at·0xffff5a3f1250>
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·0xffff32e6be50>1073 Out[107]:·<xarray.plot.facetgrid.FacetGrid·at·0xffffaa493350>
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·0xffff8655b350>1078 Out[108]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff5a28b350>
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·0xffff32906b50>1086 Out[109]:·<matplotlib.quiver.Quiver·at·0xffff59d96010>
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·0xffff32bab290>1091 Out[110]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff59db1cd0>
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·0xffff32ae6e90>1099 Out[111]:·<matplotlib.collections.LineCollection·at·0xffff59ec8890>
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·0xffff32d74dd0>1104 Out[112]:·<xarray.plot.facetgrid.FacetGrid·at·0xffff59c03e50>
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·0xffff3172af90>]1225 Out[124]:·[<matplotlib.lines.Line2D·at·0xffff58b532d0>]
  
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·0xffff320aa250>]1227 Out[125]:·[<matplotlib.lines.Line2D·at·0xffff58a67bd0>]
  
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·0xffff3223ad90>]1229 Out[126]:·[<matplotlib.lines.Line2D·at·0xffff58c8e250>]
  
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·0xffff31532a50>]1231 Out[127]:·[<matplotlib.lines.Line2D·at·0xffff58c8d390>]
  
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·0xffff2dfc6190&gt;</span>5860 <span·class="gh">Out[46]:·</span><span·class="go">&lt;matplotlib.collections.QuadMesh·at·0xffff56821ad0&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·0xffff2dfc6190>4054 ······Out[46]:·<matplotlib.collections.QuadMesh·at·0xffff56821ad0>
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)))