--- /srv/reproducible-results/rbuild-debian/r-b-build.2DKiz9TF/b1/python-xarray_2025.03.1-8_arm64.changes
+++ /srv/reproducible-results/rbuild-debian/r-b-build.2DKiz9TF/b2/python-xarray_2025.03.1-8_arm64.changes
├── Files
│ @@ -1,3 +1,3 @@
│
│ - 6dd6efcdef4f029d7295aee69485d405 5274584 doc optional python-xarray-doc_2025.03.1-8_all.deb
│ + d7d33546992ecc3b5bf58616ffc12a83 5275120 doc optional python-xarray-doc_2025.03.1-8_all.deb
│ 42f0e777ab375981fc3c7e3f07caf930 820184 python optional python3-xarray_2025.03.1-8_all.deb
├── python-xarray-doc_2025.03.1-8_all.deb
│ ├── file list
│ │ @@ -1,3 +1,3 @@
│ │ -rw-r--r-- 0 0 0 4 2025-05-05 09:04:03.000000 debian-binary
│ │ -rw-r--r-- 0 0 0 7560 2025-05-05 09:04:03.000000 control.tar.xz
│ │ --rw-r--r-- 0 0 0 5266832 2025-05-05 09:04:03.000000 data.tar.xz
│ │ +-rw-r--r-- 0 0 0 5267368 2025-05-05 09:04:03.000000 data.tar.xz
│ ├── control.tar.xz
│ │ ├── control.tar
│ │ │ ├── ./control
│ │ │ │ @@ -1,13 +1,13 @@
│ │ │ │ Package: python-xarray-doc
│ │ │ │ Source: python-xarray
│ │ │ │ Version: 2025.03.1-8
│ │ │ │ Architecture: all
│ │ │ │ Maintainer: Debian Science Maintainers
│ │ │ │ -Installed-Size: 15083
│ │ │ │ +Installed-Size: 15085
│ │ │ │ Depends: libjs-sphinxdoc (>= 8.1), libjs-mathjax, libjs-requirejs
│ │ │ │ Built-Using: alabaster (= 0.7.16-0.1), sphinx (= 8.1.3-5)
│ │ │ │ Section: doc
│ │ │ │ Priority: optional
│ │ │ │ Multi-Arch: foreign
│ │ │ │ Homepage: https://xarray.pydata.org/
│ │ │ │ Description: documentation for xarray
│ │ │ ├── ./md5sums
│ │ │ │ ├── ./md5sums
│ │ │ │ │┄ Files differ
│ ├── data.tar.xz
│ │ ├── data.tar
│ │ │ ├── file list
│ │ │ │ @@ -278,31 +278,31 @@
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 461 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/dask.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 494 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/data-structures.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 8448 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/developers-meeting.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 479 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/duckarrays.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 22909 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/ecosystem.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 196815 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 16003 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 16013 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 82000 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 27741 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 27730 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 165093 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 13320 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 73045 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 25156 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 25165 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 58861 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/blank_template.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 5157 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/blank_template.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 81893 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/monthly-means.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 7223 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 7225 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 74674 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 14760 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 14768 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 81800 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 6998 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 7003 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 87944 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/weather-data.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 368067 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 368092 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 491 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/faq.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 15073 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/gallery.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 16306 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/genindex.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/getting-started-guide/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 51674 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/getting-started-guide/faq.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 7741 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/getting-started-guide/index.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 25661 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/getting-started-guide/installing.html
│ │ │ │ @@ -332,36 +332,36 @@
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 473 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/plotting.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 6546 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/py-modindex.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 524 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/quick-overview.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 443 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/related-projects.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 476 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/reshaping.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 24428 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/roadmap.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 6341 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/search.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 269616 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/searchindex.js
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 270226 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/searchindex.js
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 482 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/terminology.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 482 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/time-series.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 13358 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/tutorials-and-videos.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 58676 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/combining.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 140282 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/computation.html
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 140285 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/computation.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 71358 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/dask.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 150064 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/data-structures.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 35119 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/duckarrays.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 50924 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/groupby.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 120436 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/hierarchical-data.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 9025 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/index.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 140669 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/indexing.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 68768 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 147716 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/io.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 11704 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/options.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 42223 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/pandas.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 135402 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/plotting.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 63021 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/reshaping.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 46813 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/terminology.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 46472 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/testing.html
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 48511 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/testing.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 53681 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/time-series.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 47248 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/user-guide/weather-climate.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 494 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/weather-climate.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 1051865 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/whats-new.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 512 2025-05-05 09:04:03.000000 ./usr/share/doc/python-xarray-doc/html/why-xarray.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2025-05-05 09:04:03.000000 ./usr/share/doc-base/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 290 2025-05-05 09:04:03.000000 ./usr/share/doc-base/python-xarray-doc.python-xarray-doc
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html
│ │ │ │ @@ -149,15 +149,15 @@
│ │ │ │ 705 server_hostname: str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205 , in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket. gaierror as e:
│ │ │ │ --> 205 raise NameResolutionError(self . host, self , e) from e
│ │ │ │ 206 except SocketTimeout as e:
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff5f608050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff45958050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667 , in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -183,15 +183,15 @@
│ │ │ │ 844 retries. sleep()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519 , in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError(cause)
│ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
│ │ │ │ 521 log. debug(" Incremented Retry for (url= ' %s ' ): %r " , url, new_retry)
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5f608050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff45958050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In[2], line 1
│ │ │ │ ----> 1 ds = xr . tutorial . load_dataset ( " era5-2mt-2019-03-uk.grib " , engine = " cfgrib " )
│ │ │ │
│ │ │ │ @@ -280,15 +280,15 @@
│ │ │ │ 696 if isinstance (e. reason, _SSLError):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError(e, request= request)
│ │ │ │ --> 700 raise ConnectionError (e, request= request)
│ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ 703 raise ConnectionError (e, request= request)
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5f608050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff45958050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ Let’s create a simple plot of 2-m air temperature in degrees Celsius:
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ -Error in callback <function _draw_all_if_interactive at 0xffff5fa99b20> (for post_execute), with arguments args (),kwargs {}:
│ │ │ │ +Error in callback <function _draw_all_if_interactive at 0xffff45de9b20> (for post_execute), with arguments args (),kwargs {}:
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -93,15 +93,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff45958050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -137,15 +137,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib
│ │ │ │ │ (Caused by NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff45958050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[2], line 1
│ │ │ │ │ ----> 1 ds = xr.tutorial.load_dataset("era5-2mt-2019-03-uk.grib",
│ │ │ │ │ @@ -255,15 +255,15 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib
│ │ │ │ │ (Caused by NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff45958050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │ Let’s create a simple plot of 2-m air temperature in degrees Celsius:
│ │ │ │ │ [3]:
│ │ │ │ │ ds = ds - 273.15
│ │ │ │ │ ds.t2m[0].plot(cmap=plt.cm.coolwarm)
│ │ │ │ │ ---------------------------------------------------------------------------
│ │ │ │ │ NameError Traceback (most recent call last)
│ │ │ │ │ @@ -298,15 +298,15 @@
│ │ │ │ │ 10 plt.title("ERA5 - 2m temperature British Isles March 2019")
│ │ │ │ │
│ │ │ │ │ NameError: name 'ds' is not defined
│ │ │ │ │ /usr/lib/python3/dist-packages/cartopy/io/__init__.py:241: DownloadWarning:
│ │ │ │ │ Downloading: https://naturalearth.s3.amazonaws.com/10m_physical/
│ │ │ │ │ ne_10m_coastline.zip
│ │ │ │ │ warnings.warn(f'Downloading: {url}', DownloadWarning)
│ │ │ │ │ -Error in callback (for
│ │ │ │ │ +Error in callback (for
│ │ │ │ │ post_execute), with arguments args (),kwargs {}:
│ │ │ │ │ ---------------------------------------------------------------------------
│ │ │ │ │ gaierror Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3.13/urllib/request.py:1319, in AbstractHTTPHandler.do_open
│ │ │ │ │ (self, http_class, req, **http_conn_args)
│ │ │ │ │ 1318 try:
│ │ │ │ │ -> 1319 h.request(req.get_method(), req.selector, req.data, headers,
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz
│ │ │ │ ├── ERA5-GRIB-example.ipynb
│ │ │ │ │ ├── Pretty-printed
│ │ │ │ │ │┄ Similarity: 0.9983880154932787%
│ │ │ │ │ │┄ Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2026-06-08T02:15:57.716727Z', "
│ │ │ │ │ │┄ "'iopub.status.busy': '2026-06-08T02:15:57.716466Z', 'iopub.status.idle': "
│ │ │ │ │ │┄ "'2026-06-08T02:15:59.176291Z', 'shell.execute_reply': "
│ │ │ │ │ │┄ "'2026-06-08T02:15:59.169820Z'}}}, 4: {'metadata': {'execution': "
│ │ │ │ │ │┄ "{'iopub.execute_input': '2026-06-08T02:15:59.183947Z', 'iopub.status.busy': "
│ │ │ │ │ │┄ "'2026-06-08T02:15:59.183445Z', 'iopub.status.idle': '2026-06-08T02:16:0 […]
│ │ │ │ │ │ @@ -15,18 +15,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 1,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:22.820116Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:22.819862Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:24.448409Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:24.447448Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:15:57.716727Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:15:57.716466Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:15:59.176291Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:15:59.169820Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "import xarray as xr\n",
│ │ │ │ │ │ "import matplotlib.pyplot as plt"
│ │ │ │ │ │ ]
│ │ │ │ │ │ @@ -39,24 +39,24 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 2,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:24.452382Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:24.451978Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:25.084656Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:25.083565Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:15:59.183947Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:15:59.183445Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:00.097127Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:00.095935Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "ConnectionError",
│ │ │ │ │ │ - "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ "traceback": [
│ │ │ │ │ │ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
│ │ │ │ │ │ "\u001b[0;31mgaierror\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 197\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 198\u001b[0m sock \u001b[38;5;241m=\u001b[39m \u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 199\u001b[0m \u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 200\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 201\u001b[0m \u001b[43m \u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 202\u001b[0m \u001b[43m \u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 203\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m, in \u001b[0;36mcreate_connection\u001b[0;34m(address, timeout, source_address, socket_options)\u001b[0m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m, label empty or too long\u001b[39m\u001b[38;5;124m\"\u001b[39m) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m---> 60\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 61\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m, in \u001b[0;36mgetaddrinfo\u001b[0;34m(host, port, family, type, proto, flags)\u001b[0m\n\u001b[1;32m 976\u001b[0m addrlist \u001b[38;5;241m=\u001b[39m []\n\u001b[0;32m--> 977\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 978\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ @@ -65,35 +65,35 @@
│ │ │ │ │ │ "\u001b[0;31mNameResolutionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 786\u001b[0m \u001b[38;5;66;03m# Make the request on the HTTPConnection object\u001b[39;00m\n\u001b[0;32m--> 787\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 788\u001b[0m \u001b[43m \u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 789\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 790\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 791\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 792\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 793\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 794\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 795\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 796\u001b[0m \u001b[43m \u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 797\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 798\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 799\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 800\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 802\u001b[0m \u001b[38;5;66;03m# Everything went great!\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 487\u001b[0m new_e \u001b[38;5;241m=\u001b[39m _wrap_proxy_error(new_e, conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m--> 488\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m new_e\n\u001b[1;32m 490\u001b[0m \u001b[38;5;66;03m# conn.request() calls http.client.*.request, not the method in\u001b[39;00m\n\u001b[1;32m 491\u001b[0m \u001b[38;5;66;03m# urllib3.request. It also calls makefile (recv) on the socket.\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 463\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 464\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 465\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (SocketTimeout, BaseSSLError) \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m, in \u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self, conn)\u001b[0m\n\u001b[1;32m 1092\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m-> 1093\u001b[0m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 1095\u001b[0m \u001b[38;5;66;03m# TODO revise this, see https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m, in \u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 703\u001b[0m sock: socket\u001b[38;5;241m.\u001b[39msocket \u001b[38;5;241m|\u001b[39m ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m--> 704\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock \u001b[38;5;241m=\u001b[39m sock \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m server_hostname: \u001b[38;5;28mstr\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[0;32m--> 205\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost, \u001b[38;5;28mself\u001b[39m, e) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m 206\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m SocketTimeout \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ - "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ + "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ "\nThe above exception was the direct cause of the following exception:\n",
│ │ │ │ │ │ "\u001b[0;31mMaxRetryError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 666\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 667\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 668\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 669\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 670\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 671\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 672\u001b[0m \u001b[43m \u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 673\u001b[0m \u001b[43m \u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 674\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 675\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 676\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 677\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 678\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 679\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 681\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (ProtocolError, \u001b[38;5;167;01mOSError\u001b[39;00m) \u001b[38;5;28;01mas\u001b[39;00m err:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 839\u001b[0m new_e \u001b[38;5;241m=\u001b[39m ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m, new_e)\n\u001b[0;32m--> 841\u001b[0m retries \u001b[38;5;241m=\u001b[39m \u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 842\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m 843\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 844\u001b[0m retries\u001b[38;5;241m.\u001b[39msleep()\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m, in \u001b[0;36mRetry.increment\u001b[0;34m(self, method, url, response, error, _pool, _stacktrace)\u001b[0m\n\u001b[1;32m 518\u001b[0m reason \u001b[38;5;241m=\u001b[39m error \u001b[38;5;129;01mor\u001b[39;00m ResponseError(cause)\n\u001b[0;32m--> 519\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m MaxRetryError(_pool, url, reason) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mreason\u001b[39;00m \u001b[38;5;66;03m# type: ignore[arg-type]\u001b[39;00m\n\u001b[1;32m 521\u001b[0m log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented Retry for (url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m): \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m, url, new_retry)\n",
│ │ │ │ │ │ - "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "\nDuring handling of the above exception, another exception occurred:\n",
│ │ │ │ │ │ "\u001b[0;31mConnectionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m ds \u001b[38;5;241m=\u001b[39m \u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mera5-2mt-2019-03-uk.grib\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mengine\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mcfgrib\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m, in \u001b[0;36mload_dataset\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 178\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Dataset:\n\u001b[1;32m 179\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m 180\u001b[0m \u001b[38;5;124;03m Open, load into memory, and close a dataset from the online repository\u001b[39;00m\n\u001b[1;32m 181\u001b[0m \u001b[38;5;124;03m (requires internet).\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 213\u001b[0m \u001b[38;5;124;03m load_dataset\u001b[39;00m\n\u001b[1;32m 214\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m--> 215\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m \u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m \u001b[38;5;28;01mas\u001b[39;00m ds:\n\u001b[1;32m 216\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m ds\u001b[38;5;241m.\u001b[39mload()\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m, in \u001b[0;36mopen_dataset\u001b[0;34m(name, cache, cache_dir, engine, **kws)\u001b[0m\n\u001b[1;32m 164\u001b[0m downloader \u001b[38;5;241m=\u001b[39m pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m 166\u001b[0m \u001b[38;5;66;03m# retrieve the file\u001b[39;00m\n\u001b[0;32m--> 167\u001b[0m filepath \u001b[38;5;241m=\u001b[39m \u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 168\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m 169\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 170\u001b[0m ds \u001b[38;5;241m=\u001b[39m _open_dataset(filepath, engine\u001b[38;5;241m=\u001b[39mengine, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m 171\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m cache:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m, in \u001b[0;36mretrieve\u001b[0;34m(url, known_hash, fname, path, processor, downloader, progressbar)\u001b[0m\n\u001b[1;32m 236\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m downloader \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 237\u001b[0m downloader \u001b[38;5;241m=\u001b[39m choose_downloader(url, progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m--> 239\u001b[0m \u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m 241\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m known_hash \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 242\u001b[0m get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m 243\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256 hash of downloaded file: \u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 244\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse this value as the \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m argument of \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 247\u001b[0m file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m 248\u001b[0m )\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m, in \u001b[0;36mstream_download\u001b[0;34m(url, fname, known_hash, downloader, pooch, retry_if_failed)\u001b[0m\n\u001b[1;32m 803\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 804\u001b[0m \u001b[38;5;66;03m# Stream the file to a temporary so that we can safely check its\u001b[39;00m\n\u001b[1;32m 805\u001b[0m \u001b[38;5;66;03m# hash before overwriting the original.\u001b[39;00m\n\u001b[1;32m 806\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent)) \u001b[38;5;28;01mas\u001b[39;00m tmp:\n\u001b[0;32m--> 807\u001b[0m \u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 808\u001b[0m hash_matches(tmp, known_hash, strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m, source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m 809\u001b[0m shutil\u001b[38;5;241m.\u001b[39mmove(tmp, \u001b[38;5;28mstr\u001b[39m(fname))\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m, in \u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self, url, output_file, pooch, check_only)\u001b[0m\n\u001b[1;32m 218\u001b[0m \u001b[38;5;66;03m# pylint: enable=consider-using-with\u001b[39;00m\n\u001b[1;32m 219\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 220\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 221\u001b[0m response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m 222\u001b[0m content \u001b[38;5;241m=\u001b[39m response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m, in \u001b[0;36mget\u001b[0;34m(url, params, **kwargs)\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mget\u001b[39m(url, params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m 63\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends a GET request.\u001b[39;00m\n\u001b[1;32m 64\u001b[0m \n\u001b[1;32m 65\u001b[0m \u001b[38;5;124;03m :param url: URL for the new :class:`Request` object.\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 70\u001b[0m \u001b[38;5;124;03m :rtype: requests.Response\u001b[39;00m\n\u001b[1;32m 71\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m---> 73\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m, in \u001b[0;36mrequest\u001b[0;34m(method, url, **kwargs)\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[38;5;66;03m# By using the 'with' statement we are sure the session is closed, thus we\u001b[39;00m\n\u001b[1;32m 56\u001b[0m \u001b[38;5;66;03m# avoid leaving sockets open which can trigger a ResourceWarning in some\u001b[39;00m\n\u001b[1;32m 57\u001b[0m \u001b[38;5;66;03m# cases, and look like a memory leak in others.\u001b[39;00m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m sessions\u001b[38;5;241m.\u001b[39mSession() \u001b[38;5;28;01mas\u001b[39;00m session:\n\u001b[0;32m---> 59\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m, in \u001b[0;36mSession.request\u001b[0;34m(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\u001b[0m\n\u001b[1;32m 584\u001b[0m send_kwargs \u001b[38;5;241m=\u001b[39m {\n\u001b[1;32m 585\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m: timeout,\n\u001b[1;32m 586\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m: allow_redirects,\n\u001b[1;32m 587\u001b[0m }\n\u001b[1;32m 588\u001b[0m send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m--> 589\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 591\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m, in \u001b[0;36mSession.send\u001b[0;34m(self, request, **kwargs)\u001b[0m\n\u001b[1;32m 700\u001b[0m start \u001b[38;5;241m=\u001b[39m preferred_clock()\n\u001b[1;32m 702\u001b[0m \u001b[38;5;66;03m# Send the request\u001b[39;00m\n\u001b[0;32m--> 703\u001b[0m r \u001b[38;5;241m=\u001b[39m \u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m \u001b[38;5;66;03m# Total elapsed time of the request (approximately)\u001b[39;00m\n\u001b[1;32m 706\u001b[0m elapsed \u001b[38;5;241m=\u001b[39m preferred_clock() \u001b[38;5;241m-\u001b[39m start\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 696\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason, _SSLError):\n\u001b[1;32m 697\u001b[0m \u001b[38;5;66;03m# This branch is for urllib3 v1.22 and later.\u001b[39;00m\n\u001b[1;32m 698\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m SSLError(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m--> 700\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m 702\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m ClosedPoolError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m 703\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n",
│ │ │ │ │ │ - "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ + "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/era5-2mt-2019-03-uk.grib (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ ]
│ │ │ │ │ │ }
│ │ │ │ │ │ ],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "ds = xr.tutorial.load_dataset(\"era5-2mt-2019-03-uk.grib\", engine=\"cfgrib\")"
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ @@ -105,18 +105,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 3,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:25.161653Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:25.161240Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:25.190211Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:25.188945Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:00.124902Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:00.124617Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:00.143554Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:00.142837Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -141,18 +141,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 4,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:25.195379Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:25.194295Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:27.255467Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:27.254489Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:00.146903Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:00.146642Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:02.153698Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:02.152697Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -171,15 +171,15 @@
│ │ │ │ │ │ " warnings.warn(f'Downloading: {url}', DownloadWarning)\n"
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "name": "stdout",
│ │ │ │ │ │ "output_type": "stream",
│ │ │ │ │ │ "text": [
│ │ │ │ │ │ - "Error in callback (for post_execute), with arguments args (),kwargs {}:\n"
│ │ │ │ │ │ + "Error in callback (for post_execute), with arguments args (),kwargs {}:\n"
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "URLError",
│ │ │ │ │ │ "evalue": "",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ "traceback": [
│ │ │ │ │ │ @@ -318,18 +318,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 5,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:27.263332Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:27.263059Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:27.295199Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:27.294488Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:02.156546Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:02.156308Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:02.172052Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:02.171434Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html
│ │ │ │ @@ -185,15 +185,15 @@
│ │ │ │ 705 server_hostname: str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205 , in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket. gaierror as e:
│ │ │ │ --> 205 raise NameResolutionError(self . host, self , e) from e
│ │ │ │ 206 except SocketTimeout as e:
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff6445c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff3d59c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667 , in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -219,15 +219,15 @@
│ │ │ │ 844 retries. sleep()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519 , in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError(cause)
│ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
│ │ │ │ 521 log. debug(" Incremented Retry for (url= ' %s ' ): %r " , url, new_retry)
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff6445c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff3d59c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In[2], line 2
│ │ │ │ 1 # load in the file
│ │ │ │ ----> 2 ds = xr . tutorial . open_dataset ( " ROMS_example.nc " , chunks = { " ocean_time " : 1 } )
│ │ │ │ @@ -309,15 +309,15 @@
│ │ │ │ 696 if isinstance (e. reason, _SSLError):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError(e, request= request)
│ │ │ │ --> 700 raise ConnectionError (e, request= request)
│ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ 703 raise ConnectionError (e, request= request)
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff6445c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff3d59c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Add a lazilly calculated vertical coordinates
│ │ │ │ Write equations to calculate the vertical coordinate. These will be only evaluated when data is requested. Information about the ROMS vertical coordinate can be found (here)[https://www.myroms.org/wiki/Vertical_S-coordinate ]
│ │ │ │ In short, for Vtransform==2
as used in this example,
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -134,15 +134,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff3d59c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -178,15 +178,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff3d59c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[2], line 2
│ │ │ │ │ 1 # load in the file
│ │ │ │ │ @@ -288,15 +288,15 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff3d59c050>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │ ********** AAdddd aa llaazziillllyy ccaallccuullaatteedd vveerrttiiccaall ccoooorrddiinnaatteess_?¶ **********
│ │ │ │ │ Write equations to calculate the vertical coordinate. These will be only
│ │ │ │ │ evaluated when data is requested. Information about the ROMS vertical
│ │ │ │ │ coordinate can be found (here)[_h_t_t_p_s_:_/_/_w_w_w_._m_y_r_o_m_s_._o_r_g_/_w_i_k_i_/_V_e_r_t_i_c_a_l___S_-
│ │ │ │ │ _c_o_o_r_d_i_n_a_t_e]
│ │ │ │ │ In short, for Vtransform==2 as used in this example,
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz
│ │ │ │ ├── ROMS_ocean_model.ipynb
│ │ │ │ │ ├── Pretty-printed
│ │ │ │ │ │┄ Similarity: 0.9986983306836248%
│ │ │ │ │ │┄ Differences: {"'cells'": "{2: {'metadata': {'execution': {'iopub.execute_input': '2026-06-08T02:16:07.316764Z', "
│ │ │ │ │ │┄ "'iopub.status.busy': '2026-06-08T02:16:07.316503Z', 'iopub.status.idle': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:08.401808Z', 'shell.execute_reply': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:08.401099Z'}}}, 5: {'metadata': {'execution': "
│ │ │ │ │ │┄ "{'iopub.execute_input': '2026-06-08T02:16:08.408964Z', 'iopub.status.busy': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:08.408526Z', 'iopub.status.idle': '2026-06-08T02:16:0 […]
│ │ │ │ │ │ @@ -17,18 +17,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 1,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:33.931470Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:33.931168Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:35.658523Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:35.642507Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:07.316764Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:07.316503Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:08.401808Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:08.401099Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "import numpy as np\n",
│ │ │ │ │ │ "import cartopy.crs as ccrs\n",
│ │ │ │ │ │ "import cartopy.feature as cfeature\n",
│ │ │ │ │ │ @@ -75,24 +75,24 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 2,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:35.667572Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:35.667114Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:37.010517Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:36.994498Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:08.408964Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:08.408526Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:09.124264Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:09.122506Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "ConnectionError",
│ │ │ │ │ │ - "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ "traceback": [
│ │ │ │ │ │ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
│ │ │ │ │ │ "\u001b[0;31mgaierror\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 197\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 198\u001b[0m sock \u001b[38;5;241m=\u001b[39m \u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 199\u001b[0m \u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 200\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 201\u001b[0m \u001b[43m \u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 202\u001b[0m \u001b[43m \u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 203\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m, in \u001b[0;36mcreate_connection\u001b[0;34m(address, timeout, source_address, socket_options)\u001b[0m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m, label empty or too long\u001b[39m\u001b[38;5;124m\"\u001b[39m) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m---> 60\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 61\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m, in \u001b[0;36mgetaddrinfo\u001b[0;34m(host, port, family, type, proto, flags)\u001b[0m\n\u001b[1;32m 976\u001b[0m addrlist \u001b[38;5;241m=\u001b[39m []\n\u001b[0;32m--> 977\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 978\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ @@ -101,34 +101,34 @@
│ │ │ │ │ │ "\u001b[0;31mNameResolutionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 786\u001b[0m \u001b[38;5;66;03m# Make the request on the HTTPConnection object\u001b[39;00m\n\u001b[0;32m--> 787\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 788\u001b[0m \u001b[43m \u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 789\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 790\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 791\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 792\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 793\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 794\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 795\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 796\u001b[0m \u001b[43m \u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 797\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 798\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 799\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 800\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 802\u001b[0m \u001b[38;5;66;03m# Everything went great!\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 487\u001b[0m new_e \u001b[38;5;241m=\u001b[39m _wrap_proxy_error(new_e, conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m--> 488\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m new_e\n\u001b[1;32m 490\u001b[0m \u001b[38;5;66;03m# conn.request() calls http.client.*.request, not the method in\u001b[39;00m\n\u001b[1;32m 491\u001b[0m \u001b[38;5;66;03m# urllib3.request. It also calls makefile (recv) on the socket.\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 463\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 464\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 465\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (SocketTimeout, BaseSSLError) \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m, in \u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self, conn)\u001b[0m\n\u001b[1;32m 1092\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m-> 1093\u001b[0m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 1095\u001b[0m \u001b[38;5;66;03m# TODO revise this, see https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m, in \u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 703\u001b[0m sock: socket\u001b[38;5;241m.\u001b[39msocket \u001b[38;5;241m|\u001b[39m ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m--> 704\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock \u001b[38;5;241m=\u001b[39m sock \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m server_hostname: \u001b[38;5;28mstr\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[0;32m--> 205\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost, \u001b[38;5;28mself\u001b[39m, e) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m 206\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m SocketTimeout \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ - "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ + "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ "\nThe above exception was the direct cause of the following exception:\n",
│ │ │ │ │ │ "\u001b[0;31mMaxRetryError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 666\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 667\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 668\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 669\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 670\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 671\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 672\u001b[0m \u001b[43m \u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 673\u001b[0m \u001b[43m \u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 674\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 675\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 676\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 677\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 678\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 679\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 681\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (ProtocolError, \u001b[38;5;167;01mOSError\u001b[39;00m) \u001b[38;5;28;01mas\u001b[39;00m err:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 839\u001b[0m new_e \u001b[38;5;241m=\u001b[39m ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m, new_e)\n\u001b[0;32m--> 841\u001b[0m retries \u001b[38;5;241m=\u001b[39m \u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 842\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m 843\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 844\u001b[0m retries\u001b[38;5;241m.\u001b[39msleep()\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m, in \u001b[0;36mRetry.increment\u001b[0;34m(self, method, url, response, error, _pool, _stacktrace)\u001b[0m\n\u001b[1;32m 518\u001b[0m reason \u001b[38;5;241m=\u001b[39m error \u001b[38;5;129;01mor\u001b[39;00m ResponseError(cause)\n\u001b[0;32m--> 519\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m MaxRetryError(_pool, url, reason) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mreason\u001b[39;00m \u001b[38;5;66;03m# type: ignore[arg-type]\u001b[39;00m\n\u001b[1;32m 521\u001b[0m log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented Retry for (url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m): \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m, url, new_retry)\n",
│ │ │ │ │ │ - "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "\nDuring handling of the above exception, another exception occurred:\n",
│ │ │ │ │ │ "\u001b[0;31mConnectionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "Cell \u001b[0;32mIn[2], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# load in the file\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m ds \u001b[38;5;241m=\u001b[39m \u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mROMS_example.nc\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mchunks\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m{\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mocean_time\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m1\u001b[39;49m\u001b[43m}\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 4\u001b[0m \u001b[38;5;66;03m# This is a way to turn on chunking and lazy evaluation. Opening with mfdataset, or\u001b[39;00m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;66;03m# setting the chunking in the open_dataset would also achieve this.\u001b[39;00m\n\u001b[1;32m 6\u001b[0m ds\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m, in \u001b[0;36mopen_dataset\u001b[0;34m(name, cache, cache_dir, engine, **kws)\u001b[0m\n\u001b[1;32m 164\u001b[0m downloader \u001b[38;5;241m=\u001b[39m pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m 166\u001b[0m \u001b[38;5;66;03m# retrieve the file\u001b[39;00m\n\u001b[0;32m--> 167\u001b[0m filepath \u001b[38;5;241m=\u001b[39m \u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 168\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m 169\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 170\u001b[0m ds \u001b[38;5;241m=\u001b[39m _open_dataset(filepath, engine\u001b[38;5;241m=\u001b[39mengine, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m 171\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m cache:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m, in \u001b[0;36mretrieve\u001b[0;34m(url, known_hash, fname, path, processor, downloader, progressbar)\u001b[0m\n\u001b[1;32m 236\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m downloader \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 237\u001b[0m downloader \u001b[38;5;241m=\u001b[39m choose_downloader(url, progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m--> 239\u001b[0m \u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m 241\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m known_hash \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 242\u001b[0m get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m 243\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256 hash of downloaded file: \u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 244\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse this value as the \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m argument of \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 247\u001b[0m file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m 248\u001b[0m )\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m, in \u001b[0;36mstream_download\u001b[0;34m(url, fname, known_hash, downloader, pooch, retry_if_failed)\u001b[0m\n\u001b[1;32m 803\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 804\u001b[0m \u001b[38;5;66;03m# Stream the file to a temporary so that we can safely check its\u001b[39;00m\n\u001b[1;32m 805\u001b[0m \u001b[38;5;66;03m# hash before overwriting the original.\u001b[39;00m\n\u001b[1;32m 806\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent)) \u001b[38;5;28;01mas\u001b[39;00m tmp:\n\u001b[0;32m--> 807\u001b[0m \u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 808\u001b[0m hash_matches(tmp, known_hash, strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m, source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m 809\u001b[0m shutil\u001b[38;5;241m.\u001b[39mmove(tmp, \u001b[38;5;28mstr\u001b[39m(fname))\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m, in \u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self, url, output_file, pooch, check_only)\u001b[0m\n\u001b[1;32m 218\u001b[0m \u001b[38;5;66;03m# pylint: enable=consider-using-with\u001b[39;00m\n\u001b[1;32m 219\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 220\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 221\u001b[0m response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m 222\u001b[0m content \u001b[38;5;241m=\u001b[39m response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m, in \u001b[0;36mget\u001b[0;34m(url, params, **kwargs)\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mget\u001b[39m(url, params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m 63\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends a GET request.\u001b[39;00m\n\u001b[1;32m 64\u001b[0m \n\u001b[1;32m 65\u001b[0m \u001b[38;5;124;03m :param url: URL for the new :class:`Request` object.\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 70\u001b[0m \u001b[38;5;124;03m :rtype: requests.Response\u001b[39;00m\n\u001b[1;32m 71\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m---> 73\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m, in \u001b[0;36mrequest\u001b[0;34m(method, url, **kwargs)\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[38;5;66;03m# By using the 'with' statement we are sure the session is closed, thus we\u001b[39;00m\n\u001b[1;32m 56\u001b[0m \u001b[38;5;66;03m# avoid leaving sockets open which can trigger a ResourceWarning in some\u001b[39;00m\n\u001b[1;32m 57\u001b[0m \u001b[38;5;66;03m# cases, and look like a memory leak in others.\u001b[39;00m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m sessions\u001b[38;5;241m.\u001b[39mSession() \u001b[38;5;28;01mas\u001b[39;00m session:\n\u001b[0;32m---> 59\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m, in \u001b[0;36mSession.request\u001b[0;34m(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\u001b[0m\n\u001b[1;32m 584\u001b[0m send_kwargs \u001b[38;5;241m=\u001b[39m {\n\u001b[1;32m 585\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m: timeout,\n\u001b[1;32m 586\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m: allow_redirects,\n\u001b[1;32m 587\u001b[0m }\n\u001b[1;32m 588\u001b[0m send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m--> 589\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 591\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m, in \u001b[0;36mSession.send\u001b[0;34m(self, request, **kwargs)\u001b[0m\n\u001b[1;32m 700\u001b[0m start \u001b[38;5;241m=\u001b[39m preferred_clock()\n\u001b[1;32m 702\u001b[0m \u001b[38;5;66;03m# Send the request\u001b[39;00m\n\u001b[0;32m--> 703\u001b[0m r \u001b[38;5;241m=\u001b[39m \u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m \u001b[38;5;66;03m# Total elapsed time of the request (approximately)\u001b[39;00m\n\u001b[1;32m 706\u001b[0m elapsed \u001b[38;5;241m=\u001b[39m preferred_clock() \u001b[38;5;241m-\u001b[39m start\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 696\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason, _SSLError):\n\u001b[1;32m 697\u001b[0m \u001b[38;5;66;03m# This branch is for urllib3 v1.22 and later.\u001b[39;00m\n\u001b[1;32m 698\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m SSLError(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m--> 700\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m 702\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m ClosedPoolError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m 703\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n",
│ │ │ │ │ │ - "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ + "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/ROMS_example.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ ]
│ │ │ │ │ │ }
│ │ │ │ │ │ ],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "# load in the file\n",
│ │ │ │ │ │ "ds = xr.tutorial.open_dataset(\"ROMS_example.nc\", chunks={\"ocean_time\": 1})\n",
│ │ │ │ │ │ "\n",
│ │ │ │ │ │ @@ -155,18 +155,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 3,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:37.020678Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:37.020418Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:37.102517Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:37.086498Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:09.127409Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:09.127157Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:09.148209Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:09.145592Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -200,18 +200,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 4,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:37.112621Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:37.112365Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:37.202530Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:37.186501Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:09.150909Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:09.150683Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:09.192624Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:09.191948Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "scrolled": false
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ @@ -236,18 +236,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 5,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:37.212702Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:37.212436Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:37.282515Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:37.266492Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:09.195057Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:09.194820Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:09.210893Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:09.210356Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -275,18 +275,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 6,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:37.292640Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:37.292374Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:37.362722Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:37.346487Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:09.213382Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:09.213162Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:09.228991Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:09.228430Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -310,18 +310,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 7,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:29:37.372671Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:29:37.372402Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:29:37.555288Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:29:37.554494Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:09.231590Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:09.231370Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:09.316584Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:09.315934Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html
│ │ │ │ @@ -165,15 +165,15 @@
│ │ │ │ 705 server_hostname: str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205 , in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket. gaierror as e:
│ │ │ │ --> 205 raise NameResolutionError(self . host, self , e) from e
│ │ │ │ 206 except SocketTimeout as e:
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff675ea660>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff3fc4a660>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667 , in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -199,15 +199,15 @@
│ │ │ │ 844 retries. sleep()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519 , in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError(cause)
│ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
│ │ │ │ 521 log. debug(" Incremented Retry for (url= ' %s ' ): %r " , url, new_retry)
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff675ea660>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff3fc4a660>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In[1], line 7
│ │ │ │ 2 import numpy as np
│ │ │ │ 4 xr. set_options(display_style= " html " ) # fancy HTML repr
│ │ │ │ @@ -303,15 +303,15 @@
│ │ │ │ 696 if isinstance (e. reason, _SSLError):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError(e, request= request)
│ │ │ │ --> 700 raise ConnectionError (e, request= request)
│ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ 703 raise ConnectionError (e, request= request)
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff675ea660>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff3fc4a660>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ The function we will apply is np.interp
which expects 1D numpy arrays. This functionality is already implemented in xarray so we use that capability to make sure we are not making mistakes.
│ │ │ │
│ │ │ │
│ │ │ │ Plot the first timestep:
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Now for the heavy lifting:
│ │ │ │ We first have to come up with the weights, - calculate the month length for each monthly data record - calculate weights using groupby('time.season')
│ │ │ │ Finally, we just need to multiply our weights by the Dataset
and sum along the time dimension. Creating a DataArray
for the month length is as easy as using the days_in_month
accessor on the time coordinate. The calendar type, in this case 'noleap'
, is automatically considered in this operation.
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -100,15 +100,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff53b35be0>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -144,15 +144,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff53b35be0>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[2], line 1
│ │ │ │ │ ----> 1 ds = xr.tutorial.open_dataset("rasm").load()
│ │ │ │ │ @@ -249,15 +249,15 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff53b35be0>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │ ********** NNooww ffoorr tthhee hheeaavvyy lliiffttiinngg::_?¶ **********
│ │ │ │ │ We first have to come up with the weights, - calculate the month length for
│ │ │ │ │ each monthly data record - calculate weights using groupby('time.season')
│ │ │ │ │ Finally, we just need to multiply our weights by the Dataset and sum along the
│ │ │ │ │ time dimension. Creating a DataArray for the month length is as easy as using
│ │ │ │ │ the days_in_month accessor on the time coordinate. The calendar type, in this
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz
│ │ │ │ ├── monthly-means.ipynb
│ │ │ │ │ ├── Pretty-printed
│ │ │ │ │ │┄ Similarity: 0.9985565110565111%
│ │ │ │ │ │┄ Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2026-06-08T02:16:31.944724Z', "
│ │ │ │ │ │┄ "'iopub.status.busy': '2026-06-08T02:16:31.944463Z', 'iopub.status.idle': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:33.000302Z', 'shell.execute_reply': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:32.998803Z'}}}, 3: {'metadata': {'execution': "
│ │ │ │ │ │┄ "{'iopub.execute_input': '2026-06-08T02:16:33.008978Z', 'iopub.status.busy': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:33.008533Z', 'iopub.status.idle': '2026-06-08T02:16:3 […]
│ │ │ │ │ │ @@ -19,18 +19,18 @@
│ │ │ │ │ │ "execution_count": 1,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:35.958210Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:35.936966Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:02.932286Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:02.931842Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:03.812438Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:03.811857Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:31.944724Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:31.944463Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.000302Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:32.998803Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "%matplotlib inline\n",
│ │ │ │ │ │ "import numpy as np\n",
│ │ │ │ │ │ "import pandas as pd\n",
│ │ │ │ │ │ @@ -50,24 +50,24 @@
│ │ │ │ │ │ "execution_count": 2,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:36.072316Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:36.016594Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:03.815704Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:03.815277Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.435506Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.434446Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.008978Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.008533Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.648833Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.647953Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "ConnectionError",
│ │ │ │ │ │ - "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ "traceback": [
│ │ │ │ │ │ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
│ │ │ │ │ │ "\u001b[0;31mgaierror\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 197\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 198\u001b[0m sock \u001b[38;5;241m=\u001b[39m \u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 199\u001b[0m \u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 200\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 201\u001b[0m \u001b[43m \u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 202\u001b[0m \u001b[43m \u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 203\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m, in \u001b[0;36mcreate_connection\u001b[0;34m(address, timeout, source_address, socket_options)\u001b[0m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m, label empty or too long\u001b[39m\u001b[38;5;124m\"\u001b[39m) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m---> 60\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 61\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m, in \u001b[0;36mgetaddrinfo\u001b[0;34m(host, port, family, type, proto, flags)\u001b[0m\n\u001b[1;32m 976\u001b[0m addrlist \u001b[38;5;241m=\u001b[39m []\n\u001b[0;32m--> 977\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 978\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ @@ -76,34 +76,34 @@
│ │ │ │ │ │ "\u001b[0;31mNameResolutionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 786\u001b[0m \u001b[38;5;66;03m# Make the request on the HTTPConnection object\u001b[39;00m\n\u001b[0;32m--> 787\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 788\u001b[0m \u001b[43m \u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 789\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 790\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 791\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 792\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 793\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 794\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 795\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 796\u001b[0m \u001b[43m \u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 797\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 798\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 799\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 800\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 802\u001b[0m \u001b[38;5;66;03m# Everything went great!\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 487\u001b[0m new_e \u001b[38;5;241m=\u001b[39m _wrap_proxy_error(new_e, conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m--> 488\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m new_e\n\u001b[1;32m 490\u001b[0m \u001b[38;5;66;03m# conn.request() calls http.client.*.request, not the method in\u001b[39;00m\n\u001b[1;32m 491\u001b[0m \u001b[38;5;66;03m# urllib3.request. It also calls makefile (recv) on the socket.\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 463\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 464\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 465\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (SocketTimeout, BaseSSLError) \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m, in \u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self, conn)\u001b[0m\n\u001b[1;32m 1092\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m-> 1093\u001b[0m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 1095\u001b[0m \u001b[38;5;66;03m# TODO revise this, see https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m, in \u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 703\u001b[0m sock: socket\u001b[38;5;241m.\u001b[39msocket \u001b[38;5;241m|\u001b[39m ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m--> 704\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock \u001b[38;5;241m=\u001b[39m sock \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m server_hostname: \u001b[38;5;28mstr\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[0;32m--> 205\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost, \u001b[38;5;28mself\u001b[39m, e) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m 206\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m SocketTimeout \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ - "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ + "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ "\nThe above exception was the direct cause of the following exception:\n",
│ │ │ │ │ │ "\u001b[0;31mMaxRetryError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 666\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 667\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 668\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 669\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 670\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 671\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 672\u001b[0m \u001b[43m \u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 673\u001b[0m \u001b[43m \u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 674\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 675\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 676\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 677\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 678\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 679\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 681\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (ProtocolError, \u001b[38;5;167;01mOSError\u001b[39;00m) \u001b[38;5;28;01mas\u001b[39;00m err:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 839\u001b[0m new_e \u001b[38;5;241m=\u001b[39m ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m, new_e)\n\u001b[0;32m--> 841\u001b[0m retries \u001b[38;5;241m=\u001b[39m \u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 842\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m 843\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 844\u001b[0m retries\u001b[38;5;241m.\u001b[39msleep()\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m, in \u001b[0;36mRetry.increment\u001b[0;34m(self, method, url, response, error, _pool, _stacktrace)\u001b[0m\n\u001b[1;32m 518\u001b[0m reason \u001b[38;5;241m=\u001b[39m error \u001b[38;5;129;01mor\u001b[39;00m ResponseError(cause)\n\u001b[0;32m--> 519\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m MaxRetryError(_pool, url, reason) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mreason\u001b[39;00m \u001b[38;5;66;03m# type: ignore[arg-type]\u001b[39;00m\n\u001b[1;32m 521\u001b[0m log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented Retry for (url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m): \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m, url, new_retry)\n",
│ │ │ │ │ │ - "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "\nDuring handling of the above exception, another exception occurred:\n",
│ │ │ │ │ │ "\u001b[0;31mConnectionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m ds \u001b[38;5;241m=\u001b[39m \u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mrasm\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[38;5;241m.\u001b[39mload()\n\u001b[1;32m 2\u001b[0m ds\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m, in \u001b[0;36mopen_dataset\u001b[0;34m(name, cache, cache_dir, engine, **kws)\u001b[0m\n\u001b[1;32m 164\u001b[0m downloader \u001b[38;5;241m=\u001b[39m pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m 166\u001b[0m \u001b[38;5;66;03m# retrieve the file\u001b[39;00m\n\u001b[0;32m--> 167\u001b[0m filepath \u001b[38;5;241m=\u001b[39m \u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 168\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m 169\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 170\u001b[0m ds \u001b[38;5;241m=\u001b[39m _open_dataset(filepath, engine\u001b[38;5;241m=\u001b[39mengine, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m 171\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m cache:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m, in \u001b[0;36mretrieve\u001b[0;34m(url, known_hash, fname, path, processor, downloader, progressbar)\u001b[0m\n\u001b[1;32m 236\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m downloader \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 237\u001b[0m downloader \u001b[38;5;241m=\u001b[39m choose_downloader(url, progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m--> 239\u001b[0m \u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m 241\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m known_hash \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 242\u001b[0m get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m 243\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256 hash of downloaded file: \u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 244\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse this value as the \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m argument of \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 247\u001b[0m file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m 248\u001b[0m )\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m, in \u001b[0;36mstream_download\u001b[0;34m(url, fname, known_hash, downloader, pooch, retry_if_failed)\u001b[0m\n\u001b[1;32m 803\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 804\u001b[0m \u001b[38;5;66;03m# Stream the file to a temporary so that we can safely check its\u001b[39;00m\n\u001b[1;32m 805\u001b[0m \u001b[38;5;66;03m# hash before overwriting the original.\u001b[39;00m\n\u001b[1;32m 806\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent)) \u001b[38;5;28;01mas\u001b[39;00m tmp:\n\u001b[0;32m--> 807\u001b[0m \u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 808\u001b[0m hash_matches(tmp, known_hash, strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m, source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m 809\u001b[0m shutil\u001b[38;5;241m.\u001b[39mmove(tmp, \u001b[38;5;28mstr\u001b[39m(fname))\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m, in \u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self, url, output_file, pooch, check_only)\u001b[0m\n\u001b[1;32m 218\u001b[0m \u001b[38;5;66;03m# pylint: enable=consider-using-with\u001b[39;00m\n\u001b[1;32m 219\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 220\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 221\u001b[0m response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m 222\u001b[0m content \u001b[38;5;241m=\u001b[39m response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m, in \u001b[0;36mget\u001b[0;34m(url, params, **kwargs)\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mget\u001b[39m(url, params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m 63\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends a GET request.\u001b[39;00m\n\u001b[1;32m 64\u001b[0m \n\u001b[1;32m 65\u001b[0m \u001b[38;5;124;03m :param url: URL for the new :class:`Request` object.\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 70\u001b[0m \u001b[38;5;124;03m :rtype: requests.Response\u001b[39;00m\n\u001b[1;32m 71\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m---> 73\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m, in \u001b[0;36mrequest\u001b[0;34m(method, url, **kwargs)\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[38;5;66;03m# By using the 'with' statement we are sure the session is closed, thus we\u001b[39;00m\n\u001b[1;32m 56\u001b[0m \u001b[38;5;66;03m# avoid leaving sockets open which can trigger a ResourceWarning in some\u001b[39;00m\n\u001b[1;32m 57\u001b[0m \u001b[38;5;66;03m# cases, and look like a memory leak in others.\u001b[39;00m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m sessions\u001b[38;5;241m.\u001b[39mSession() \u001b[38;5;28;01mas\u001b[39;00m session:\n\u001b[0;32m---> 59\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m, in \u001b[0;36mSession.request\u001b[0;34m(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\u001b[0m\n\u001b[1;32m 584\u001b[0m send_kwargs \u001b[38;5;241m=\u001b[39m {\n\u001b[1;32m 585\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m: timeout,\n\u001b[1;32m 586\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m: allow_redirects,\n\u001b[1;32m 587\u001b[0m }\n\u001b[1;32m 588\u001b[0m send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m--> 589\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 591\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m, in \u001b[0;36mSession.send\u001b[0;34m(self, request, **kwargs)\u001b[0m\n\u001b[1;32m 700\u001b[0m start \u001b[38;5;241m=\u001b[39m preferred_clock()\n\u001b[1;32m 702\u001b[0m \u001b[38;5;66;03m# Send the request\u001b[39;00m\n\u001b[0;32m--> 703\u001b[0m r \u001b[38;5;241m=\u001b[39m \u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m \u001b[38;5;66;03m# Total elapsed time of the request (approximately)\u001b[39;00m\n\u001b[1;32m 706\u001b[0m elapsed \u001b[38;5;241m=\u001b[39m preferred_clock() \u001b[38;5;241m-\u001b[39m start\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 696\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason, _SSLError):\n\u001b[1;32m 697\u001b[0m \u001b[38;5;66;03m# This branch is for urllib3 v1.22 and later.\u001b[39;00m\n\u001b[1;32m 698\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m SSLError(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m--> 700\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m 702\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m ClosedPoolError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m 703\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n",
│ │ │ │ │ │ - "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ + "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ ]
│ │ │ │ │ │ }
│ │ │ │ │ │ ],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "ds = xr.tutorial.open_dataset(\"rasm\").load()\n",
│ │ │ │ │ │ "ds"
│ │ │ │ │ │ ]
│ │ │ │ │ │ @@ -121,18 +121,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 3,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:04.440389Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:04.440115Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.458215Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.457177Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.652176Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.651917Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.688640Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.687949Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -154,18 +154,18 @@
│ │ │ │ │ │ "execution_count": 4,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:36.132413Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:36.073708Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:04.461830Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:04.461577Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.480521Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.479537Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.691641Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.691381Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.720631Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.719951Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'month_length' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -195,18 +195,18 @@
│ │ │ │ │ │ "execution_count": 5,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:36.152913Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:36.133997Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:04.484261Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:04.483994Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.500767Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.499574Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.723524Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.723280Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.740949Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.738728Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds_weighted' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -227,18 +227,18 @@
│ │ │ │ │ │ "execution_count": 6,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:36.190765Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:36.154416Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:04.504629Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:04.504362Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.521595Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.520156Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.743784Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.743553Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.765191Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.762393Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -261,18 +261,18 @@
│ │ │ │ │ │ "execution_count": 7,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:40.264871Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:36.192467Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:04.525666Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:04.525393Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.550511Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.548997Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.768385Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.768107Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.793531Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.792891Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds_unweighted' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -341,18 +341,18 @@
│ │ │ │ │ │ "execution_count": 8,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "ExecuteTime": {
│ │ │ │ │ │ "end_time": "2018-11-28T20:51:40.284898Z",
│ │ │ │ │ │ "start_time": "2018-11-28T20:51:40.266406Z"
│ │ │ │ │ │ },
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:04.555639Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:04.555353Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:04.560849Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:04.559190Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:33.796199Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:33.795959Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:33.808444Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:33.805052Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "# Wrap it into a simple function\n",
│ │ │ │ │ │ "def season_mean(ds, calendar=\"standard\"):\n",
│ │ │ │ │ │ " # Make a DataArray with the number of days in each month, size = len(time)\n",
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html
│ │ │ │ @@ -155,15 +155,15 @@
│ │ │ │ 705 server_hostname: str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205 , in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket. gaierror as e:
│ │ │ │ --> 205 raise NameResolutionError(self . host, self , e) from e
│ │ │ │ 206 except SocketTimeout as e:
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff56ad8980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff54e8c980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667 , in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -189,15 +189,15 @@
│ │ │ │ 844 retries. sleep()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519 , in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError(cause)
│ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
│ │ │ │ 521 log. debug(" Incremented Retry for (url= ' %s ' ): %r " , url, new_retry)
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff56ad8980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff54e8c980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In[2], line 1
│ │ │ │ ----> 1 ds = xr . tutorial . open_dataset ( " rasm " ) . load()
│ │ │ │ 2 ds
│ │ │ │ @@ -276,15 +276,15 @@
│ │ │ │ 696 if isinstance (e. reason, _SSLError):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError(e, request= request)
│ │ │ │ --> 700 raise ConnectionError (e, request= request)
│ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ 703 raise ConnectionError (e, request= request)
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff56ad8980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff54e8c980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In this example, the logical coordinates are x
and y
, while the physical coordinates are xc
and yc
, which represent the longitudes and latitudes of the data.
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Multiple plots and map projections
│ │ │ │ Control the map projection parameters on multiple axes
│ │ │ │ This example illustrates how to plot multiple maps and control their extent and aspect ratio.
│ │ │ │ For more details see this discussion on github.
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -94,15 +94,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff40848980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -138,15 +138,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff40848980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[2], line 1
│ │ │ │ │ ----> 1 ds = xr.tutorial.load_dataset("air_temperature")
│ │ │ │ │ @@ -255,15 +255,15 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff40848980>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │ ********** MMuullttiippllee pplloottss aanndd mmaapp pprroojjeeccttiioonnss_?¶ **********
│ │ │ │ │ Control the map projection parameters on multiple axes
│ │ │ │ │ This example illustrates how to plot multiple maps and control their extent and
│ │ │ │ │ aspect ratio.
│ │ │ │ │ For more details see _t_h_i_s_ _d_i_s_c_u_s_s_i_o_n on github.
│ │ │ │ │ [3]:
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz
│ │ │ │ ├── visualization_gallery.ipynb
│ │ │ │ │ ├── Pretty-printed
│ │ │ │ │ │┄ Similarity: 0.9982867324561404%
│ │ │ │ │ │┄ Differences: {"'cells'": "{1: {'metadata': {'execution': {'iopub.execute_input': '2026-06-08T02:16:44.964753Z', "
│ │ │ │ │ │┄ "'iopub.status.busy': '2026-06-08T02:16:44.964484Z', 'iopub.status.idle': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:46.104677Z', 'shell.execute_reply': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:46.103961Z'}}}, 3: {'metadata': {'execution': "
│ │ │ │ │ │┄ "{'iopub.execute_input': '2026-06-08T02:16:46.121608Z', 'iopub.status.busy': "
│ │ │ │ │ │┄ "'2026-06-08T02:16:46.120532Z', 'iopub.status.idle': '2026-06-08T02:16:4 […]
│ │ │ │ │ │ @@ -10,18 +10,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 1,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:12.107469Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:12.106181Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:13.044592Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:13.043605Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:44.964753Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:44.964484Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:46.104677Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:46.103961Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "import cartopy.crs as ccrs\n",
│ │ │ │ │ │ "import matplotlib.pyplot as plt\n",
│ │ │ │ │ │ "import xarray as xr\n",
│ │ │ │ │ │ @@ -37,24 +37,24 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 2,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:13.049088Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:13.048046Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:13.671951Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:13.670801Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:46.121608Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:46.120532Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:46.756784Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:46.755941Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "ConnectionError",
│ │ │ │ │ │ - "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "evalue": "HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ "traceback": [
│ │ │ │ │ │ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
│ │ │ │ │ │ "\u001b[0;31mgaierror\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:198\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 197\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 198\u001b[0m sock \u001b[38;5;241m=\u001b[39m \u001b[43mconnection\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcreate_connection\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 199\u001b[0m \u001b[43m \u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_dns_host\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mport\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 200\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 201\u001b[0m \u001b[43m \u001b[49m\u001b[43msource_address\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msource_address\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 202\u001b[0m \u001b[43m \u001b[49m\u001b[43msocket_options\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msocket_options\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 203\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/connection.py:60\u001b[0m, in \u001b[0;36mcreate_connection\u001b[0;34m(address, timeout, source_address, socket_options)\u001b[0m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m LocationParseError(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mhost\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m, label empty or too long\u001b[39m\u001b[38;5;124m\"\u001b[39m) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m\n\u001b[0;32m---> 60\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43msocket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mSOCK_STREAM\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 61\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3.13/socket.py:977\u001b[0m, in \u001b[0;36mgetaddrinfo\u001b[0;34m(host, port, family, type, proto, flags)\u001b[0m\n\u001b[1;32m 976\u001b[0m addrlist \u001b[38;5;241m=\u001b[39m []\n\u001b[0;32m--> 977\u001b[0m \u001b[38;5;28;01mfor\u001b[39;00m res \u001b[38;5;129;01min\u001b[39;00m \u001b[43m_socket\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgetaddrinfo\u001b[49m\u001b[43m(\u001b[49m\u001b[43mhost\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mport\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfamily\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43mtype\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mproto\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mflags\u001b[49m\u001b[43m)\u001b[49m:\n\u001b[1;32m 978\u001b[0m af, socktype, proto, canonname, sa \u001b[38;5;241m=\u001b[39m res\n",
│ │ │ │ │ │ @@ -63,35 +63,35 @@
│ │ │ │ │ │ "\u001b[0;31mNameResolutionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:787\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 786\u001b[0m \u001b[38;5;66;03m# Make the request on the HTTPConnection object\u001b[39;00m\n\u001b[0;32m--> 787\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_make_request\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 788\u001b[0m \u001b[43m \u001b[49m\u001b[43mconn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 789\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 790\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 791\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout_obj\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 792\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 793\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 794\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 795\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mretries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 796\u001b[0m \u001b[43m \u001b[49m\u001b[43mresponse_conn\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mresponse_conn\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 797\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mpreload_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 798\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdecode_content\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 799\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mresponse_kw\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 800\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 802\u001b[0m \u001b[38;5;66;03m# Everything went great!\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:488\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 487\u001b[0m new_e \u001b[38;5;241m=\u001b[39m _wrap_proxy_error(new_e, conn\u001b[38;5;241m.\u001b[39mproxy\u001b[38;5;241m.\u001b[39mscheme)\n\u001b[0;32m--> 488\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m new_e\n\u001b[1;32m 490\u001b[0m \u001b[38;5;66;03m# conn.request() calls http.client.*.request, not the method in\u001b[39;00m\n\u001b[1;32m 491\u001b[0m \u001b[38;5;66;03m# urllib3.request. It also calls makefile (recv) on the socket.\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:464\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[1;32m 463\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 464\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_validate_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43mconn\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 465\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (SocketTimeout, BaseSSLError) \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1093\u001b[0m, in \u001b[0;36mHTTPSConnectionPool._validate_conn\u001b[0;34m(self, conn)\u001b[0m\n\u001b[1;32m 1092\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m conn\u001b[38;5;241m.\u001b[39mis_closed:\n\u001b[0;32m-> 1093\u001b[0m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mconnect\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 1095\u001b[0m \u001b[38;5;66;03m# TODO revise this, see https://github.com/urllib3/urllib3/issues/2791\u001b[39;00m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:704\u001b[0m, in \u001b[0;36mHTTPSConnection.connect\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 703\u001b[0m sock: socket\u001b[38;5;241m.\u001b[39msocket \u001b[38;5;241m|\u001b[39m ssl\u001b[38;5;241m.\u001b[39mSSLSocket\n\u001b[0;32m--> 704\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock \u001b[38;5;241m=\u001b[39m sock \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_new_conn\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m server_hostname: \u001b[38;5;28mstr\u001b[39m \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connection.py:205\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 204\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[0;32m--> 205\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m NameResolutionError(\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mhost, \u001b[38;5;28mself\u001b[39m, e) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01me\u001b[39;00m\n\u001b[1;32m 206\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m SocketTimeout \u001b[38;5;28;01mas\u001b[39;00m e:\n",
│ │ │ │ │ │ - "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ + "\u001b[0;31mNameResolutionError\u001b[0m: : Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)",
│ │ │ │ │ │ "\nThe above exception was the direct cause of the following exception:\n",
│ │ │ │ │ │ "\u001b[0;31mMaxRetryError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:667\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 666\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 667\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[43mconn\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43murlopen\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 668\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 669\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 670\u001b[0m \u001b[43m \u001b[49m\u001b[43mbody\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mbody\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 671\u001b[0m \u001b[43m \u001b[49m\u001b[43mheaders\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mheaders\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 672\u001b[0m \u001b[43m \u001b[49m\u001b[43mredirect\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 673\u001b[0m \u001b[43m \u001b[49m\u001b[43massert_same_host\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 674\u001b[0m \u001b[43m \u001b[49m\u001b[43mpreload_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 675\u001b[0m \u001b[43m \u001b[49m\u001b[43mdecode_content\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 676\u001b[0m \u001b[43m \u001b[49m\u001b[43mretries\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmax_retries\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 677\u001b[0m \u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 678\u001b[0m \u001b[43m \u001b[49m\u001b[43mchunked\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mchunked\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 679\u001b[0m \u001b[43m \u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 681\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (ProtocolError, \u001b[38;5;167;01mOSError\u001b[39;00m) \u001b[38;5;28;01mas\u001b[39;00m err:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/connectionpool.py:841\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[1;32m 839\u001b[0m new_e \u001b[38;5;241m=\u001b[39m ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m, new_e)\n\u001b[0;32m--> 841\u001b[0m retries \u001b[38;5;241m=\u001b[39m \u001b[43mretries\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mincrement\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 842\u001b[0m \u001b[43m \u001b[49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43merror\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mnew_e\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_pool\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43mself\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m_stacktrace\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msys\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mexc_info\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;241;43m2\u001b[39;49m\u001b[43m]\u001b[49m\n\u001b[1;32m 843\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 844\u001b[0m retries\u001b[38;5;241m.\u001b[39msleep()\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/urllib3/util/retry.py:519\u001b[0m, in \u001b[0;36mRetry.increment\u001b[0;34m(self, method, url, response, error, _pool, _stacktrace)\u001b[0m\n\u001b[1;32m 518\u001b[0m reason \u001b[38;5;241m=\u001b[39m error \u001b[38;5;129;01mor\u001b[39;00m ResponseError(cause)\n\u001b[0;32m--> 519\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m MaxRetryError(_pool, url, reason) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mreason\u001b[39;00m \u001b[38;5;66;03m# type: ignore[arg-type]\u001b[39;00m\n\u001b[1;32m 521\u001b[0m log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented Retry for (url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m): \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m, url, new_retry)\n",
│ │ │ │ │ │ - "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ + "\u001b[0;31mMaxRetryError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))",
│ │ │ │ │ │ "\nDuring handling of the above exception, another exception occurred:\n",
│ │ │ │ │ │ "\u001b[0;31mConnectionError\u001b[0m Traceback (most recent call last)",
│ │ │ │ │ │ "Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m ds \u001b[38;5;241m=\u001b[39m \u001b[43mxr\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mtutorial\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mload_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mair_temperature\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:215\u001b[0m, in \u001b[0;36mload_dataset\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m 178\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mload_dataset\u001b[39m(\u001b[38;5;241m*\u001b[39margs, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m Dataset:\n\u001b[1;32m 179\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m 180\u001b[0m \u001b[38;5;124;03m Open, load into memory, and close a dataset from the online repository\u001b[39;00m\n\u001b[1;32m 181\u001b[0m \u001b[38;5;124;03m (requires internet).\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 213\u001b[0m \u001b[38;5;124;03m load_dataset\u001b[39;00m\n\u001b[1;32m 214\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m--> 215\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m \u001b[43mopen_dataset\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m \u001b[38;5;28;01mas\u001b[39;00m ds:\n\u001b[1;32m 216\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m ds\u001b[38;5;241m.\u001b[39mload()\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/xarray/tutorial.py:167\u001b[0m, in \u001b[0;36mopen_dataset\u001b[0;34m(name, cache, cache_dir, engine, **kws)\u001b[0m\n\u001b[1;32m 164\u001b[0m downloader \u001b[38;5;241m=\u001b[39m pooch\u001b[38;5;241m.\u001b[39mHTTPDownloader(headers\u001b[38;5;241m=\u001b[39mheaders)\n\u001b[1;32m 166\u001b[0m \u001b[38;5;66;03m# retrieve the file\u001b[39;00m\n\u001b[0;32m--> 167\u001b[0m filepath \u001b[38;5;241m=\u001b[39m \u001b[43mpooch\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mretrieve\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 168\u001b[0m \u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpath\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mcache_dir\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mdownloader\u001b[49m\n\u001b[1;32m 169\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 170\u001b[0m ds \u001b[38;5;241m=\u001b[39m _open_dataset(filepath, engine\u001b[38;5;241m=\u001b[39mengine, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkws)\n\u001b[1;32m 171\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m cache:\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:239\u001b[0m, in \u001b[0;36mretrieve\u001b[0;34m(url, known_hash, fname, path, processor, downloader, progressbar)\u001b[0m\n\u001b[1;32m 236\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m downloader \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 237\u001b[0m downloader \u001b[38;5;241m=\u001b[39m choose_downloader(url, progressbar\u001b[38;5;241m=\u001b[39mprogressbar)\n\u001b[0;32m--> 239\u001b[0m \u001b[43mstream_download\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mfull_path\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mknown_hash\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdownloader\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m)\u001b[49m\n\u001b[1;32m 241\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m known_hash \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m 242\u001b[0m get_logger()\u001b[38;5;241m.\u001b[39minfo(\n\u001b[1;32m 243\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mSHA256 hash of downloaded file: \u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 244\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUse this value as the \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mknown_hash\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m argument of \u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mpooch.retrieve\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 247\u001b[0m file_hash(\u001b[38;5;28mstr\u001b[39m(full_path)),\n\u001b[1;32m 248\u001b[0m )\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/core.py:807\u001b[0m, in \u001b[0;36mstream_download\u001b[0;34m(url, fname, known_hash, downloader, pooch, retry_if_failed)\u001b[0m\n\u001b[1;32m 803\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m 804\u001b[0m \u001b[38;5;66;03m# Stream the file to a temporary so that we can safely check its\u001b[39;00m\n\u001b[1;32m 805\u001b[0m \u001b[38;5;66;03m# hash before overwriting the original.\u001b[39;00m\n\u001b[1;32m 806\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m temporary_file(path\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mparent)) \u001b[38;5;28;01mas\u001b[39;00m tmp:\n\u001b[0;32m--> 807\u001b[0m \u001b[43mdownloader\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtmp\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mpooch\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 808\u001b[0m hash_matches(tmp, known_hash, strict\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mTrue\u001b[39;00m, source\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mstr\u001b[39m(fname\u001b[38;5;241m.\u001b[39mname))\n\u001b[1;32m 809\u001b[0m shutil\u001b[38;5;241m.\u001b[39mmove(tmp, \u001b[38;5;28mstr\u001b[39m(fname))\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/pooch/downloaders.py:220\u001b[0m, in \u001b[0;36mHTTPDownloader.__call__\u001b[0;34m(self, url, output_file, pooch, check_only)\u001b[0m\n\u001b[1;32m 218\u001b[0m \u001b[38;5;66;03m# pylint: enable=consider-using-with\u001b[39;00m\n\u001b[1;32m 219\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[0;32m--> 220\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[43mrequests\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtimeout\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mtimeout\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 221\u001b[0m response\u001b[38;5;241m.\u001b[39mraise_for_status()\n\u001b[1;32m 222\u001b[0m content \u001b[38;5;241m=\u001b[39m response\u001b[38;5;241m.\u001b[39miter_content(chunk_size\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mchunk_size)\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:73\u001b[0m, in \u001b[0;36mget\u001b[0;34m(url, params, **kwargs)\u001b[0m\n\u001b[1;32m 62\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mget\u001b[39m(url, params\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m 63\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends a GET request.\u001b[39;00m\n\u001b[1;32m 64\u001b[0m \n\u001b[1;32m 65\u001b[0m \u001b[38;5;124;03m :param url: URL for the new :class:`Request` object.\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 70\u001b[0m \u001b[38;5;124;03m :rtype: requests.Response\u001b[39;00m\n\u001b[1;32m 71\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m---> 73\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mget\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mparams\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mparams\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/api.py:59\u001b[0m, in \u001b[0;36mrequest\u001b[0;34m(method, url, **kwargs)\u001b[0m\n\u001b[1;32m 55\u001b[0m \u001b[38;5;66;03m# By using the 'with' statement we are sure the session is closed, thus we\u001b[39;00m\n\u001b[1;32m 56\u001b[0m \u001b[38;5;66;03m# avoid leaving sockets open which can trigger a ResourceWarning in some\u001b[39;00m\n\u001b[1;32m 57\u001b[0m \u001b[38;5;66;03m# cases, and look like a memory leak in others.\u001b[39;00m\n\u001b[1;32m 58\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m sessions\u001b[38;5;241m.\u001b[39mSession() \u001b[38;5;28;01mas\u001b[39;00m session:\n\u001b[0;32m---> 59\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43msession\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mrequest\u001b[49m\u001b[43m(\u001b[49m\u001b[43mmethod\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mmethod\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43murl\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43murl\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:589\u001b[0m, in \u001b[0;36mSession.request\u001b[0;34m(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\u001b[0m\n\u001b[1;32m 584\u001b[0m send_kwargs \u001b[38;5;241m=\u001b[39m {\n\u001b[1;32m 585\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m: timeout,\n\u001b[1;32m 586\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m: allow_redirects,\n\u001b[1;32m 587\u001b[0m }\n\u001b[1;32m 588\u001b[0m send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[0;32m--> 589\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprep\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43msend_kwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 591\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/sessions.py:703\u001b[0m, in \u001b[0;36mSession.send\u001b[0;34m(self, request, **kwargs)\u001b[0m\n\u001b[1;32m 700\u001b[0m start \u001b[38;5;241m=\u001b[39m preferred_clock()\n\u001b[1;32m 702\u001b[0m \u001b[38;5;66;03m# Send the request\u001b[39;00m\n\u001b[0;32m--> 703\u001b[0m r \u001b[38;5;241m=\u001b[39m \u001b[43madapter\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43msend\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrequest\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 705\u001b[0m \u001b[38;5;66;03m# Total elapsed time of the request (approximately)\u001b[39;00m\n\u001b[1;32m 706\u001b[0m elapsed \u001b[38;5;241m=\u001b[39m preferred_clock() \u001b[38;5;241m-\u001b[39m start\n",
│ │ │ │ │ │ "File \u001b[0;32m/usr/lib/python3/dist-packages/requests/adapters.py:700\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[0;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[1;32m 696\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason, _SSLError):\n\u001b[1;32m 697\u001b[0m \u001b[38;5;66;03m# This branch is for urllib3 v1.22 and later.\u001b[39;00m\n\u001b[1;32m 698\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m SSLError(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m--> 700\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m 702\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m ClosedPoolError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m 703\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n",
│ │ │ │ │ │ - "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ + "\u001b[0;31mConnectionError\u001b[0m: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError(\": Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)\"))"
│ │ │ │ │ │ ]
│ │ │ │ │ │ }
│ │ │ │ │ │ ],
│ │ │ │ │ │ "source": [
│ │ │ │ │ │ "ds = xr.tutorial.load_dataset(\"air_temperature\")"
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ @@ -110,18 +110,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 3,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:13.675972Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:13.675703Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:13.704997Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:13.704042Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:46.759949Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:46.759680Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:46.792965Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:46.790507Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -163,18 +163,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 4,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:13.708471Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:13.708202Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:13.727330Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:13.726641Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:46.795967Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:46.795694Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:46.820622Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:46.819985Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -227,18 +227,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 5,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:13.730732Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:13.730466Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:13.747530Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:13.746787Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:46.823382Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:46.823155Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:46.849296Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:46.848640Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ │ │ │ @@ -283,18 +283,18 @@
│ │ │ │ │ │ ]
│ │ │ │ │ │ },
│ │ │ │ │ │ {
│ │ │ │ │ │ "cell_type": "code",
│ │ │ │ │ │ "execution_count": 6,
│ │ │ │ │ │ "metadata": {
│ │ │ │ │ │ "execution": {
│ │ │ │ │ │ - "iopub.execute_input": "2025-05-05T19:30:13.750937Z",
│ │ │ │ │ │ - "iopub.status.busy": "2025-05-05T19:30:13.750673Z",
│ │ │ │ │ │ - "iopub.status.idle": "2025-05-05T19:30:13.768383Z",
│ │ │ │ │ │ - "shell.execute_reply": "2025-05-05T19:30:13.767542Z"
│ │ │ │ │ │ + "iopub.execute_input": "2026-06-08T02:16:46.852233Z",
│ │ │ │ │ │ + "iopub.status.busy": "2026-06-08T02:16:46.851980Z",
│ │ │ │ │ │ + "iopub.status.idle": "2026-06-08T02:16:46.870458Z",
│ │ │ │ │ │ + "shell.execute_reply": "2026-06-08T02:16:46.869883Z"
│ │ │ │ │ │ }
│ │ │ │ │ │ },
│ │ │ │ │ │ "outputs": [
│ │ │ │ │ │ {
│ │ │ │ │ │ "ename": "NameError",
│ │ │ │ │ │ "evalue": "name 'ds' is not defined",
│ │ │ │ │ │ "output_type": "error",
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/examples/weather-data.html
│ │ │ │ @@ -470,37 +470,37 @@
│ │ │ │ <xarray.Dataset> Size: 41kB
│ │ │ │ Dimensions: (time: 731, location: 3)
│ │ │ │ Coordinates:
│ │ │ │ * time (time) datetime64[ns] 6kB 2000-01-01 2000-01-02 ... 2001-12-31
│ │ │ │ * location (location) <U2 24B 'IA' 'IN' 'IL'
│ │ │ │ Data variables:
│ │ │ │ tmin (time, location) float64 18kB -8.037 -1.788 ... -1.346 -4.544
│ │ │ │ - tmax (time, location) float64 18kB 12.98 3.31 6.779 ... 3.343 3.805 PandasIndex
PandasIndex(Index(['IA', 'IN', 'IL'], dtype='object', name='location')) Attributes: (0)
│ │ │ │
│ │ │ │
│ │ │ │ Examine a dataset with pandas and seaborn
│ │ │ │
│ │ │ │ Convert to a pandas DataFrame
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Plotting
│ │ │ │ Visualizing your datasets is quick and convenient:
│ │ │ │ In [37]: data . plot ()
│ │ │ │ -Out[37]: <matplotlib.collections.QuadMesh at 0xffff48f16660>
│ │ │ │ +Out[37]: <matplotlib.collections.QuadMesh at 0xffff6981e900>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ 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 Plotting .
│ │ │ │
│ │ │ │
│ │ │ │ pandas
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -253,15 +253,15 @@
│ │ │ │ │ [0.37342613, 1.49497537, 1.33584385]])
│ │ │ │ │ Coordinates:
│ │ │ │ │ * x (x) int64 16B 10 20
│ │ │ │ │ Dimensions without coordinates: y
│ │ │ │ │ ********** PPlloottttiinngg_?¶ **********
│ │ │ │ │ Visualizing your datasets is quick and convenient:
│ │ │ │ │ In [37]: data.plot()
│ │ │ │ │ -Out[37]:
│ │ │ │ │ +Out[37]:
│ │ │ │ │ [../_images/plotting_quick_overview.png]
│ │ │ │ │ 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
│ │ │ │ │ _P_l_o_t_t_i_n_g.
│ │ │ │ │ ********** ppaannddaass_?¶ **********
│ │ │ │ │ Xarray objects can be easily converted to and from pandas objects using the
│ │ │ │ │ to_series(), to_dataframe() and _t_o___x_a_r_r_a_y_(_) methods:
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/internals/internal-design.html
│ │ │ │ @@ -225,15 +225,15 @@
│ │ │ │ 705 server_hostname : str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket . gaierror as e :
│ │ │ │ --> 205 raise NameResolutionError ( self . host , self , e ) from e
│ │ │ │ 206 except SocketTimeout as e :
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff237fb890>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff60a4b750>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception :
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -259,15 +259,15 @@
│ │ │ │ 844 retries . sleep ()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519, in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError ( cause )
│ │ │ │ --> 519 raise MaxRetryError ( _pool , url , reason ) from reason # type: ignore[arg-type]
│ │ │ │ 521 log . debug ( "Incremented Retry for (url=' %s '): %r " , url , new_retry )
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff237fb890>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff60a4b750>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception , another exception occurred :
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In [ 1 ], line 1
│ │ │ │ ----> 1 da = xr . tutorial . open_dataset ( "air_temperature" )[ "air" ]
│ │ │ │
│ │ │ │ @@ -345,15 +345,15 @@
│ │ │ │ 696 if isinstance ( e . reason , _SSLError ):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError ( e , request = request )
│ │ │ │ --> 700 raise ConnectionError ( e , request = request )
│ │ │ │ 702 except ClosedPoolError as e :
│ │ │ │ 703 raise ConnectionError ( e , request = request )
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff237fb890>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff60a4b750>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ In [2]: var = da . variable
│ │ │ │ ---------------------------------------------------------------------------
│ │ │ │ AttributeError Traceback (most recent call last)
│ │ │ │ Cell In [ 2 ], line 1
│ │ │ │ ----> 1 var = da . variable
│ │ │ │
│ │ │ │ @@ -462,15 +462,15 @@
│ │ │ │ 705 server_hostname : str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket . gaierror as e :
│ │ │ │ --> 205 raise NameResolutionError ( self . host , self , e ) from e
│ │ │ │ 206 except SocketTimeout as e :
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff22a9e850>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff5fd22710>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception :
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -496,15 +496,15 @@
│ │ │ │ 844 retries . sleep ()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519, in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError ( cause )
│ │ │ │ --> 519 raise MaxRetryError ( _pool , url , reason ) from reason # type: ignore[arg-type]
│ │ │ │ 521 log . debug ( "Incremented Retry for (url=' %s '): %r " , url , new_retry )
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff22a9e850>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5fd22710>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception , another exception occurred :
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In [ 7 ], line 1
│ │ │ │ ----> 1 da = xr . tutorial . open_dataset ( "air_temperature" )[ "air" ]
│ │ │ │
│ │ │ │ @@ -582,15 +582,15 @@
│ │ │ │ 696 if isinstance ( e . reason , _SSLError ):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError ( e , request = request )
│ │ │ │ --> 700 raise ConnectionError ( e , request = request )
│ │ │ │ 702 except ClosedPoolError as e :
│ │ │ │ 703 raise ConnectionError ( e , request = request )
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff22a9e850>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5fd22710>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ In [8]: var = da . variable
│ │ │ │ ---------------------------------------------------------------------------
│ │ │ │ AttributeError Traceback (most recent call last)
│ │ │ │ Cell In [ 8 ], line 1
│ │ │ │ ----> 1 var = da . variable
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -185,15 +185,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff60a4b750>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -229,15 +229,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff60a4b750>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[1], line 1
│ │ │ │ │ ----> 1 da = xr.tutorial.open_dataset("air_temperature")["air"]
│ │ │ │ │ @@ -333,15 +333,15 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff60a4b750>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ In [2]: var = da.variable
│ │ │ │ │ ---------------------------------------------------------------------------
│ │ │ │ │ AttributeError Traceback (most recent call last)
│ │ │ │ │ Cell In[2], line 1
│ │ │ │ │ ----> 1 var = da.variable
│ │ │ │ │ @@ -460,15 +460,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5fd22710>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -504,15 +504,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5fd22710>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[7], line 1
│ │ │ │ │ ----> 1 da = xr.tutorial.open_dataset("air_temperature")["air"]
│ │ │ │ │ @@ -608,15 +608,15 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5fd22710>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ In [8]: var = da.variable
│ │ │ │ │ ---------------------------------------------------------------------------
│ │ │ │ │ AttributeError Traceback (most recent call last)
│ │ │ │ │ Cell In[8], line 1
│ │ │ │ │ ----> 1 var = da.variable
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/internals/zarr-encoding-spec.html
│ │ │ │ @@ -167,15 +167,15 @@
│ │ │ │ 705 server_hostname : str = self . host
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in HTTPConnection._new_conn (self)
│ │ │ │ 204 except socket . gaierror as e :
│ │ │ │ --> 205 raise NameResolutionError ( self . host , self , e ) from e
│ │ │ │ 206 except SocketTimeout as e :
│ │ │ │
│ │ │ │ -NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff21e45a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │ +NameResolutionError : <urllib3.connection.HTTPSConnection object at 0xffff5ee09a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)
│ │ │ │
│ │ │ │ The above exception was the direct cause of the following exception :
│ │ │ │
│ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in HTTPAdapter.send (self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ 666 try :
│ │ │ │ --> 667 resp = conn . urlopen (
│ │ │ │ @@ -201,15 +201,15 @@
│ │ │ │ 844 retries . sleep ()
│ │ │ │
│ │ │ │ File /usr/lib/python3/dist-packages/urllib3/util/retry.py:519, in Retry.increment (self, method, url, response, error, _pool, _stacktrace)
│ │ │ │ 518 reason = error or ResponseError ( cause )
│ │ │ │ --> 519 raise MaxRetryError ( _pool , url , reason ) from reason # type: ignore[arg-type]
│ │ │ │ 521 log . debug ( "Incremented Retry for (url=' %s '): %r " , url , new_retry )
│ │ │ │
│ │ │ │ -MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff21e45a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +MaxRetryError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5ee09a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ During handling of the above exception , another exception occurred :
│ │ │ │
│ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ Cell In [ 4 ], line 1
│ │ │ │ ----> 1 ds = xr . tutorial . load_dataset ( "rasm" )
│ │ │ │
│ │ │ │ @@ -298,18 +298,18 @@
│ │ │ │ 696 if isinstance ( e . reason , _SSLError ):
│ │ │ │ 697 # This branch is for urllib3 v1.22 and later.
│ │ │ │ 698 raise SSLError ( e , request = request )
│ │ │ │ --> 700 raise ConnectionError ( e , request = request )
│ │ │ │ 702 except ClosedPoolError as e :
│ │ │ │ 703 raise ConnectionError ( e , request = request )
│ │ │ │
│ │ │ │ -ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff21e45a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError : HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5ee09a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │ In [5]: ds . to_zarr ( "rasm.zarr" , mode = "w" )
│ │ │ │ -Out[5]: <xarray.backends.zarr.ZarrStore at 0xffff21dca320>
│ │ │ │ +Out[5]: <xarray.backends.zarr.ZarrStore at 0xffff5f2cab90>
│ │ │ │
│ │ │ │ In [6]: zgroup = zarr . open ( "rasm.zarr" )
│ │ │ │
│ │ │ │ In [7]: print ( os . listdir ( "rasm.zarr" ))
│ │ │ │ ['time', 'zarr.json']
│ │ │ │
│ │ │ │ In [8]: print ( zgroup . tree ())
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -124,15 +124,15 @@
│ │ │ │ │ File /usr/lib/python3/dist-packages/urllib3/connection.py:205, in
│ │ │ │ │ HTTPConnection._new_conn(self)
│ │ │ │ │ 204 except socket.gaierror as e:
│ │ │ │ │ --> 205 raise NameResolutionError(self.host, self, e) from e
│ │ │ │ │ 206 except SocketTimeout as e:
│ │ │ │ │
│ │ │ │ │ NameResolutionError: : Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5ee09a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)
│ │ │ │ │
│ │ │ │ │ The above exception was the direct cause of the following exception:
│ │ │ │ │
│ │ │ │ │ MaxRetryError Traceback (most recent call last)
│ │ │ │ │ File /usr/lib/python3/dist-packages/requests/adapters.py:667, in
│ │ │ │ │ HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
│ │ │ │ │ @@ -168,15 +168,15 @@
│ │ │ │ │ --> 519 raise MaxRetryError(_pool, url, reason) from reason # type: ignore
│ │ │ │ │ [arg-type]
│ │ │ │ │ 521 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
│ │ │ │ │
│ │ │ │ │ MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5ee09a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ During handling of the above exception, another exception occurred:
│ │ │ │ │
│ │ │ │ │ ConnectionError Traceback (most recent call last)
│ │ │ │ │ Cell In[4], line 1
│ │ │ │ │ ----> 1 ds = xr.tutorial.load_dataset("rasm")
│ │ │ │ │ @@ -285,19 +285,19 @@
│ │ │ │ │ --> 700 raise ConnectionError(e, request=request)
│ │ │ │ │ 702 except ClosedPoolError as e:
│ │ │ │ │ 703 raise ConnectionError(e, request=request)
│ │ │ │ │
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5ee09a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │ In [5]: ds.to_zarr("rasm.zarr", mode="w")
│ │ │ │ │ -Out[5]:
│ │ │ │ │ +Out[5]:
│ │ │ │ │
│ │ │ │ │ In [6]: zgroup = zarr.open("rasm.zarr")
│ │ │ │ │
│ │ │ │ │ In [7]: print(os.listdir("rasm.zarr"))
│ │ │ │ │ ['time', 'zarr.json']
│ │ │ │ │
│ │ │ │ │ In [8]: print(zgroup.tree())
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/searchindex.js
│ │ │ │ ├── js-beautify {}
│ │ │ │ │ @@ -2420,15 +2420,15 @@
│ │ │ │ │ "4": "py:attribute",
│ │ │ │ │ "5": "py:function"
│ │ │ │ │ },
│ │ │ │ │ "terms": {
│ │ │ │ │ "": [1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17, 19, 20, 21, 23, 24, 25, 26, 27, 28, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "0": [3, 6, 7, 8, 9, 11, 12, 13, 14, 16, 18, 19, 20, 22, 24, 25, 26, 27, 28, 30, 32, 34, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "00": [14, 32, 37, 38, 39, 46, 48, 52, 53, 54, 55],
│ │ │ │ │ - "000": [32, 52],
│ │ │ │ │ + "000": 32,
│ │ │ │ │ "0000": 32,
│ │ │ │ │ "000000": [14, 16, 32],
│ │ │ │ │ "000000000": [14, 38, 39, 53],
│ │ │ │ │ "000001": 32,
│ │ │ │ │ "000001901": 32,
│ │ │ │ │ "0001": [32, 54, 55],
│ │ │ │ │ "00010101": 54,
│ │ │ │ │ @@ -2438,33 +2438,32 @@
│ │ │ │ │ "00021001": 54,
│ │ │ │ │ "00021101": 54,
│ │ │ │ │ "00021201": 54,
│ │ │ │ │ "000e": [49, 52],
│ │ │ │ │ "001": 32,
│ │ │ │ │ "001901901": 32,
│ │ │ │ │ "001e": 38,
│ │ │ │ │ + "003": 37,
│ │ │ │ │ "003000": 32,
│ │ │ │ │ - "005": 52,
│ │ │ │ │ + "004": 37,
│ │ │ │ │ "005036": 41,
│ │ │ │ │ "005e": 38,
│ │ │ │ │ "00688889": 37,
│ │ │ │ │ "006e": 38,
│ │ │ │ │ - "007": 52,
│ │ │ │ │ - "007e": 52,
│ │ │ │ │ + "007": 37,
│ │ │ │ │ + "008": 37,
│ │ │ │ │ "00914929": 37,
│ │ │ │ │ "00941742": 37,
│ │ │ │ │ "00968205": 37,
│ │ │ │ │ "00973567": 37,
│ │ │ │ │ - "00j": 52,
│ │ │ │ │ - "01": [14, 16, 20, 32, 38, 39, 42, 44, 45, 46, 48, 49, 53, 54],
│ │ │ │ │ + "00e": 52,
│ │ │ │ │ + "01": [14, 16, 20, 32, 38, 39, 42, 44, 45, 46, 48, 49, 52, 53, 54],
│ │ │ │ │ "010569": 14,
│ │ │ │ │ "01082401": 37,
│ │ │ │ │ "01183847": 37,
│ │ │ │ │ - "015": 52,
│ │ │ │ │ - "016": 52,
│ │ │ │ │ "01612903": 14,
│ │ │ │ │ "01636376": 37,
│ │ │ │ │ "01652688": 37,
│ │ │ │ │ "01652764": 37,
│ │ │ │ │ "0165891": 37,
│ │ │ │ │ "01670071": 37,
│ │ │ │ │ "01670121": 37,
│ │ │ │ │ @@ -2475,23 +2474,22 @@
│ │ │ │ │ "01806694": 37,
│ │ │ │ │ "01814439": 37,
│ │ │ │ │ "0182217": 37,
│ │ │ │ │ "018e": 38,
│ │ │ │ │ "019": 41,
│ │ │ │ │ "01906": 49,
│ │ │ │ │ "019e": 38,
│ │ │ │ │ - "01j": 52,
│ │ │ │ │ "01t00": [14, 32, 38, 39, 53, 55],
│ │ │ │ │ "01t01": 32,
│ │ │ │ │ "01t03": [32, 53],
│ │ │ │ │ "01t04": 32,
│ │ │ │ │ "01t06": 32,
│ │ │ │ │ "01t12": [32, 53],
│ │ │ │ │ "01t18": 32,
│ │ │ │ │ - "02": [11, 14, 32, 37, 38, 39, 42, 44, 45, 46, 49, 53, 54],
│ │ │ │ │ + "02": [11, 14, 32, 37, 38, 39, 42, 44, 45, 46, 49, 52, 53, 54],
│ │ │ │ │ "020e": 38,
│ │ │ │ │ "021e": [38, 46],
│ │ │ │ │ "023e": 38,
│ │ │ │ │ "024e": [38, 46],
│ │ │ │ │ "026e": 38,
│ │ │ │ │ "02756784": 19,
│ │ │ │ │ "029e": 49,
│ │ │ │ │ @@ -2534,51 +2532,51 @@
│ │ │ │ │ "046e": 37,
│ │ │ │ │ "04703446": 37,
│ │ │ │ │ "047e": [38, 49],
│ │ │ │ │ "04835611": 37,
│ │ │ │ │ "04862391": 37,
│ │ │ │ │ "048e": 38,
│ │ │ │ │ "04t00": [38, 39],
│ │ │ │ │ - "05": [14, 32, 37, 39, 46, 49, 53, 54],
│ │ │ │ │ + "05": [14, 32, 37, 39, 46, 49, 52, 53, 54],
│ │ │ │ │ "05405954": 37,
│ │ │ │ │ "05556": 45,
│ │ │ │ │ "056": 45,
│ │ │ │ │ "057e": 38,
│ │ │ │ │ "058e": 38,
│ │ │ │ │ "05912615": 37,
│ │ │ │ │ + "05j": 52,
│ │ │ │ │ "05t00": 38,
│ │ │ │ │ "06": [14, 28, 32, 37, 39, 46, 53],
│ │ │ │ │ "060403": 14,
│ │ │ │ │ "061": 44,
│ │ │ │ │ "06141": 42,
│ │ │ │ │ "06187252": 14,
│ │ │ │ │ "062": 42,
│ │ │ │ │ "063": [14, 39],
│ │ │ │ │ "06327582": 14,
│ │ │ │ │ - "066": 37,
│ │ │ │ │ "06683875": 37,
│ │ │ │ │ "06683951": 37,
│ │ │ │ │ "06683976": 37,
│ │ │ │ │ "06689": 37,
│ │ │ │ │ "066e": [38, 49],
│ │ │ │ │ "06732": 42,
│ │ │ │ │ "067e": 49,
│ │ │ │ │ "069": 45,
│ │ │ │ │ "06957": 41,
│ │ │ │ │ "06t00": 38,
│ │ │ │ │ - "07": [14, 32, 39, 53, 54],
│ │ │ │ │ + "07": [14, 32, 39, 52, 53, 54],
│ │ │ │ │ "070e": 38,
│ │ │ │ │ "07180381": 19,
│ │ │ │ │ "071804": 48,
│ │ │ │ │ "072": 48,
│ │ │ │ │ "072e": 49,
│ │ │ │ │ "074e": 38,
│ │ │ │ │ "078": 42,
│ │ │ │ │ "07t00": 38,
│ │ │ │ │ - "08": [14, 32, 39, 53],
│ │ │ │ │ + "08": [14, 32, 39, 52, 53],
│ │ │ │ │ "08002": 41,
│ │ │ │ │ "08172729": 37,
│ │ │ │ │ "08203696": 37,
│ │ │ │ │ "08285275": 37,
│ │ │ │ │ "08299933": 37,
│ │ │ │ │ "08305695": 37,
│ │ │ │ │ "08341016": 37,
│ │ │ │ │ @@ -2609,94 +2607,97 @@
│ │ │ │ │ "099": 42,
│ │ │ │ │ "09t00": 38,
│ │ │ │ │ "0alpha10": 55,
│ │ │ │ │ "0d": 55,
│ │ │ │ │ "0dev": 55,
│ │ │ │ │ "0th": [38, 44],
│ │ │ │ │ "0x0l": 55,
│ │ │ │ │ - "0xffff1f9a4050": 49,
│ │ │ │ │ - "0xffff1f9e5450": 44,
│ │ │ │ │ - "0xffff1f9e5a90": 44,
│ │ │ │ │ - "0xffff1f9e6990": [42, 44],
│ │ │ │ │ - "0xffff1fa441a0": 49,
│ │ │ │ │ - "0xffff1fe3dbd0": 46,
│ │ │ │ │ - "0xffff1fe3eef0": 46,
│ │ │ │ │ - "0xffff1fe3f010": 46,
│ │ │ │ │ - "0xffff1fee0050": 49,
│ │ │ │ │ - "0xffff1fee0590": 49,
│ │ │ │ │ - "0xffff1fee3b60": 49,
│ │ │ │ │ - "0xffff1fef00d0": 46,
│ │ │ │ │ - "0xffff1fef0160": 46,
│ │ │ │ │ - "0xffff1fef0550": 46,
│ │ │ │ │ - "0xffff1ff57610": [46, 49],
│ │ │ │ │ - "0xffff20218e50": 46,
│ │ │ │ │ - "0xffff20f16fd0": [39, 45],
│ │ │ │ │ - "0xffff20f17250": 39,
│ │ │ │ │ - "0xffff21dca320": 33,
│ │ │ │ │ - "0xffff21e45a90": 33,
│ │ │ │ │ - "0xffff21e51d30": 49,
│ │ │ │ │ - "0xffff22a9e850": 30,
│ │ │ │ │ - "0xffff237fb890": 30,
│ │ │ │ │ - "0xffff33ef8ad0": 9,
│ │ │ │ │ - "0xffff34ba8980": 13,
│ │ │ │ │ - "0xffff48ea7890": 49,
│ │ │ │ │ - "0xffff48f16660": 19,
│ │ │ │ │ - "0xffff48f17380": 45,
│ │ │ │ │ - "0xffff48f68910": 49,
│ │ │ │ │ - "0xffff48f9c7d0": 49,
│ │ │ │ │ - "0xffff56ad8980": 12,
│ │ │ │ │ - "0xffff5a353ed0": 49,
│ │ │ │ │ - "0xffff5a4616d0": 45,
│ │ │ │ │ - "0xffff5a461a90": 45,
│ │ │ │ │ - "0xffff5a461e50": 45,
│ │ │ │ │ - "0xffff5f608050": 6,
│ │ │ │ │ - "0xffff5fa99b20": 6,
│ │ │ │ │ - "0xffff62926660": 10,
│ │ │ │ │ - "0xffff6445c050": 7,
│ │ │ │ │ - "0xffff675ea660": 8,
│ │ │ │ │ - "0xffff67c6d450": 50,
│ │ │ │ │ - "0xffff67c6df90": 49,
│ │ │ │ │ - "0xffff67c6e0d0": 49,
│ │ │ │ │ - "0xffff67c6e210": 49,
│ │ │ │ │ - "0xffff67c6e5d0": 49,
│ │ │ │ │ - "0xffff67c9f250": 49,
│ │ │ │ │ - "0xffff67f99a90": 49,
│ │ │ │ │ - "0xffff67f99bd0": 49,
│ │ │ │ │ - "0xffff67f99d10": 49,
│ │ │ │ │ - "0xffff67f99e50": 49,
│ │ │ │ │ - "0xffff68009310": 49,
│ │ │ │ │ - "0xffff680dac10": 49,
│ │ │ │ │ - "0xffff6813ca50": 49,
│ │ │ │ │ - "0xffff6850f4d0": 49,
│ │ │ │ │ - "0xffff68629590": 49,
│ │ │ │ │ - "0xffff68711950": 55,
│ │ │ │ │ - "0xffff68712850": 49,
│ │ │ │ │ - "0xffff68712990": 49,
│ │ │ │ │ - "0xffff68712ad0": 49,
│ │ │ │ │ - "0xffff68712e90": 49,
│ │ │ │ │ - "0xffff687134d0": 49,
│ │ │ │ │ - "0xffff68947390": 49,
│ │ │ │ │ - "0xffff68947b10": 49,
│ │ │ │ │ - "0xffff68947c50": 49,
│ │ │ │ │ - "0xffff689bcf50": 49,
│ │ │ │ │ - "0xffff68a11be0": 11,
│ │ │ │ │ - "0xffff68b2cb90": 49,
│ │ │ │ │ - "0xffff68bbd450": 49,
│ │ │ │ │ - "0xffff68e8ecf0": 14,
│ │ │ │ │ - "0xffff6926e5d0": 49,
│ │ │ │ │ - "0xffff6936f890": 49,
│ │ │ │ │ - "0xffff693ea990": 49,
│ │ │ │ │ - "0xffff69449bd0": 49,
│ │ │ │ │ - "0xffff69df0cd0": 46,
│ │ │ │ │ + "0xffff3d59c050": 7,
│ │ │ │ │ + "0xffff3fc4a660": 8,
│ │ │ │ │ + "0xffff40848980": 13,
│ │ │ │ │ + "0xffff420f8ad0": 9,
│ │ │ │ │ + "0xffff43acecf0": 14,
│ │ │ │ │ + "0xffff45958050": 6,
│ │ │ │ │ + "0xffff45de9b20": 6,
│ │ │ │ │ + "0xffff53b35be0": 11,
│ │ │ │ │ + "0xffff54e8c980": 12,
│ │ │ │ │ + "0xffff5cc20550": 44,
│ │ │ │ │ + "0xffff5cc21090": 44,
│ │ │ │ │ + "0xffff5cc22c10": 44,
│ │ │ │ │ + "0xffff5cc22e90": 42,
│ │ │ │ │ + "0xffff5cc64ad0": 49,
│ │ │ │ │ + "0xffff5cc66ba0": 49,
│ │ │ │ │ + "0xffff5cc67230": 49,
│ │ │ │ │ + "0xffff5cfd4c20": 49,
│ │ │ │ │ + "0xffff5d0405e0": 46,
│ │ │ │ │ + "0xffff5d040670": 46,
│ │ │ │ │ + "0xffff5d040a60": 46,
│ │ │ │ │ + "0xffff5d044190": 46,
│ │ │ │ │ + "0xffff5d044690": 49,
│ │ │ │ │ + "0xffff5d0456d0": 46,
│ │ │ │ │ + "0xffff5d17a0e0": 46,
│ │ │ │ │ + "0xffff5d17b370": 46,
│ │ │ │ │ + "0xffff5d17b400": 46,
│ │ │ │ │ + "0xffff5d341360": 46,
│ │ │ │ │ + "0xffff5d605220": 49,
│ │ │ │ │ + "0xffff5e192fd0": [39, 45],
│ │ │ │ │ + "0xffff5e193250": 39,
│ │ │ │ │ + "0xffff5ee09a90": 33,
│ │ │ │ │ + "0xffff5f2cab90": 33,
│ │ │ │ │ + "0xffff5fd22710": 30,
│ │ │ │ │ + "0xffff60a4b750": 30,
│ │ │ │ │ + "0xffff6981e900": 19,
│ │ │ │ │ + "0xffff6981f380": 45,
│ │ │ │ │ + "0xffff698396d0": 45,
│ │ │ │ │ + "0xffff69839a90": 45,
│ │ │ │ │ + "0xffff69839e50": 45,
│ │ │ │ │ + "0xffff69854910": 49,
│ │ │ │ │ + "0xffff698751d0": 49,
│ │ │ │ │ + "0xffff69882350": 49,
│ │ │ │ │ + "0xffff72a66660": 10,
│ │ │ │ │ + "0xffff8353cf50": 49,
│ │ │ │ │ + "0xffff90e99450": 50,
│ │ │ │ │ + "0xffff90e99f90": 49,
│ │ │ │ │ + "0xffff90e9a0d0": 49,
│ │ │ │ │ + "0xffff90e9a210": 49,
│ │ │ │ │ + "0xffff90e9a5d0": 49,
│ │ │ │ │ + "0xffff90ecf250": 49,
│ │ │ │ │ + "0xffff911c9a90": 49,
│ │ │ │ │ + "0xffff911c9bd0": 49,
│ │ │ │ │ + "0xffff911c9d10": 49,
│ │ │ │ │ + "0xffff911c9e50": 49,
│ │ │ │ │ + "0xffff91235310": 49,
│ │ │ │ │ + "0xffff91306c10": 49,
│ │ │ │ │ + "0xffff91364a50": 49,
│ │ │ │ │ + "0xffff9173f4d0": 49,
│ │ │ │ │ + "0xffff91851590": 49,
│ │ │ │ │ + "0xffff9193e350": 55,
│ │ │ │ │ + "0xffff9193e850": 49,
│ │ │ │ │ + "0xffff9193e990": 49,
│ │ │ │ │ + "0xffff9193ead0": 49,
│ │ │ │ │ + "0xffff9193ee90": 49,
│ │ │ │ │ + "0xffff9193f4d0": 49,
│ │ │ │ │ + "0xffff91b77390": 49,
│ │ │ │ │ + "0xffff91b77b10": 49,
│ │ │ │ │ + "0xffff91b77c50": 49,
│ │ │ │ │ + "0xffff91becf50": 49,
│ │ │ │ │ + "0xffff91d58b90": 49,
│ │ │ │ │ + "0xffff91df1450": 49,
│ │ │ │ │ + "0xffff924a0a50": 49,
│ │ │ │ │ + "0xffff92590410": 49,
│ │ │ │ │ + "0xffff9259ce10": 49,
│ │ │ │ │ + "0xffff92677110": 49,
│ │ │ │ │ + "0xffff9288b770": 49,
│ │ │ │ │ "1": [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 19, 20, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "10": [3, 6, 7, 8, 12, 13, 14, 16, 18, 19, 24, 25, 26, 27, 28, 30, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "100": [3, 7, 8, 27, 28, 32, 36, 37, 38, 39, 42, 44, 45, 46, 49, 50, 51, 55],
│ │ │ │ │ "1000": [27, 32, 38, 55],
│ │ │ │ │ "10000": [32, 37],
│ │ │ │ │ "100000": 38,
│ │ │ │ │ + "10000000": 52,
│ │ │ │ │ "1000x1000": [6, 38],
│ │ │ │ │ "1002": 6,
│ │ │ │ │ "1003": [6, 37],
│ │ │ │ │ "1004": 6,
│ │ │ │ │ "1005": 6,
│ │ │ │ │ "100b": 48,
│ │ │ │ │ "101": [32, 37, 39, 42, 44, 49, 55],
│ │ │ │ │ @@ -2715,14 +2716,15 @@
│ │ │ │ │ "1036": 6,
│ │ │ │ │ "1037": 6,
│ │ │ │ │ "1038": 6,
│ │ │ │ │ "104": [32, 37, 39, 42, 44, 49, 55],
│ │ │ │ │ "104569": 48,
│ │ │ │ │ "10456922": 19,
│ │ │ │ │ "104b": [36, 39],
│ │ │ │ │ + "104e": 52,
│ │ │ │ │ "105": [32, 36, 37, 39, 42, 44, 48, 49, 55],
│ │ │ │ │ "105e": 38,
│ │ │ │ │ "106": [32, 37, 39, 42, 44, 49],
│ │ │ │ │ "10614938": 37,
│ │ │ │ │ "106751": 32,
│ │ │ │ │ "106752": 32,
│ │ │ │ │ "107": [32, 37, 39, 42, 44, 49],
│ │ │ │ │ @@ -2763,43 +2765,47 @@
│ │ │ │ │ "11920871": 19,
│ │ │ │ │ "119209": 48,
│ │ │ │ │ "119e": 38,
│ │ │ │ │ "11t00": 38,
│ │ │ │ │ "12": [8, 11, 14, 18, 19, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "120": [33, 37, 39, 44, 46, 49, 51, 53],
│ │ │ │ │ "1209": 37,
│ │ │ │ │ - "120b": [36, 37, 42, 48],
│ │ │ │ │ + "120b": [36, 37, 42, 48, 52],
│ │ │ │ │ "121": [32, 33, 37, 39, 44, 49, 53],
│ │ │ │ │ "1212": 37,
│ │ │ │ │ "122": [37, 39, 44, 49, 53],
│ │ │ │ │ "123": [14, 19, 37, 39, 44, 48, 49, 50, 53, 55],
│ │ │ │ │ "1231": 41,
│ │ │ │ │ "12310214428849964": 55,
│ │ │ │ │ "1234": 3,
│ │ │ │ │ "124": [37, 44, 46, 49, 53],
│ │ │ │ │ "12428": 54,
│ │ │ │ │ "125": [37, 44, 46, 49],
│ │ │ │ │ - "12523": 52,
│ │ │ │ │ + "125e": 37,
│ │ │ │ │ + "125j": 52,
│ │ │ │ │ "126": [37, 44, 49, 55],
│ │ │ │ │ + "12636881898743088449": 52,
│ │ │ │ │ "12696983303810094": 55,
│ │ │ │ │ "127": [37, 39, 41, 44, 49, 55],
│ │ │ │ │ "128": [37, 44, 49, 55],
│ │ │ │ │ + "1286412330485489918": 52,
│ │ │ │ │ "128b": [19, 36, 41, 44],
│ │ │ │ │ "129": [6, 37, 44, 49, 55],
│ │ │ │ │ "12903226": 14,
│ │ │ │ │ "1294": 44,
│ │ │ │ │ "12944067971751294": 55,
│ │ │ │ │ "12arrai": 14,
│ │ │ │ │ "12b": [19, 36, 44, 48, 50, 55],
│ │ │ │ │ "12kb": 53,
│ │ │ │ │ "12locat": 14,
│ │ │ │ │ "12t00": 38,
│ │ │ │ │ "12xarrai": 14,
│ │ │ │ │ "13": [6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 30, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "130": [6, 37, 44, 49],
│ │ │ │ │ + "1306": 46,
│ │ │ │ │ "131": [6, 37, 44, 49],
│ │ │ │ │ "1318": 6,
│ │ │ │ │ "1319": 6,
│ │ │ │ │ "132": [6, 37, 49, 53],
│ │ │ │ │ "1320": 6,
│ │ │ │ │ "13203714": 14,
│ │ │ │ │ "1321": 6,
│ │ │ │ │ @@ -2832,14 +2838,15 @@
│ │ │ │ │ "139": [37, 44, 49],
│ │ │ │ │ "13971902": 14,
│ │ │ │ │ "13t00": 38,
│ │ │ │ │ "14": [8, 11, 12, 13, 19, 32, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "140": [37, 49],
│ │ │ │ │ "1402938": 19,
│ │ │ │ │ "1405": 46,
│ │ │ │ │ + "14063": 52,
│ │ │ │ │ "140kb": 53,
│ │ │ │ │ "141": [37, 45, 49],
│ │ │ │ │ "141e": [38, 49],
│ │ │ │ │ "142": [19, 37, 49],
│ │ │ │ │ "1422": 46,
│ │ │ │ │ "143": [37, 49],
│ │ │ │ │ "143e": 38,
│ │ │ │ │ @@ -2857,26 +2864,26 @@
│ │ │ │ │ "1470": 6,
│ │ │ │ │ "1472": 6,
│ │ │ │ │ "1474": 6,
│ │ │ │ │ "148": [16, 37, 49],
│ │ │ │ │ "14874584": 37,
│ │ │ │ │ "14880519": 19,
│ │ │ │ │ "149": 49,
│ │ │ │ │ + "14919071171053671319": 52,
│ │ │ │ │ "14974655": 37,
│ │ │ │ │ "14975103": 37,
│ │ │ │ │ "14985403": 37,
│ │ │ │ │ "14990579": 37,
│ │ │ │ │ "14kb": 37,
│ │ │ │ │ "14t00": 38,
│ │ │ │ │ "15": [6, 7, 8, 9, 13, 14, 19, 32, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "150": [37, 49],
│ │ │ │ │ "1505": 37,
│ │ │ │ │ "150e": 49,
│ │ │ │ │ "151": 49,
│ │ │ │ │ - "15103": 52,
│ │ │ │ │ "151542": 32,
│ │ │ │ │ "152": [39, 49],
│ │ │ │ │ "152b": [39, 51],
│ │ │ │ │ "153": 49,
│ │ │ │ │ "1531": 33,
│ │ │ │ │ "1532": 33,
│ │ │ │ │ "1533": 33,
│ │ │ │ │ @@ -2909,14 +2916,15 @@
│ │ │ │ │ "165": 33,
│ │ │ │ │ "166": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 42],
│ │ │ │ │ "1667": 45,
│ │ │ │ │ "167": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 39],
│ │ │ │ │ "1677": 32,
│ │ │ │ │ "1678": [18, 53],
│ │ │ │ │ "168": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ + "16864": 52,
│ │ │ │ │ "168b": [36, 37],
│ │ │ │ │ "169": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 42],
│ │ │ │ │ "16959064": 37,
│ │ │ │ │ "16b": [19, 36, 37, 39, 41, 44, 45, 46, 48, 50, 51, 52, 54, 55],
│ │ │ │ │ "16t00": 38,
│ │ │ │ │ "17": [8, 19, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "170": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ @@ -2926,20 +2934,20 @@
│ │ │ │ │ "172": 6,
│ │ │ │ │ "17234978": 19,
│ │ │ │ │ "172800000": 32,
│ │ │ │ │ "173": [48, 50],
│ │ │ │ │ "1732": [19, 36, 48],
│ │ │ │ │ "17321465": [19, 36],
│ │ │ │ │ "173215": [19, 48],
│ │ │ │ │ + "17372090436313634": 52,
│ │ │ │ │ "173e": 38,
│ │ │ │ │ "174": [38, 39],
│ │ │ │ │ "175": 38,
│ │ │ │ │ "17522856": 32,
│ │ │ │ │ "17540423": 32,
│ │ │ │ │ - "175e": 52,
│ │ │ │ │ "176": 38,
│ │ │ │ │ "177": 38,
│ │ │ │ │ "1779": 37,
│ │ │ │ │ "177e": 38,
│ │ │ │ │ "178": [6, 8, 9, 10, 13, 33, 38],
│ │ │ │ │ "179": [6, 8, 9, 10, 13, 33, 38, 42],
│ │ │ │ │ "17t00": 38,
│ │ │ │ │ @@ -2958,15 +2966,14 @@
│ │ │ │ │ "1841": 33,
│ │ │ │ │ "1842": 33,
│ │ │ │ │ "1843": 33,
│ │ │ │ │ "1844": 33,
│ │ │ │ │ "18446744073709551615": 32,
│ │ │ │ │ "184b": 48,
│ │ │ │ │ "185": 6,
│ │ │ │ │ - "1851887664": 52,
│ │ │ │ │ "18672976": 37,
│ │ │ │ │ "187": 6,
│ │ │ │ │ "188": 6,
│ │ │ │ │ "1889": 6,
│ │ │ │ │ "189": [6, 45],
│ │ │ │ │ "1890": 6,
│ │ │ │ │ "1891": 6,
│ │ │ │ │ @@ -2977,15 +2984,15 @@
│ │ │ │ │ "1900": 46,
│ │ │ │ │ "1901901901901": 32,
│ │ │ │ │ "191": [41, 42],
│ │ │ │ │ "19101252": 19,
│ │ │ │ │ "191e": 49,
│ │ │ │ │ "1926": 41,
│ │ │ │ │ "192b": [37, 39, 54],
│ │ │ │ │ - "192e": [38, 52],
│ │ │ │ │ + "192e": 38,
│ │ │ │ │ "193000": 32,
│ │ │ │ │ "1969": 32,
│ │ │ │ │ "197": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "1970": [27, 32, 55],
│ │ │ │ │ "1971": 32,
│ │ │ │ │ "1972": 32,
│ │ │ │ │ "198": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ @@ -3058,32 +3065,33 @@
│ │ │ │ │ "218": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "219": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "2193": 14,
│ │ │ │ │ "21t00": 38,
│ │ │ │ │ "22": [6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 30, 32, 33, 34, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 52, 53, 54],
│ │ │ │ │ "220": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 44],
│ │ │ │ │ "22012753": 32,
│ │ │ │ │ - "220e": 52,
│ │ │ │ │ "221": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "222": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "22222222": 37,
│ │ │ │ │ + "22319": 52,
│ │ │ │ │ "224193": 32,
│ │ │ │ │ "224e": 38,
│ │ │ │ │ "22546326": 37,
│ │ │ │ │ - "225e": 52,
│ │ │ │ │ "2262": [18, 32, 53],
│ │ │ │ │ "226e": 49,
│ │ │ │ │ + "22728": 52,
│ │ │ │ │ "2281": 33,
│ │ │ │ │ "2282": 33,
│ │ │ │ │ "2283": 33,
│ │ │ │ │ "2284": 33,
│ │ │ │ │ "2288873043216132": 55,
│ │ │ │ │ "229": [39, 55],
│ │ │ │ │ "2298": 33,
│ │ │ │ │ "2299": 33,
│ │ │ │ │ + "22e": 52,
│ │ │ │ │ "22t00": 38,
│ │ │ │ │ "23": [14, 18, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 52, 53, 54],
│ │ │ │ │ "2300": 33,
│ │ │ │ │ "23207067": 37,
│ │ │ │ │ "2333": 14,
│ │ │ │ │ "23333333": 14,
│ │ │ │ │ "234e": 38,
│ │ │ │ │ @@ -3091,73 +3099,75 @@
│ │ │ │ │ "2355": 44,
│ │ │ │ │ "236": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "237": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "238": 6,
│ │ │ │ │ "2380": 55,
│ │ │ │ │ "23859177": 37,
│ │ │ │ │ "239": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ + "23956": 52,
│ │ │ │ │ "23991312": 37,
│ │ │ │ │ "23kb": 53,
│ │ │ │ │ "23t00": 38,
│ │ │ │ │ "23t12": 37,
│ │ │ │ │ "24": [7, 14, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "240": [6, 45, 49, 53],
│ │ │ │ │ + "24027": 52,
│ │ │ │ │ "240b": [38, 46],
│ │ │ │ │ "240e": 49,
│ │ │ │ │ "241": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "24193548": 14,
│ │ │ │ │ "241e": 38,
│ │ │ │ │ "242": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "242e": 38,
│ │ │ │ │ "243": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "244": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 39],
│ │ │ │ │ "2442": 38,
│ │ │ │ │ "245": [13, 44],
│ │ │ │ │ - "24540": 52,
│ │ │ │ │ "245e": 49,
│ │ │ │ │ "2467": 38,
│ │ │ │ │ "247": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "248": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 37],
│ │ │ │ │ "2483": 37,
│ │ │ │ │ "248b": [19, 46],
│ │ │ │ │ "248e": 38,
│ │ │ │ │ "2493": 46,
│ │ │ │ │ - "24b": [14, 19, 36, 37, 39, 41, 42, 44, 45, 48, 49, 50, 51, 52, 55],
│ │ │ │ │ + "24b": [14, 19, 36, 37, 39, 41, 42, 44, 45, 48, 49, 50, 51, 55],
│ │ │ │ │ "24h": 55,
│ │ │ │ │ "24t00": 38,
│ │ │ │ │ "25": [7, 8, 14, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "250": [13, 49],
│ │ │ │ │ "2509": 37,
│ │ │ │ │ "251": 37,
│ │ │ │ │ "2515": 37,
│ │ │ │ │ "25176289": 14,
│ │ │ │ │ + "25252734927764514": 52,
│ │ │ │ │ "253": 39,
│ │ │ │ │ - "255": [13, 44, 46, 52],
│ │ │ │ │ + "255": [13, 44, 46],
│ │ │ │ │ "2554": 41,
│ │ │ │ │ "258": 44,
│ │ │ │ │ "25828142": 37,
│ │ │ │ │ "259": [42, 45],
│ │ │ │ │ "25t00": 38,
│ │ │ │ │ "26": [14, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 52, 53, 54],
│ │ │ │ │ "260": [13, 44],
│ │ │ │ │ "26047600586578334": 55,
│ │ │ │ │ "2605": [39, 41],
│ │ │ │ │ "261e": 49,
│ │ │ │ │ - "262": 52,
│ │ │ │ │ "26297658": 37,
│ │ │ │ │ "263e": 49,
│ │ │ │ │ "264": 45,
│ │ │ │ │ "26410385": 37,
│ │ │ │ │ "264b": [39, 46],
│ │ │ │ │ "265": 13,
│ │ │ │ │ "26522911": 37,
│ │ │ │ │ "26585059": 37,
│ │ │ │ │ "266": 50,
│ │ │ │ │ "26652587": 37,
│ │ │ │ │ "26673283": 37,
│ │ │ │ │ + "26699": 52,
│ │ │ │ │ "26978671": 37,
│ │ │ │ │ "26t00": 38,
│ │ │ │ │ "27": [3, 14, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 49, 50, 52, 53, 54],
│ │ │ │ │ "270": [13, 45],
│ │ │ │ │ "271148": 14,
│ │ │ │ │ "27185989": 19,
│ │ │ │ │ "2719": 19,
│ │ │ │ │ @@ -3185,16 +3195,18 @@
│ │ │ │ │ "28099849": 37,
│ │ │ │ │ "280b": 37,
│ │ │ │ │ "280e": 38,
│ │ │ │ │ "282863": [19, 48],
│ │ │ │ │ "28286334": [19, 36],
│ │ │ │ │ "2829": [19, 36, 48],
│ │ │ │ │ "283": [42, 48, 50],
│ │ │ │ │ + "28459": 52,
│ │ │ │ │ "285": [13, 39],
│ │ │ │ │ "286e": 37,
│ │ │ │ │ + "28724": 52,
│ │ │ │ │ "288b": [14, 37, 54],
│ │ │ │ │ "289": 6,
│ │ │ │ │ "2899444": 37,
│ │ │ │ │ "28t00": 38,
│ │ │ │ │ "29": [7, 14, 18, 19, 32, 36, 37, 39, 41, 42, 44, 45, 46, 49, 50, 52, 53, 54],
│ │ │ │ │ "290": [6, 13],
│ │ │ │ │ "290308": 32,
│ │ │ │ │ @@ -3208,14 +3220,15 @@
│ │ │ │ │ "292277026596": 32,
│ │ │ │ │ "292278994": 32,
│ │ │ │ │ "293": 6,
│ │ │ │ │ "2931": 41,
│ │ │ │ │ "29393586": 37,
│ │ │ │ │ "294": 6,
│ │ │ │ │ "294247": 32,
│ │ │ │ │ + "29437": 52,
│ │ │ │ │ "295": 6,
│ │ │ │ │ "29519584": 37,
│ │ │ │ │ "29645358": 37,
│ │ │ │ │ "296e": 38,
│ │ │ │ │ "297e": 49,
│ │ │ │ │ "29844148": 37,
│ │ │ │ │ "2999": 32,
│ │ │ │ │ @@ -3224,48 +3237,49 @@
│ │ │ │ │ "2d": [19, 39, 44, 48, 49, 51, 54, 55],
│ │ │ │ │ "2ecc71": 49,
│ │ │ │ │ "2kb": [37, 53],
│ │ │ │ │ "2m": 6,
│ │ │ │ │ "2mt": 6,
│ │ │ │ │ "2nd": [44, 49],
│ │ │ │ │ "2x": 55,
│ │ │ │ │ + "2z\u017c\u017eu": 52,
│ │ │ │ │ "3": [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 19, 24, 25, 26, 27, 30, 32, 33, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "30": [11, 13, 14, 18, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "300": [7, 37, 42, 45, 46],
│ │ │ │ │ "302": [6, 41],
│ │ │ │ │ "302e": 38,
│ │ │ │ │ "303": 6,
│ │ │ │ │ "304": [6, 26],
│ │ │ │ │ "305": [6, 26, 54],
│ │ │ │ │ "30555813": 37,
│ │ │ │ │ "305e": 38,
│ │ │ │ │ "306": [6, 26],
│ │ │ │ │ + "30680": 52,
│ │ │ │ │ "30682759": 37,
│ │ │ │ │ "306e": 38,
│ │ │ │ │ "307": [6, 26],
│ │ │ │ │ "307e": 38,
│ │ │ │ │ - "308": [6, 26, 52],
│ │ │ │ │ + "308": [6, 26],
│ │ │ │ │ "30852683": 37,
│ │ │ │ │ "309": [6, 45],
│ │ │ │ │ "30t00": [14, 38, 53],
│ │ │ │ │ "30t1": 53,
│ │ │ │ │ "30t12": 53,
│ │ │ │ │ "30t18": 53,
│ │ │ │ │ "30t21": 53,
│ │ │ │ │ "31": [14, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 49, 50, 52, 53, 54],
│ │ │ │ │ "310": 13,
│ │ │ │ │ "310409": 14,
│ │ │ │ │ "31040942": 14,
│ │ │ │ │ - "311": 52,
│ │ │ │ │ - "313": 52,
│ │ │ │ │ - "313j": 52,
│ │ │ │ │ + "31291": 52,
│ │ │ │ │ "315e": 38,
│ │ │ │ │ "316": 45,
│ │ │ │ │ "31695352": 14,
│ │ │ │ │ "3179": 42,
│ │ │ │ │ + "31791": 52,
│ │ │ │ │ "319e": 38,
│ │ │ │ │ "31arrai": 14,
│ │ │ │ │ "31t00": [14, 32],
│ │ │ │ │ "31t18": 53,
│ │ │ │ │ "31t23": [32, 53],
│ │ │ │ │ "32": [19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 49, 50, 52, 53, 54, 55],
│ │ │ │ │ "3207": 6,
│ │ │ │ │ @@ -3275,26 +3289,27 @@
│ │ │ │ │ "321": 45,
│ │ │ │ │ "3210": 6,
│ │ │ │ │ "3211": 6,
│ │ │ │ │ "3213": 6,
│ │ │ │ │ "3214": 6,
│ │ │ │ │ "3226808": 19,
│ │ │ │ │ "32269851": 14,
│ │ │ │ │ + "32272": 52,
│ │ │ │ │ "322e": 38,
│ │ │ │ │ + "32538": 52,
│ │ │ │ │ "3254": 6,
│ │ │ │ │ "3256": 6,
│ │ │ │ │ "3257": 6,
│ │ │ │ │ "3258": 6,
│ │ │ │ │ "3260": 6,
│ │ │ │ │ "3261": [6, 41],
│ │ │ │ │ "32618": 46,
│ │ │ │ │ "326e": 38,
│ │ │ │ │ - "329": 37,
│ │ │ │ │ "3297": 42,
│ │ │ │ │ - "32b": [19, 32, 36, 37, 39, 41, 44, 45, 46, 49, 50, 51, 53, 55],
│ │ │ │ │ + "32b": [19, 32, 36, 37, 39, 41, 44, 45, 46, 49, 50, 51, 52, 53, 55],
│ │ │ │ │ "33": [14, 19, 32, 36, 37, 39, 41, 42, 44, 45, 46, 49, 50, 52, 53, 55],
│ │ │ │ │ "331e": 38,
│ │ │ │ │ "333": 50,
│ │ │ │ │ "33326004": 19,
│ │ │ │ │ "33333333": 14,
│ │ │ │ │ "333e": 38,
│ │ │ │ │ "33419587": 37,
│ │ │ │ │ @@ -3322,15 +3337,14 @@
│ │ │ │ │ "34576404": 14,
│ │ │ │ │ "346": [14, 42],
│ │ │ │ │ "34723825": 14,
│ │ │ │ │ "348": 45,
│ │ │ │ │ "3498db": 49,
│ │ │ │ │ "35": [7, 14, 19, 32, 36, 37, 39, 42, 44, 45, 46, 49, 50, 51, 52, 53, 55],
│ │ │ │ │ "350e": 49,
│ │ │ │ │ - "3514887451": 52,
│ │ │ │ │ "352": 55,
│ │ │ │ │ "35205353914802473": 55,
│ │ │ │ │ "3521": 44,
│ │ │ │ │ "354": 41,
│ │ │ │ │ "355": 6,
│ │ │ │ │ "35677824": 19,
│ │ │ │ │ "357": [6, 53],
│ │ │ │ │ @@ -3341,15 +3355,15 @@
│ │ │ │ │ "359": [6, 39, 53],
│ │ │ │ │ "36": [3, 19, 32, 36, 37, 39, 42, 44, 45, 46, 49, 50, 52, 53, 55],
│ │ │ │ │ "360": [46, 53],
│ │ │ │ │ "360_dai": [46, 54, 55],
│ │ │ │ │ "361": [6, 53],
│ │ │ │ │ "361e": 38,
│ │ │ │ │ "362": 53,
│ │ │ │ │ - "362e": 49,
│ │ │ │ │ + "362e": [37, 49],
│ │ │ │ │ "363": [6, 53],
│ │ │ │ │ "36303831": 37,
│ │ │ │ │ "364": [37, 53],
│ │ │ │ │ "3648": 53,
│ │ │ │ │ "3649": 53,
│ │ │ │ │ "365": [14, 32, 49, 53, 55],
│ │ │ │ │ "3650": 53,
│ │ │ │ │ @@ -3359,15 +3373,14 @@
│ │ │ │ │ "365_dai": 46,
│ │ │ │ │ "366": 32,
│ │ │ │ │ "3667": 45,
│ │ │ │ │ "366_dai": 46,
│ │ │ │ │ "3684": 41,
│ │ │ │ │ "368e": 38,
│ │ │ │ │ "369": 49,
│ │ │ │ │ - "36979": 52,
│ │ │ │ │ "36b": 55,
│ │ │ │ │ "37": [19, 32, 36, 37, 39, 41, 42, 44, 45, 46, 49, 50, 52, 53, 55],
│ │ │ │ │ "371": 37,
│ │ │ │ │ "37271154": 14,
│ │ │ │ │ "372712": 14,
│ │ │ │ │ "373": [39, 41, 44, 50, 55],
│ │ │ │ │ "37301222522143085": 55,
│ │ │ │ │ @@ -3395,41 +3408,39 @@
│ │ │ │ │ "384e": 38,
│ │ │ │ │ "385": 6,
│ │ │ │ │ "3884": [37, 53],
│ │ │ │ │ "3885": 53,
│ │ │ │ │ "3886": 53,
│ │ │ │ │ "3887": 53,
│ │ │ │ │ "389e": 46,
│ │ │ │ │ - "38j": 52,
│ │ │ │ │ "39": [6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 32, 36, 37, 39, 42, 44, 45, 46, 49, 50, 53, 55],
│ │ │ │ │ "391e": 38,
│ │ │ │ │ "392e": 46,
│ │ │ │ │ "395": [42, 44],
│ │ │ │ │ "395763": 14,
│ │ │ │ │ "396": 42,
│ │ │ │ │ "3963": 37,
│ │ │ │ │ - "39788": 52,
│ │ │ │ │ "3989": 37,
│ │ │ │ │ "3b": 37,
│ │ │ │ │ - "3b09c8b6f322": 46,
│ │ │ │ │ "3coordin": 14,
│ │ │ │ │ "3d": [5, 7, 8, 48, 49, 54, 55],
│ │ │ │ │ + "3eb0c4b41a69": 46,
│ │ │ │ │ "3h": 55,
│ │ │ │ │ "3kb": [37, 53],
│ │ │ │ │ "3min": 54,
│ │ │ │ │ "3rd": 28,
│ │ │ │ │ "4": [3, 6, 7, 8, 9, 11, 12, 13, 14, 16, 19, 25, 27, 30, 32, 33, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 50, 51, 52, 53, 54],
│ │ │ │ │ "40": [19, 28, 32, 36, 37, 39, 41, 42, 44, 45, 46, 49, 50, 51, 55],
│ │ │ │ │ "400": [6, 49, 50],
│ │ │ │ │ + "400b": 52,
│ │ │ │ │ "400e": 49,
│ │ │ │ │ "401": [6, 44],
│ │ │ │ │ "401501": 32,
│ │ │ │ │ "401501601": 32,
│ │ │ │ │ "401501601701801901": 32,
│ │ │ │ │ - "401e": 52,
│ │ │ │ │ "402": 6,
│ │ │ │ │ "403": 6,
│ │ │ │ │ "40324704": 37,
│ │ │ │ │ "404": [6, 44],
│ │ │ │ │ "405": 44,
│ │ │ │ │ "406e": 49,
│ │ │ │ │ "4074": 42,
│ │ │ │ │ @@ -3469,14 +3480,15 @@
│ │ │ │ │ "4326": 46,
│ │ │ │ │ "4333": 45,
│ │ │ │ │ "439e": 38,
│ │ │ │ │ "44": [19, 32, 36, 37, 39, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ "440e": 49,
│ │ │ │ │ "441e": 38,
│ │ │ │ │ "443": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 42, 44, 45, 46, 49, 50],
│ │ │ │ │ + "444790435": 52,
│ │ │ │ │ "445e": [38, 49],
│ │ │ │ │ "44785582": 14,
│ │ │ │ │ "447856": 14,
│ │ │ │ │ "4479968246859435": 55,
│ │ │ │ │ "448": [39, 41, 44, 50, 55],
│ │ │ │ │ "448b": 44,
│ │ │ │ │ "448e": 49,
│ │ │ │ │ @@ -3492,15 +3504,14 @@
│ │ │ │ │ "453e": 49,
│ │ │ │ │ "4555": 42,
│ │ │ │ │ "456060": 14,
│ │ │ │ │ "456b": 39,
│ │ │ │ │ "457e": 53,
│ │ │ │ │ "458e": 53,
│ │ │ │ │ "459e": 53,
│ │ │ │ │ - "45j": 52,
│ │ │ │ │ "46": [19, 32, 37, 39, 41, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ "46194319": 37,
│ │ │ │ │ "462": 44,
│ │ │ │ │ "463": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "46376911": 14,
│ │ │ │ │ "464": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "46462434": 19,
│ │ │ │ │ @@ -3521,51 +3532,51 @@
│ │ │ │ │ "47145519": 37,
│ │ │ │ │ "47146929": 37,
│ │ │ │ │ "4715": 46,
│ │ │ │ │ "47179359": 37,
│ │ │ │ │ "47195655": 37,
│ │ │ │ │ "472e": 38,
│ │ │ │ │ "476e": 49,
│ │ │ │ │ - "47e4": 46,
│ │ │ │ │ "47kb": 14,
│ │ │ │ │ "48": [19, 32, 37, 39, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ "4809": 55,
│ │ │ │ │ "480b": 46,
│ │ │ │ │ "481": 44,
│ │ │ │ │ - "481e": 38,
│ │ │ │ │ + "481e": [38, 52],
│ │ │ │ │ "48541500": 46,
│ │ │ │ │ "485e": 38,
│ │ │ │ │ "486": 6,
│ │ │ │ │ "4867138": 37,
│ │ │ │ │ "48671934": 37,
│ │ │ │ │ "48672119": 37,
│ │ │ │ │ "487": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ + "48720": 52,
│ │ │ │ │ "4875": 37,
│ │ │ │ │ "487e": 38,
│ │ │ │ │ "488": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "489": 6,
│ │ │ │ │ - "48b": [19, 36, 37, 41, 44, 45, 48, 50, 52, 55],
│ │ │ │ │ + "48b": [19, 36, 37, 41, 44, 45, 48, 50, 55],
│ │ │ │ │ "49": [19, 32, 37, 39, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ "490": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "4909415": 19,
│ │ │ │ │ "491": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "492": 6,
│ │ │ │ │ "494929": 48,
│ │ │ │ │ "49492927": 19,
│ │ │ │ │ "49497537": 19,
│ │ │ │ │ "495": 48,
│ │ │ │ │ "495e": 49,
│ │ │ │ │ "497": [44, 45],
│ │ │ │ │ - "4996": 46,
│ │ │ │ │ "499e": 38,
│ │ │ │ │ - "4b": [36, 44, 50, 52, 55],
│ │ │ │ │ + "4b": [36, 44, 50, 55],
│ │ │ │ │ + "4b87": 46,
│ │ │ │ │ "4d": 49,
│ │ │ │ │ "4kb": [49, 53],
│ │ │ │ │ "5": [6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 19, 25, 27, 30, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ - "50": [7, 14, 19, 28, 32, 36, 37, 39, 41, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ + "50": [7, 14, 19, 28, 32, 36, 37, 39, 41, 42, 44, 45, 46, 49, 50, 52, 55],
│ │ │ │ │ "500": [13, 46, 49, 55],
│ │ │ │ │ "500000": 32,
│ │ │ │ │ "5001": 32,
│ │ │ │ │ "500100": 32,
│ │ │ │ │ "502": 45,
│ │ │ │ │ "503": 6,
│ │ │ │ │ "504": 41,
│ │ │ │ │ @@ -3576,14 +3587,15 @@
│ │ │ │ │ "507": 6,
│ │ │ │ │ "508": [6, 45],
│ │ │ │ │ "5081": 30,
│ │ │ │ │ "509": [6, 19, 36, 48, 50],
│ │ │ │ │ "5090585": [19, 36],
│ │ │ │ │ "509059": [19, 48],
│ │ │ │ │ "5093": 37,
│ │ │ │ │ + "5094675196065995282": 52,
│ │ │ │ │ "509e": 38,
│ │ │ │ │ "51": [6, 19, 32, 37, 39, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ "511e": 38,
│ │ │ │ │ "512e": 49,
│ │ │ │ │ "5137": 41,
│ │ │ │ │ "51565169": 37,
│ │ │ │ │ "51565756": 37,
│ │ │ │ │ @@ -3613,16 +3625,17 @@
│ │ │ │ │ "534e": 38,
│ │ │ │ │ "538": 45,
│ │ │ │ │ "538e": 38,
│ │ │ │ │ "53916524": 19,
│ │ │ │ │ "54": [3, 18, 19, 32, 37, 39, 42, 44, 45, 46, 49, 50, 55],
│ │ │ │ │ "540e": 49,
│ │ │ │ │ "5417": 46,
│ │ │ │ │ - "541e": 49,
│ │ │ │ │ + "541e": [49, 52],
│ │ │ │ │ "543": [39, 41, 44, 50],
│ │ │ │ │ + "5438830300534694632": 52,
│ │ │ │ │ "54392729": 14,
│ │ │ │ │ "543e": 49,
│ │ │ │ │ "544": 14,
│ │ │ │ │ "54401285": 37,
│ │ │ │ │ "54401905": 37,
│ │ │ │ │ "54402111": 37,
│ │ │ │ │ "544arrai": 14,
│ │ │ │ │ @@ -3677,23 +3690,25 @@
│ │ │ │ │ "59499": 16,
│ │ │ │ │ "595e": 38,
│ │ │ │ │ "596": 44,
│ │ │ │ │ "596e": 38,
│ │ │ │ │ "598e": 38,
│ │ │ │ │ "5b": [37, 44],
│ │ │ │ │ "5d": 54,
│ │ │ │ │ + "5j": 52,
│ │ │ │ │ "5kb": 55,
│ │ │ │ │ "5x": 55,
│ │ │ │ │ "6": [3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 25, 27, 30, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "60": [6, 7, 8, 9, 10, 11, 12, 13, 19, 30, 32, 33, 37, 39, 42, 44, 45, 46, 49, 50, 53, 54, 55],
│ │ │ │ │ "600e": 49,
│ │ │ │ │ "601": [37, 39, 45],
│ │ │ │ │ "604": 45,
│ │ │ │ │ "607": [41, 45],
│ │ │ │ │ "609": 41,
│ │ │ │ │ + "60b": 52,
│ │ │ │ │ "61": [6, 7, 8, 9, 10, 11, 12, 13, 19, 30, 32, 33, 37, 39, 42, 44, 45, 46, 49, 55],
│ │ │ │ │ "611": 44,
│ │ │ │ │ "611e": [38, 49],
│ │ │ │ │ "612e": 46,
│ │ │ │ │ "613": [39, 44],
│ │ │ │ │ "616e": 38,
│ │ │ │ │ "617e": 49,
│ │ │ │ │ @@ -3726,34 +3741,34 @@
│ │ │ │ │ "651e": 38,
│ │ │ │ │ "6525": 37,
│ │ │ │ │ "652e": 38,
│ │ │ │ │ "653": 39,
│ │ │ │ │ "65348932": 37,
│ │ │ │ │ "65442351": 19,
│ │ │ │ │ "6573": 46,
│ │ │ │ │ - "659": 37,
│ │ │ │ │ + "6591": 52,
│ │ │ │ │ "66": [32, 37, 39, 42, 44, 45, 46, 49, 55],
│ │ │ │ │ - "662e": 37,
│ │ │ │ │ "666": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "6667": 46,
│ │ │ │ │ "667": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "667e": 49,
│ │ │ │ │ "668": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "669": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 39],
│ │ │ │ │ + "66e": 52,
│ │ │ │ │ "67": [32, 37, 39, 41, 42, 44, 46, 49, 55],
│ │ │ │ │ "670": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "671": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ + "671e": 52,
│ │ │ │ │ "672": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "67283594": 14,
│ │ │ │ │ "673": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "6732": 42,
│ │ │ │ │ "674": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 41],
│ │ │ │ │ "675": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 45],
│ │ │ │ │ "676": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ - "6768267c": 46,
│ │ │ │ │ "677": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "678": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "679": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "68": [6, 32, 37, 39, 42, 44, 46, 49, 55],
│ │ │ │ │ "6807": 24,
│ │ │ │ │ "680b": 39,
│ │ │ │ │ "681": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ @@ -3774,15 +3789,14 @@
│ │ │ │ │ "696": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "697": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "698": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "6981": 42,
│ │ │ │ │ "6b": 36,
│ │ │ │ │ "6h": [53, 55],
│ │ │ │ │ "6kb": [14, 53],
│ │ │ │ │ - "6\u017c\u017e": 52,
│ │ │ │ │ "7": [3, 6, 7, 8, 9, 11, 12, 14, 19, 25, 27, 30, 32, 33, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "70": [6, 7, 8, 9, 10, 11, 12, 13, 30, 32, 33, 37, 39, 42, 44, 45, 46, 49, 55],
│ │ │ │ │ "700": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "701": 45,
│ │ │ │ │ "702": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 44],
│ │ │ │ │ "703": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "703e": 49,
│ │ │ │ │ @@ -3811,15 +3825,15 @@
│ │ │ │ │ "724": 13,
│ │ │ │ │ "726": [33, 41],
│ │ │ │ │ "72653812": 37,
│ │ │ │ │ "726e": 38,
│ │ │ │ │ "727": 33,
│ │ │ │ │ "728": [33, 53],
│ │ │ │ │ "729": [33, 53],
│ │ │ │ │ - "72b": [36, 41, 44, 45, 52],
│ │ │ │ │ + "72b": [36, 41, 44, 45],
│ │ │ │ │ "73": [6, 7, 8, 9, 10, 11, 12, 13, 30, 32, 33, 37, 39, 42, 44, 46, 49, 55],
│ │ │ │ │ "730": [33, 53],
│ │ │ │ │ "730119": 32,
│ │ │ │ │ "73021329": 37,
│ │ │ │ │ "73078492": 14,
│ │ │ │ │ "730851": 32,
│ │ │ │ │ "731": [14, 33, 53],
│ │ │ │ │ @@ -3832,15 +3846,15 @@
│ │ │ │ │ "735": [33, 44, 45],
│ │ │ │ │ "736": 33,
│ │ │ │ │ "737": 53,
│ │ │ │ │ "737e": 49,
│ │ │ │ │ "738": [45, 53],
│ │ │ │ │ "739": 53,
│ │ │ │ │ "739e": [38, 49],
│ │ │ │ │ - "74": [32, 37, 38, 39, 42, 44, 46, 49, 52, 55],
│ │ │ │ │ + "74": [32, 37, 38, 39, 42, 44, 46, 49, 55],
│ │ │ │ │ "740": 53,
│ │ │ │ │ "741": 53,
│ │ │ │ │ "74165739": 37,
│ │ │ │ │ "742": 53,
│ │ │ │ │ "742e": 38,
│ │ │ │ │ "743": 53,
│ │ │ │ │ "744": 53,
│ │ │ │ │ @@ -3850,14 +3864,15 @@
│ │ │ │ │ "752": 42,
│ │ │ │ │ "7523": 37,
│ │ │ │ │ "753e": 38,
│ │ │ │ │ "754": 44,
│ │ │ │ │ "7544": 37,
│ │ │ │ │ "754e": [38, 49],
│ │ │ │ │ "7553": 55,
│ │ │ │ │ + "7557085660993304329": 52,
│ │ │ │ │ "755e": [38, 49],
│ │ │ │ │ "758e": 38,
│ │ │ │ │ "759": 44,
│ │ │ │ │ "76": [32, 37, 39, 42, 44, 46, 49, 55],
│ │ │ │ │ "762e": 38,
│ │ │ │ │ "765e": 38,
│ │ │ │ │ "766e": 38,
│ │ │ │ │ @@ -3899,15 +3914,15 @@
│ │ │ │ │ "793": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "794": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "795": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "796": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "797": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "797e": 54,
│ │ │ │ │ "798": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ - "798e": [38, 52],
│ │ │ │ │ + "798e": 38,
│ │ │ │ │ "799": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "8": [3, 6, 7, 8, 11, 12, 13, 14, 16, 18, 19, 25, 27, 30, 32, 33, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "80": [32, 37, 39, 42, 44, 49, 50, 55],
│ │ │ │ │ "800": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "800b": [25, 37],
│ │ │ │ │ "800e": 38,
│ │ │ │ │ "800mb": 38,
│ │ │ │ │ @@ -3917,21 +3932,21 @@
│ │ │ │ │ "805": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 45],
│ │ │ │ │ "80527925": 14,
│ │ │ │ │ "805arrai": 14,
│ │ │ │ │ "805xarrai": 14,
│ │ │ │ │ "806": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "807": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "807000": 32,
│ │ │ │ │ + "8074": 52,
│ │ │ │ │ "8075": 37,
│ │ │ │ │ "808": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "8080": 55,
│ │ │ │ │ "809": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "80b": [27, 30, 36, 37, 39, 42, 45, 49, 54],
│ │ │ │ │ "81": [3, 32, 37, 39, 42, 44, 49, 55],
│ │ │ │ │ - "810e": 52,
│ │ │ │ │ "811": 45,
│ │ │ │ │ "812e": 38,
│ │ │ │ │ "81327024": 37,
│ │ │ │ │ "814": 45,
│ │ │ │ │ "814e": 38,
│ │ │ │ │ "81649658": 16,
│ │ │ │ │ "816497": 16,
│ │ │ │ │ @@ -3979,29 +3994,29 @@
│ │ │ │ │ "851e": 38,
│ │ │ │ │ "853905": 14,
│ │ │ │ │ "854775807": 32,
│ │ │ │ │ "8548": [14, 37],
│ │ │ │ │ "85483871": 14,
│ │ │ │ │ "8568": 42,
│ │ │ │ │ "857e": 38,
│ │ │ │ │ - "858": 37,
│ │ │ │ │ "858e": 54,
│ │ │ │ │ "8599": 44,
│ │ │ │ │ "86": [32, 37, 38, 39, 42, 44, 49, 55],
│ │ │ │ │ "8601": [54, 55],
│ │ │ │ │ "8602": 42,
│ │ │ │ │ "8618": 36,
│ │ │ │ │ "86184896": 19,
│ │ │ │ │ "861849": 48,
│ │ │ │ │ "862": [44, 48],
│ │ │ │ │ "862e": [38, 49],
│ │ │ │ │ "863": 45,
│ │ │ │ │ "86400000": 32,
│ │ │ │ │ "86436763": 19,
│ │ │ │ │ "8652": 53,
│ │ │ │ │ + "8665727290046625246": 52,
│ │ │ │ │ "867": 45,
│ │ │ │ │ "8676": 53,
│ │ │ │ │ "867e": 38,
│ │ │ │ │ "868e": 38,
│ │ │ │ │ "869e": 38,
│ │ │ │ │ "87": [32, 37, 38, 39, 42, 44, 49, 55],
│ │ │ │ │ "8700": 53,
│ │ │ │ │ @@ -4021,38 +4036,37 @@
│ │ │ │ │ "884": 37,
│ │ │ │ │ "886e": 38,
│ │ │ │ │ "887": 42,
│ │ │ │ │ "88709677": 14,
│ │ │ │ │ "8871": 14,
│ │ │ │ │ "888": 45,
│ │ │ │ │ "88b": [19, 49, 50],
│ │ │ │ │ - "89": [32, 37, 38, 39, 42, 44, 49, 55],
│ │ │ │ │ + "89": [32, 37, 38, 39, 42, 44, 49, 52, 55],
│ │ │ │ │ "893": 45,
│ │ │ │ │ "893e": [38, 49],
│ │ │ │ │ "897": [39, 44],
│ │ │ │ │ "8972": 41,
│ │ │ │ │ "897e": 49,
│ │ │ │ │ "8987": 42,
│ │ │ │ │ - "8b": [16, 19, 36, 37, 39, 41, 42, 44, 45, 48, 50, 52, 53, 55],
│ │ │ │ │ + "8b": [16, 19, 36, 37, 39, 41, 42, 44, 45, 48, 50, 53, 55],
│ │ │ │ │ "8kb": 55,
│ │ │ │ │ "8mb": 38,
│ │ │ │ │ "8x": 55,
│ │ │ │ │ "9": [3, 6, 7, 8, 12, 14, 19, 25, 27, 30, 32, 33, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54],
│ │ │ │ │ "90": [3, 12, 32, 36, 37, 39, 42, 44, 49, 50, 55],
│ │ │ │ │ - "900e": [49, 52],
│ │ │ │ │ + "900e": 49,
│ │ │ │ │ "901000": 32,
│ │ │ │ │ "901901": 32,
│ │ │ │ │ "901901901": 32,
│ │ │ │ │ "904e": 49,
│ │ │ │ │ "905e": 49,
│ │ │ │ │ "90680094": 19,
│ │ │ │ │ "906e": 49,
│ │ │ │ │ "91": [12, 32, 37, 39, 42, 44, 49, 55],
│ │ │ │ │ "911": 45,
│ │ │ │ │ - "911e": 37,
│ │ │ │ │ "912": 45,
│ │ │ │ │ "91275558": 37,
│ │ │ │ │ "912e": 38,
│ │ │ │ │ "913e": 38,
│ │ │ │ │ "915": 39,
│ │ │ │ │ "915e": 49,
│ │ │ │ │ "916": 37,
│ │ │ │ │ @@ -4094,14 +4108,15 @@
│ │ │ │ │ "96641818": 19,
│ │ │ │ │ "9667": [39, 41],
│ │ │ │ │ "967": [37, 39, 44],
│ │ │ │ │ "967409": 14,
│ │ │ │ │ "967e": 38,
│ │ │ │ │ "968e": 38,
│ │ │ │ │ "96b": [14, 19, 36, 37, 39, 41, 44, 49, 51, 52, 54, 55],
│ │ │ │ │ + "96e": 52,
│ │ │ │ │ "97": [32, 37, 39, 42, 44, 49, 55],
│ │ │ │ │ "970": 32,
│ │ │ │ │ "971e": 49,
│ │ │ │ │ "973": 39,
│ │ │ │ │ "974": 45,
│ │ │ │ │ "97498828": 37,
│ │ │ │ │ "975426": 14,
│ │ │ │ │ @@ -4122,14 +4137,15 @@
│ │ │ │ │ "98th": 49,
│ │ │ │ │ "99": [32, 37, 39, 42, 44, 45, 49, 50, 55],
│ │ │ │ │ "991": 45,
│ │ │ │ │ "992b": 53,
│ │ │ │ │ "992e": 38,
│ │ │ │ │ "995e": 49,
│ │ │ │ │ "996": 30,
│ │ │ │ │ + "9963": 52,
│ │ │ │ │ "997": 30,
│ │ │ │ │ "998": 30,
│ │ │ │ │ "99809483": 19,
│ │ │ │ │ "998e": 38,
│ │ │ │ │ "999": 55,
│ │ │ │ │ "9999": [32, 37, 46],
│ │ │ │ │ "999999999": 32,
│ │ │ │ │ @@ -4635,14 +4651,15 @@
│ │ │ │ │ "axi": [11, 16, 18, 19, 20, 22, 24, 30, 37, 38, 39, 40, 41, 42, 46, 48, 51, 52, 55],
│ │ │ │ │ "axisarrai": 5,
│ │ │ │ │ "axisgrid": 14,
│ │ │ │ │ "ayrton": 55,
│ │ │ │ │ "azur": 55,
│ │ │ │ │ "b": [3, 19, 25, 36, 37, 38, 39, 41, 42, 44, 45, 48, 49, 50, 51, 52, 53, 55],
│ │ │ │ │ "b2": [37, 55],
│ │ │ │ │ + "b8dd": 46,
│ │ │ │ │ "ba": 55,
│ │ │ │ │ "back": [1, 8, 16, 19, 20, 26, 30, 31, 33, 37, 38, 39, 40, 41, 42, 44, 46, 49, 50, 52, 55],
│ │ │ │ │ "backend": [1, 5, 6, 16, 24, 29, 30, 31, 33, 34, 38, 39, 44, 46, 54, 55],
│ │ │ │ │ "backend_agg": 6,
│ │ │ │ │ "backend_arrai": 27,
│ │ │ │ │ "backend_bas": 6,
│ │ │ │ │ "backend_kwarg": [27, 46, 55],
│ │ │ │ │ @@ -4679,15 +4696,14 @@
│ │ │ │ │ "baudouin": 55,
│ │ │ │ │ "bauer": 55,
│ │ │ │ │ "baumgartn": 55,
│ │ │ │ │ "bayesian": [5, 34],
│ │ │ │ │ "baz": [19, 36, 44],
│ │ │ │ │ "bbox_extra_artist": 6,
│ │ │ │ │ "bbox_inch": 6,
│ │ │ │ │ - "be9d": 46,
│ │ │ │ │ "bean": 55,
│ │ │ │ │ "becam": [34, 55],
│ │ │ │ │ "becaus": [3, 7, 8, 19, 24, 26, 27, 30, 33, 34, 37, 38, 39, 41, 42, 44, 46, 48, 49, 50, 51, 52, 55],
│ │ │ │ │ "becom": [3, 16, 20, 31, 42, 46, 49, 55],
│ │ │ │ │ "bednar": 55,
│ │ │ │ │ "been": [3, 8, 19, 24, 28, 30, 34, 37, 38, 41, 42, 46, 48, 49, 50, 55],
│ │ │ │ │ "beer": 55,
│ │ │ │ │ @@ -4846,16 +4862,16 @@
│ │ │ │ │ "byte": [24, 46, 55],
│ │ │ │ │ "bytes_": 55,
│ │ │ │ │ "bytes_io": 6,
│ │ │ │ │ "bytesbytescodec": 46,
│ │ │ │ │ "bytesio": 6,
│ │ │ │ │ "bytestr": 55,
│ │ │ │ │ "bzip2": 46,
│ │ │ │ │ - "b\u017c\u0137": 52,
│ │ │ │ │ "c": [3, 5, 7, 13, 16, 18, 19, 24, 29, 36, 37, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 54, 55],
│ │ │ │ │ + "c1ff047f": 46,
│ │ │ │ │ "ca": [44, 46],
│ │ │ │ │ "cabl": 55,
│ │ │ │ │ "cach": [6, 7, 8, 9, 10, 11, 12, 13, 26, 27, 30, 33, 34, 55],
│ │ │ │ │ "cache_dir": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33],
│ │ │ │ │ "cachedir": 3,
│ │ │ │ │ "cachingfilemanag": [27, 55],
│ │ │ │ │ "calcul": [5, 9, 12, 15, 16, 37, 38, 42, 49, 51, 53, 55],
│ │ │ │ │ @@ -5278,15 +5294,16 @@
│ │ │ │ │ "customari": 19,
│ │ │ │ │ "customis": 52,
│ │ │ │ │ "customiz": 19,
│ │ │ │ │ "cut": [32, 41, 55],
│ │ │ │ │ "cycl": [3, 14, 39, 55],
│ │ │ │ │ "cyordereddict": 55,
│ │ │ │ │ "cython": 29,
│ │ │ │ │ - "d": [3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 19, 20, 26, 27, 28, 30, 32, 33, 34, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 53, 54, 55],
│ │ │ │ │ + "c\u013a\u017c\u00bd\u00b3": 52,
│ │ │ │ │ + "d": [3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 19, 20, 26, 27, 28, 30, 32, 33, 34, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 52, 53, 54, 55],
│ │ │ │ │ "d2": 7,
│ │ │ │ │ "d8990": 55,
│ │ │ │ │ "d_ylog": 49,
│ │ │ │ │ "da": [10, 25, 28, 30, 36, 37, 38, 41, 44, 45, 46, 49, 50, 51, 54, 55],
│ │ │ │ │ "da_cub": 46,
│ │ │ │ │ "da_dt64": 45,
│ │ │ │ │ "da_nl": 54,
│ │ │ │ │ @@ -5966,15 +5983,15 @@
│ │ │ │ │ "flavor": 3,
│ │ │ │ │ "fleischmann": 55,
│ │ │ │ │ "fletcher32": 46,
│ │ │ │ │ "flexibl": [8, 16, 30, 31, 40, 41, 44, 45, 46, 49, 55],
│ │ │ │ │ "flip": 55,
│ │ │ │ │ "float": [8, 16, 26, 32, 36, 37, 38, 41, 46, 51, 55],
│ │ │ │ │ "float16": [52, 55],
│ │ │ │ │ - "float32": [3, 46, 52, 55],
│ │ │ │ │ + "float32": [3, 46, 55],
│ │ │ │ │ "float64": [8, 14, 16, 19, 25, 27, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 55],
│ │ │ │ │ "float6412": 14,
│ │ │ │ │ "float64nan": 14,
│ │ │ │ │ "float_to_top": 55,
│ │ │ │ │ "floor": [22, 32, 53, 54, 55],
│ │ │ │ │ "florian": 55,
│ │ │ │ │ "flow": [21, 39, 55],
│ │ │ │ │ @@ -7430,14 +7447,15 @@
│ │ │ │ │ "hypothesi": [3, 5, 18, 55],
│ │ │ │ │ "hyrax": 46,
│ │ │ │ │ "h\u00e4fner": 55,
│ │ │ │ │ "h\u00f6chenberg": 55,
│ │ │ │ │ "h\u00f6rsch": 55,
│ │ │ │ │ "h\u00f8xbro": 55,
│ │ │ │ │ "i": [1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 17, 18, 19, 20, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55],
│ │ │ │ │ + "i2": 52,
│ │ │ │ │ "ia": [14, 39, 44],
│ │ │ │ │ "ian": 55,
│ │ │ │ │ "ical": 4,
│ │ │ │ │ "idea": [3, 19, 24, 31, 34, 37, 38, 41, 45, 46, 52, 55],
│ │ │ │ │ "ideal": [3, 24, 27, 38],
│ │ │ │ │ "ident": [16, 19, 24, 38, 40, 41, 42, 55],
│ │ │ │ │ "identif": 55,
│ │ │ │ │ @@ -7551,21 +7569,21 @@
│ │ │ │ │ "instanti": [27, 55],
│ │ │ │ │ "instead": [3, 6, 8, 12, 19, 20, 24, 29, 30, 31, 32, 34, 36, 37, 38, 39, 40, 41, 42, 44, 46, 48, 49, 51, 52, 55],
│ │ │ │ │ "institut": 35,
│ │ │ │ │ "instruct": [3, 46, 55],
│ │ │ │ │ "instrument": 39,
│ │ │ │ │ "insuffici": 37,
│ │ │ │ │ "int": [24, 33, 37, 51, 52, 55],
│ │ │ │ │ - "int16": [3, 46],
│ │ │ │ │ + "int16": [3, 46, 52],
│ │ │ │ │ "int32": [3, 55],
│ │ │ │ │ "int64": [3, 14, 19, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55],
│ │ │ │ │ "int641": 14,
│ │ │ │ │ "int64_max": 32,
│ │ │ │ │ "int64_min": 32,
│ │ │ │ │ - "int8": [3, 52],
│ │ │ │ │ + "int8": 3,
│ │ │ │ │ "intact": 55,
│ │ │ │ │ "intarr": 37,
│ │ │ │ │ "integ": [19, 20, 24, 27, 30, 32, 37, 39, 44, 46, 52, 55],
│ │ │ │ │ "integr": [5, 16, 18, 20, 27, 34, 37, 38, 40, 46, 49, 51, 53, 55],
│ │ │ │ │ "intend": [3, 19, 25, 29, 30, 39, 42, 55],
│ │ │ │ │ "intens": 46,
│ │ │ │ │ "intent": [26, 40, 42],
│ │ │ │ │ @@ -7669,15 +7687,14 @@
│ │ │ │ │ "jelmer": 55,
│ │ │ │ │ "jen": 55,
│ │ │ │ │ "jendrik": 55,
│ │ │ │ │ "jenssss": 55,
│ │ │ │ │ "jeremi": 55,
│ │ │ │ │ "jessica": 55,
│ │ │ │ │ "jetter": 55,
│ │ │ │ │ - "jh\u017e\u0167\u015f": 52,
│ │ │ │ │ "ji": 55,
│ │ │ │ │ "jimenez": 55,
│ │ │ │ │ "jimmi": 55,
│ │ │ │ │ "jinja2": 18,
│ │ │ │ │ "jja": [11, 53, 55],
│ │ │ │ │ "jk": 24,
│ │ │ │ │ "jl": 5,
│ │ │ │ │ @@ -7716,15 +7733,14 @@
│ │ │ │ │ "junip": 55,
│ │ │ │ │ "jupyt": 55,
│ │ │ │ │ "jupyterbook": 46,
│ │ │ │ │ "just": [3, 7, 11, 19, 20, 24, 25, 28, 30, 34, 39, 40, 42, 44, 46, 49, 50, 51, 52, 54, 55],
│ │ │ │ │ "justu": 55,
│ │ │ │ │ "jwen": 55,
│ │ │ │ │ "j\u00f6rdene": 55,
│ │ │ │ │ - "j\u017e\u015f": 52,
│ │ │ │ │ "k": [3, 7, 13, 20, 24, 28, 45, 55],
│ │ │ │ │ "kai": 55,
│ │ │ │ │ "kanma": 55,
│ │ │ │ │ "karasiak": 55,
│ │ │ │ │ "karel": 55,
│ │ │ │ │ "karl": 55,
│ │ │ │ │ "katelyn": 55,
│ │ │ │ │ @@ -8227,15 +8243,14 @@
│ │ │ │ │ "name_dict": 49,
│ │ │ │ │ "namedarrai": [5, 18, 24, 55],
│ │ │ │ │ "nameerror": [6, 7, 8, 9, 11, 12, 13, 25, 40, 42, 44, 45, 46, 48, 49, 50, 52],
│ │ │ │ │ "nameresolutionerror": [6, 7, 8, 9, 10, 11, 12, 13, 30, 33, 42, 44, 45, 46, 49, 50],
│ │ │ │ │ "namespac": [16, 24, 26, 52, 55],
│ │ │ │ │ "nan": [14, 16, 18, 22, 36, 37, 39, 41, 42, 44, 46, 48, 49, 50, 51, 52, 53, 54, 55],
│ │ │ │ │ "nanfirst": 24,
│ │ │ │ │ - "nanj": 52,
│ │ │ │ │ "nanmean": [52, 55],
│ │ │ │ │ "nanmedian": 55,
│ │ │ │ │ "nanosecond": [32, 54, 55],
│ │ │ │ │ "nanquantil": 55,
│ │ │ │ │ "nansum": 37,
│ │ │ │ │ "narr": 55,
│ │ │ │ │ "narrai": 16,
│ │ │ │ │ @@ -8325,15 +8340,14 @@
│ │ │ │ │ "nicla": 55,
│ │ │ │ │ "nicola": [35, 55],
│ │ │ │ │ "nielsen": 55,
│ │ │ │ │ "niggl": 55,
│ │ │ │ │ "nightli": 55,
│ │ │ │ │ "nijhara": 55,
│ │ │ │ │ "nikla": 55,
│ │ │ │ │ - "nil": 52,
│ │ │ │ │ "nirupam": 55,
│ │ │ │ │ "nishtha": 55,
│ │ │ │ │ "nishtha981": 55,
│ │ │ │ │ "no_conflict": 55,
│ │ │ │ │ "noaa": [38, 55],
│ │ │ │ │ "noah": 55,
│ │ │ │ │ "nodatav": 55,
│ │ │ │ │ @@ -8389,15 +8403,14 @@
│ │ │ │ │ "numfocu": 55,
│ │ │ │ │ "numpi": [1, 3, 7, 8, 9, 10, 11, 12, 14, 16, 18, 19, 20, 22, 24, 25, 27, 28, 29, 30, 31, 32, 34, 36, 37, 38, 39, 44, 45, 46, 48, 49, 50, 51, 52, 53, 55],
│ │ │ │ │ "numpy_experimental_array_funct": 55,
│ │ │ │ │ "numpyindexingadapt": 55,
│ │ │ │ │ "nx": 41,
│ │ │ │ │ "nxarrai": 5,
│ │ │ │ │ "ny": 41,
│ │ │ │ │ - "n\u00fe\u00fa\u00f6\u017c": 52,
│ │ │ │ │ "o": [18, 24, 27, 33, 45, 48, 49, 55],
│ │ │ │ │ "obei": 25,
│ │ │ │ │ "obj": [6, 22, 24, 33, 38],
│ │ │ │ │ "object": [3, 5, 6, 8, 9, 10, 11, 12, 13, 14, 16, 18, 19, 20, 22, 24, 25, 26, 27, 28, 31, 32, 33, 34, 36, 37, 38, 39, 42, 44, 45, 46, 48, 50, 51, 52, 53, 54, 55],
│ │ │ │ │ "oblivi": 55,
│ │ │ │ │ "observ": [5, 14, 31, 34, 37, 42, 48, 49, 55],
│ │ │ │ │ "obsolet": 55,
│ │ │ │ │ @@ -10736,28 +10749,32 @@
│ │ │ │ │ "typeerror": [27, 46, 55],
│ │ │ │ │ "typehint": 55,
│ │ │ │ │ "typic": [3, 7, 14, 16, 30, 34, 38, 46, 51],
│ │ │ │ │ "typing_extens": 55,
│ │ │ │ │ "typo": [3, 23, 55],
│ │ │ │ │ "tyre": 55,
│ │ │ │ │ "u": [3, 8, 12, 19, 21, 24, 26, 31, 32, 33, 34, 42, 44, 45, 46, 49, 50, 53, 54, 55],
│ │ │ │ │ - "u0008e3dc\u00e7\u00fe\u00eb": 52,
│ │ │ │ │ - "u000caea3": 52,
│ │ │ │ │ - "u000e0": 52,
│ │ │ │ │ + "u0001b807": 52,
│ │ │ │ │ + "u0001bd3d": 52,
│ │ │ │ │ + "u00065b43\u00fc\u00b9": 52,
│ │ │ │ │ + "u000a0ddf": 52,
│ │ │ │ │ + "u000ed619a\ud81e\udeddvk": 52,
│ │ │ │ │ + "u000fda5": 52,
│ │ │ │ │ + "u0010ba70vw": 52,
│ │ │ │ │ "u1": [19, 36, 37, 39, 41, 44, 45, 46, 48, 50, 55],
│ │ │ │ │ "u2": [14, 37, 39, 44],
│ │ │ │ │ "u3": [53, 54, 55],
│ │ │ │ │ "u4": 55,
│ │ │ │ │ "u5": [19, 49],
│ │ │ │ │ "u6": [39, 42],
│ │ │ │ │ "u7": [37, 39],
│ │ │ │ │ "u8": [37, 39],
│ │ │ │ │ "ubiqu": 16,
│ │ │ │ │ "ufunc": [1, 8, 24, 37, 38, 40, 55],
│ │ │ │ │ - "uint32": 52,
│ │ │ │ │ + "uint64": 52,
│ │ │ │ │ "uint64_max": 32,
│ │ │ │ │ "uint8": [40, 46, 52],
│ │ │ │ │ "uk": [6, 16, 46],
│ │ │ │ │ "ulrich": 55,
│ │ │ │ │ "ultim": 24,
│ │ │ │ │ "unabl": [16, 38],
│ │ │ │ │ "unaddress": 55,
│ │ │ │ │ @@ -10912,15 +10929,14 @@
│ │ │ │ │ "variat": 52,
│ │ │ │ │ "varieti": [24, 34],
│ │ │ │ │ "variou": [3, 5, 24, 31, 34, 39, 40, 42, 44, 55],
│ │ │ │ │ "varnam": 22,
│ │ │ │ │ "vast": [24, 46],
│ │ │ │ │ "vastli": 55,
│ │ │ │ │ "vazquez": 55,
│ │ │ │ │ - "vb\u0119\u017c\u017f": 52,
│ │ │ │ │ "ve": [3, 8, 21, 34, 38, 46, 51, 53],
│ │ │ │ │ "vecko": 55,
│ │ │ │ │ "vector": [5, 20, 24, 27, 37, 40, 49, 53, 55],
│ │ │ │ │ "vector_norm": 37,
│ │ │ │ │ "vectoris": 55,
│ │ │ │ │ "vectorizedindex": 27,
│ │ │ │ │ "veenstra": 55,
│ │ │ │ │ @@ -10968,15 +10984,14 @@
│ │ │ │ │ "voltag": 42,
│ │ │ │ │ "volum": [5, 16, 55],
│ │ │ │ │ "volunt": 20,
│ │ │ │ │ "voluntari": 55,
│ │ │ │ │ "vrt": 55,
│ │ │ │ │ "vtk": 5,
│ │ │ │ │ "vtransform": 7,
│ │ │ │ │ - "v\u00e0u": 52,
│ │ │ │ │ "w": [7, 32, 33, 42, 46, 49, 50],
│ │ │ │ │ "wa": [3, 6, 7, 8, 9, 10, 11, 12, 13, 16, 20, 24, 30, 31, 33, 34, 36, 39, 40, 42, 46, 48, 49, 52, 53, 54, 55],
│ │ │ │ │ "wai": [3, 7, 8, 12, 16, 18, 19, 21, 24, 26, 30, 31, 34, 38, 39, 40, 42, 44, 45, 46, 48, 51, 52, 55],
│ │ │ │ │ "wait": 3,
│ │ │ │ │ "wale": 55,
│ │ │ │ │ "walk": 40,
│ │ │ │ │ "wall": 38,
│ │ │ │ │ @@ -11057,14 +11072,15 @@
│ │ │ │ │ "window_dim": 37,
│ │ │ │ │ "window_typ": 37,
│ │ │ │ │ "windspharm": 5,
│ │ │ │ │ "wise": [36, 55],
│ │ │ │ │ "wish": [19, 29, 36, 42, 52],
│ │ │ │ │ "within": [3, 8, 19, 24, 27, 32, 37, 38, 39, 40, 42, 46, 49, 51, 55],
│ │ │ │ │ "without": [3, 7, 16, 19, 25, 28, 32, 36, 37, 38, 39, 41, 42, 44, 45, 46, 49, 50, 51, 55],
│ │ │ │ │ + "wj": 52,
│ │ │ │ │ "wkt": 55,
│ │ │ │ │ "wn": 39,
│ │ │ │ │ "wolfram": 55,
│ │ │ │ │ "wolsza": 55,
│ │ │ │ │ "won": [3, 28, 39, 40, 55],
│ │ │ │ │ "word": [40, 42, 51, 54],
│ │ │ │ │ "work": [3, 5, 15, 16, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 30, 32, 34, 36, 37, 38, 39, 41, 42, 44, 45, 46, 49, 51, 52, 53, 54, 55],
│ │ │ │ │ @@ -11090,54 +11106,45 @@
│ │ │ │ │ "write_inherited_coord": 55,
│ │ │ │ │ "written": [3, 18, 24, 29, 37, 38, 39, 46, 52, 55],
│ │ │ │ │ "wrong": [3, 32, 55],
│ │ │ │ │ "wrongli": 55,
│ │ │ │ │ "wrote": 36,
│ │ │ │ │ "www": [7, 18],
│ │ │ │ │ "x": [3, 5, 7, 8, 12, 13, 14, 18, 19, 20, 24, 25, 27, 28, 30, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 48, 50, 51, 52, 54, 55],
│ │ │ │ │ - "x07": 52,
│ │ │ │ │ - "x08": 52,
│ │ │ │ │ + "x02": 52,
│ │ │ │ │ "x0pahjgysxk": 18,
│ │ │ │ │ "x1": 36,
│ │ │ │ │ - "x17": 52,
│ │ │ │ │ - "x1e": 52,
│ │ │ │ │ "x2": [36, 40],
│ │ │ │ │ "x27": 14,
│ │ │ │ │ "x64": 55,
│ │ │ │ │ - "x81": 52,
│ │ │ │ │ - "x86\u00f8": 52,
│ │ │ │ │ - "x94\u00e3": 52,
│ │ │ │ │ + "x92": 52,
│ │ │ │ │ "x_and_i": 37,
│ │ │ │ │ "x_bin": 41,
│ │ │ │ │ "x_bin_label": 41,
│ │ │ │ │ "x_chunk": 24,
│ │ │ │ │ "x_coars": 50,
│ │ │ │ │ "x_fine": 50,
│ │ │ │ │ "x_matrix_rank": 37,
│ │ │ │ │ "x_onli": 37,
│ │ │ │ │ "x_rank": 38,
│ │ │ │ │ "x_singular_valu": 37,
│ │ │ │ │ "x_win": 37,
│ │ │ │ │ - "xa4": 52,
│ │ │ │ │ - "xaf": 52,
│ │ │ │ │ + "xad": 52,
│ │ │ │ │ "xalpha": 37,
│ │ │ │ │ "xalpha1": 37,
│ │ │ │ │ "xarrai": [1, 4, 6, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 22, 24, 25, 27, 28, 30, 32, 33, 34, 35, 36, 37, 39, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55],
│ │ │ │ │ "xarray_einstat": 5,
│ │ │ │ │ "xarray_extra": [5, 46],
│ │ │ │ │ "xarray_obj": 26,
│ │ │ │ │ "xarray_object": 8,
│ │ │ │ │ "xarray_v0_8_0": 16,
│ │ │ │ │ - "xb1": 52,
│ │ │ │ │ "xbatcher": 5,
│ │ │ │ │ "xbpch": 5,
│ │ │ │ │ "xc": [12, 37, 46],
│ │ │ │ │ "xc0": 37,
│ │ │ │ │ - "xc6": 52,
│ │ │ │ │ - "xcb": 52,
│ │ │ │ │ "xcdat": [5, 55],
│ │ │ │ │ "xclim": 5,
│ │ │ │ │ "xd": 38,
│ │ │ │ │ "xdev": 35,
│ │ │ │ │ "xdist": [3, 18, 55],
│ │ │ │ │ "xenomorph": 42,
│ │ │ │ │ "xeof": 5,
│ │ │ │ │ @@ -11249,29 +11256,48 @@
│ │ │ │ │ "zo_rho": 7,
│ │ │ │ │ "zonal": [5, 38, 49],
│ │ │ │ │ "zone": 32,
│ │ │ │ │ "zoom": 4,
│ │ │ │ │ "zstd": 46,
│ │ │ │ │ "zuckerberg": 55,
│ │ │ │ │ "z\u00fchlke": 55,
│ │ │ │ │ - "\u00f0\u0161\u017e\u0153": 52,
│ │ │ │ │ - "\u010f": 52,
│ │ │ │ │ - "\u0115": 52,
│ │ │ │ │ - "\u0146\u017e\u0159\u0171": 52,
│ │ │ │ │ - "\u014b\u010b\u017c\u017e\u00fb": 52,
│ │ │ │ │ - "\u0155\u011d\u011d\u0137\u014f": 52,
│ │ │ │ │ - "\u015f": 52,
│ │ │ │ │ + "\u00b5\u010f\u00e9\u00e8": 52,
│ │ │ │ │ + "\u00e0": 52,
│ │ │ │ │ + "\u00e4": 52,
│ │ │ │ │ + "\u00e4pd\u015b": 52,
│ │ │ │ │ + "\u00e4\u0144\u017ei\u00fa": 52,
│ │ │ │ │ + "\u00ec\u0144": 52,
│ │ │ │ │ + "\u00ef": 52,
│ │ │ │ │ + "\u00f0\u00e2\u017e\u017cl": 52,
│ │ │ │ │ + "\u00f4": 52,
│ │ │ │ │ + "\u00f5\u017ff\u00e1i\u0307": 52,
│ │ │ │ │ + "\u00f80": 52,
│ │ │ │ │ + "\u00f8\u013cfw\u017c": 52,
│ │ │ │ │ + "\u00fc": 52,
│ │ │ │ │ + "\u0109\u0119\u017e\u017f\u012d": 52,
│ │ │ │ │ + "\u010b\u00b5": 52,
│ │ │ │ │ + "\u0111\u00b5\u0135": 52,
│ │ │ │ │ + "\u0115i\u0307tg\u00f0": 52,
│ │ │ │ │ + "\u0127\u0159\u0155": 52,
│ │ │ │ │ + "\u012b\u017e\u00e3": 52,
│ │ │ │ │ + "\u012d\u0105\u00e3\u0115": 52,
│ │ │ │ │ + "\u012f\u00ee0e": 52,
│ │ │ │ │ + "\u013ah": 52,
│ │ │ │ │ + "\u013c\u0119\u016b\u00e4\u0151": 52,
│ │ │ │ │ + "\u0144": 52,
│ │ │ │ │ + "\u0151": 52,
│ │ │ │ │ + "\u0153\u0117": 52,
│ │ │ │ │ + "\u015b": 52,
│ │ │ │ │ + "\u015d\u017fu\u0151\u017e": 52,
│ │ │ │ │ + "\u0163e": 52,
│ │ │ │ │ "\u017c": 52,
│ │ │ │ │ - "\u017cn\u00f4\u015f\u0146": 52,
│ │ │ │ │ - "\u017c\u0161\u013a\u017c": 52,
│ │ │ │ │ - "\u017c\u017c\u017e\u00bc\u0103": 52,
│ │ │ │ │ - "\u017c\u017e\u00e0\u00ec": 52,
│ │ │ │ │ - "\u017e": 52,
│ │ │ │ │ - "\u017fq\u00fc\u00bc": 52,
│ │ │ │ │ - "\u017f\u00bc": 52
│ │ │ │ │ + "\u017c\u0161\u017f": 52,
│ │ │ │ │ + "\u017eo": 52,
│ │ │ │ │ + "\u017e\u00e1\u00f4z\u00ee": 52,
│ │ │ │ │ + "\u017e\u0161\u017f\u017e\u00ee": 52
│ │ │ │ │ },
│ │ │ │ │ "titles": ["xarray", "API reference", "<no title>", "Contributing to xarray", "Developers meeting", "Xarray related projects", "GRIB Data Example", "ROMS Ocean Model Example", "Applying unvectorized functions with apply_ufunc
", "Compare weighted and unweighted mean temperature", "Blank template", "Calculating Seasonal Averages from Time Series of Monthly Means", "Working with Multidimensional Coordinates", "Visualization Gallery", "Toy weather data", "Gallery", "Frequently Asked Questions", "Getting Started", "Installation", "Quick overview", "Overview: Why xarray?", "Getting Help", "How do I \u2026", "Xarray documentation", "Alternative chunked array types", "Integrating with duck arrays", "Extending xarray using accessors", "How to add a new backend", "How to create a custom index", "Xarray Internals", "Internal Design", "Interoperability of Xarray", "Time Coding", "Zarr Encoding Specification", "Development roadmap", "Tutorials and Videos", "Combining data", "Computation", "Parallel Computing with Dask", "Data Structures", "Working with numpy-like arrays", "GroupBy: Group and Bin Data", "Hierarchical data", "User Guide", "Indexing and selecting data", "Interpolating data", "Reading and writing files", "Configuration", "Working with pandas", "Plotting", "Reshaping and reorganizing data", "Terminology", "Testing your code", "Time series data", "Weather and climate data", "What\u2019s New"],
│ │ │ │ │ "titleterms": {
│ │ │ │ │ "": [13, 16, 55],
│ │ │ │ │ "0": 55,
│ │ │ │ │ "01": 55,
│ │ │ │ │ "02": 55,
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/computation.html
│ │ │ │ @@ -934,16 +934,16 @@
│ │ │ │ <xarray.Dataset> Size: 2kB
│ │ │ │ Dimensions: (param: 10, cov_i: 10, cov_j: 10)
│ │ │ │ Coordinates:
│ │ │ │ * param (param) <U7 280B 'a0' 'xc0' ... 'xalpha1' 'yalpha1'
│ │ │ │ * cov_i (cov_i) <U7 280B 'a0' 'xc0' ... 'xalpha1' 'yalpha1'
│ │ │ │ * cov_j (cov_j) <U7 280B 'a0' 'xc0' ... 'xalpha1' 'yalpha1'
│ │ │ │ Data variables:
│ │ │ │ - curvefit_coefficients (param) float64 80B -0.659 4.858 ... 2.066 1.329
│ │ │ │ - curvefit_covariance (cov_i, cov_j) float64 800B 5.662e+11 ... 6.911e-05
│ │ │ │ + curvefit_coefficients (param) float64 80B 3.0 1.004 1.003 ... 1.007 1.008
│ │ │ │ + curvefit_covariance (cov_i, cov_j) float64 800B 3.362e-05 ... 2.125e-05
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
Note
│ │ │ │
This method replicates the behavior of scipy.optimize.curve_fit()
.
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -775,16 +775,16 @@
│ │ │ │ │ Size: 2kB
│ │ │ │ │ Dimensions: (param: 10, cov_i: 10, cov_j: 10)
│ │ │ │ │ Coordinates:
│ │ │ │ │ * param (param) ds.pipe(func) ) instead of
│ │ │ │ simply calling it (e.g., func(ds)
). This allows you to write pipelines for
│ │ │ │ transforming your data (using “method chaining”) instead of writing hard to
│ │ │ │ follow nested function calls:
│ │ │ │ # these lines are equivalent, but with pipe we can make the logic flow
│ │ │ │ # entirely from left to right
│ │ │ │ In [64]: plt . plot (( 2 * ds . temperature . sel ( loc = 0 )) . mean ( "instrument" ))
│ │ │ │ -Out[64]: [<matplotlib.lines.Line2D at 0xffff20f17250>]
│ │ │ │ +Out[64]: [<matplotlib.lines.Line2D at 0xffff5e193250>]
│ │ │ │
│ │ │ │ In [65]: ( ds . temperature . sel ( loc = 0 ) . pipe ( lambda x : 2 * x ) . mean ( "instrument" ) . pipe ( plt . plot ))
│ │ │ │ -Out[65]: [<matplotlib.lines.Line2D at 0xffff20f16fd0>]
│ │ │ │ +Out[65]: [<matplotlib.lines.Line2D at 0xffff5e192fd0>]
│ │ │ │
│ │ │ │
│ │ │ │ Both pipe
and assign
replicate the pandas methods of the same names
│ │ │ │ (DataFrame.pipe
and
│ │ │ │ DataFrame.assign
).
│ │ │ │ With xarray, there is no performance penalty for creating new datasets, even if
│ │ │ │ variables are lazily loaded from a file on disk. Creating new objects instead
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -585,19 +585,19 @@
│ │ │ │ │ There is also the pipe() method that allows you to use a method call with an
│ │ │ │ │ external function (e.g., ds.pipe(func)) instead of simply calling it (e.g.,
│ │ │ │ │ func(ds)). This allows you to write pipelines for transforming your data (using
│ │ │ │ │ “method chaining”) instead of writing hard to follow nested function calls:
│ │ │ │ │ # these lines are equivalent, but with pipe we can make the logic flow
│ │ │ │ │ # entirely from left to right
│ │ │ │ │ In [64]: plt.plot((2 * ds.temperature.sel(loc=0)).mean("instrument"))
│ │ │ │ │ -Out[64]: []
│ │ │ │ │ +Out[64]: []
│ │ │ │ │
│ │ │ │ │ In [65]: (ds.temperature.sel(loc=0).pipe(lambda x: 2 * x).mean
│ │ │ │ │ ("instrument").pipe(plt.plot))
│ │ │ │ │ -Out[65]: []
│ │ │ │ │ +Out[65]: []
│ │ │ │ │ Both pipe and assign replicate the pandas methods of the same names
│ │ │ │ │ (_D_a_t_a_F_r_a_m_e_._p_i_p_e and _D_a_t_a_F_r_a_m_e_._a_s_s_i_g_n).
│ │ │ │ │ With xarray, there is no performance penalty for creating new datasets, even if
│ │ │ │ │ variables are lazily loaded from a file on disk. Creating new objects instead
│ │ │ │ │ of mutating existing objects often results in easier to understand code, so we
│ │ │ │ │ encourage using this approach.
│ │ │ │ │ ******** RReennaammiinngg vvaarriiaabblleess_?¶ ********
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/hierarchical-data.html
│ │ │ │ @@ -983,15 +983,15 @@
│ │ │ │ If you were a previous user of the prototype xarray-contrib/datatree package, this is different from what you’re used to!
│ │ │ │ In that package the data model was that the data stored in each node actually was completely unrelated. The data model is now slightly stricter.
│ │ │ │ This allows us to provide features like Coordinate Inheritance .
│ │ │ │
│ │ │ │ To demonstrate, let’s first generate some example datasets which are not aligned with one another:
│ │ │ │ # (drop the attributes just to make the printed representation shorter)
│ │ │ │ In [89]: ds = xr . tutorial . open_dataset ( "air_temperature" ) . drop_attrs ()
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff1f9e6990>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5cc22e90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [90]: ds_daily = ds . resample ( time = "D" ) . mean ( "time" )
│ │ │ │ KeyError: "No variable named 'time'. Variables on the dataset include ['foo', 'x', 'letters']"
│ │ │ │
│ │ │ │
│ │ │ │ In [91]: ds_weekly = ds . resample ( time = "W" ) . mean ( "time" )
│ │ │ │ @@ -1055,15 +1055,15 @@
│ │ │ │ └── Group: /b/B
│ │ │ │
│ │ │ │
│ │ │ │ Now we have a valid DataTree
structure which contains all the data at each different time frequency, stored in a separate group.
│ │ │ │ This is a useful way to organise our data because we can still operate on all the groups at once.
│ │ │ │ For example we can extract all three timeseries at a specific lat-lon location:
│ │ │ │ In [100]: dt . sel ( lat = 75 , lon = 300 )
│ │ │ │ -ValueError: Dimensions {'lon', 'lat'} do not exist. Expected one or more of set()
│ │ │ │ +ValueError: Dimensions {'lat', 'lon'} do not exist. Expected one or more of set()
│ │ │ │
│ │ │ │
│ │ │ │ or compute the standard deviation of each timeseries to find out how it varies with sampling frequency:
│ │ │ │ In [101]: dt . std ( dim = "time" )
│ │ │ │ ValueError: Dimension(s) 'time' do not exist. Expected one or more of set()
│ │ │ │
│ │ │ │
│ │ │ │ @@ -1129,15 +1129,15 @@
│ │ │ │ In [107]: print ( dt [ "/daily" ])
│ │ │ │ KeyError: 'Could not find node at /daily'
│ │ │ │
│ │ │ │
│ │ │ │ This helps to differentiate which variables are defined on the datatree node that you are currently looking at, and which were defined somewhere above it.
│ │ │ │ We can also still perform all the same operations on the whole tree:
│ │ │ │ In [108]: dt . sel ( lat = [ 75 ], lon = [ 300 ])
│ │ │ │ -ValueError: Dimensions {'lon', 'lat'} do not exist. Expected one or more of set()
│ │ │ │ +ValueError: Dimensions {'lat', 'lon'} do not exist. Expected one or more of set()
│ │ │ │
│ │ │ │
│ │ │ │ In [109]: dt . std ( dim = "time" )
│ │ │ │ ValueError: Dimension(s) 'time' do not exist. Expected one or more of set()
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -871,15 +871,15 @@
│ │ │ │ │ To demonstrate, let’s first generate some example datasets which are not
│ │ │ │ │ aligned with one another:
│ │ │ │ │ # (drop the attributes just to make the printed representation shorter)
│ │ │ │ │ In [89]: ds = xr.tutorial.open_dataset("air_temperature").drop_attrs()
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5cc22e90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [90]: ds_daily = ds.resample(time="D").mean("time")
│ │ │ │ │ KeyError: "No variable named 'time'. Variables on the dataset include ['foo',
│ │ │ │ │ 'x', 'letters']"
│ │ │ │ │
│ │ │ │ │ @@ -947,15 +947,15 @@
│ │ │ │ │ └── Group: /b/B
│ │ │ │ │ Now we have a valid DataTree structure which contains all the data at each
│ │ │ │ │ different time frequency, stored in a separate group.
│ │ │ │ │ This is a useful way to organise our data because we can still operate on all
│ │ │ │ │ the groups at once. For example we can extract all three timeseries at a
│ │ │ │ │ specific lat-lon location:
│ │ │ │ │ In [100]: dt.sel(lat=75, lon=300)
│ │ │ │ │ -ValueError: Dimensions {'lon', 'lat'} do not exist. Expected one or more of set
│ │ │ │ │ +ValueError: Dimensions {'lat', 'lon'} do not exist. Expected one or more of set
│ │ │ │ │ ()
│ │ │ │ │ or compute the standard deviation of each timeseries to find out how it varies
│ │ │ │ │ with sampling frequency:
│ │ │ │ │ In [101]: dt.std(dim="time")
│ │ │ │ │ ValueError: Dimension(s) 'time' do not exist. Expected one or more of set()
│ │ │ │ │ ******** CCoooorrddiinnaattee IInnhheerriittaannccee_?¶ ********
│ │ │ │ │ Notice that in the trees we constructed above there is some redundancy - the
│ │ │ │ │ @@ -1019,15 +1019,15 @@
│ │ │ │ │ coordinates, but explicitly mark them as such:
│ │ │ │ │ In [107]: print(dt["/daily"])
│ │ │ │ │ KeyError: 'Could not find node at /daily'
│ │ │ │ │ This helps to differentiate which variables are defined on the datatree node
│ │ │ │ │ that you are currently looking at, and which were defined somewhere above it.
│ │ │ │ │ We can also still perform all the same operations on the whole tree:
│ │ │ │ │ In [108]: dt.sel(lat=[75], lon=[300])
│ │ │ │ │ -ValueError: Dimensions {'lon', 'lat'} do not exist. Expected one or more of set
│ │ │ │ │ +ValueError: Dimensions {'lat', 'lon'} do not exist. Expected one or more of set
│ │ │ │ │ ()
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [109]: dt.std(dim="time")
│ │ │ │ │ ValueError: Dimension(s) 'time' do not exist. Expected one or more of set()
│ │ │ │ │ _[_L_o_g_o_ _o_f_ _x_a_r_r_a_y_]
│ │ │ │ │ ************ _xx_aa_rr_rr_aa_yy ************
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/indexing.html
│ │ │ │ @@ -653,15 +653,15 @@
│ │ │ │ to a collection specified weather station latitudes and longitudes.
│ │ │ │ To trigger vectorized indexing behavior
│ │ │ │ you will need to provide the selection dimensions with a new
│ │ │ │ shared output dimension name. In the example below, the selections
│ │ │ │ of the closest latitude and longitude are renamed to an output
│ │ │ │ dimension named “points”:
│ │ │ │ In [52]: ds = xr . tutorial . open_dataset ( "air_temperature" )
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff1f9e6990>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5cc22c10>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ # Define target latitude and longitude (where weather stations might be)
│ │ │ │ In [53]: target_lon = xr . DataArray ([ 200 , 201 , 202 , 205 ], dims = "points" )
│ │ │ │
│ │ │ │ In [54]: target_lat = xr . DataArray ([ 31 , 41 , 42 , 42 ], dims = "points" )
│ │ │ │
│ │ │ │ @@ -697,15 +697,15 @@
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Assigning values with indexing
│ │ │ │ To select and assign values to a portion of a DataArray()
you
│ │ │ │ can use indexing with .loc
:
│ │ │ │ In [57]: ds = xr . tutorial . open_dataset ( "air_temperature" )
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff1f9e5a90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5cc21090>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ # add an empty 2D dataarray
│ │ │ │ In [58]: ds [ "empty" ] = xr . full_like ( ds . air . mean ( "time" ), fill_value = 0 )
│ │ │ │ AttributeError: 'Dataset' object has no attribute 'air'
│ │ │ │
│ │ │ │
│ │ │ │ @@ -869,15 +869,15 @@
│ │ │ │
│ │ │ │
│ │ │ │ You can also assign values to all variables of a Dataset
at once:
│ │ │ │ In [83]: ds_org = xr . tutorial . open_dataset ( "eraint_uvz" ) . isel (
│ │ │ │ ....: latitude = slice ( 56 , 59 ), longitude = slice ( 255 , 258 ), level = 0
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/eraint_uvz.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff1f9e5450>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/eraint_uvz.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5cc20550>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ # set all values to 0
│ │ │ │ In [84]: ds = xr . zeros_like ( ds_org )
│ │ │ │ NameError: name 'ds_org' is not defined
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -476,15 +476,15 @@
│ │ │ │ │ with a new shared output dimension name. In the example below, the selections
│ │ │ │ │ of the closest latitude and longitude are renamed to an output dimension named
│ │ │ │ │ “points”:
│ │ │ │ │ In [52]: ds = xr.tutorial.open_dataset("air_temperature")
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5cc22c10>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ # Define target latitude and longitude (where weather stations might be)
│ │ │ │ │ In [53]: target_lon = xr.DataArray([200, 201, 202, 205], dims="points")
│ │ │ │ │
│ │ │ │ │ In [54]: target_lat = xr.DataArray([31, 41, 42, 42], dims="points")
│ │ │ │ │ @@ -516,15 +516,15 @@
│ │ │ │ │ ********** AAssssiiggnniinngg vvaalluueess wwiitthh iinnddeexxiinngg_?¶ **********
│ │ │ │ │ To select and assign values to a portion of a DataArray() you can use indexing
│ │ │ │ │ with .loc :
│ │ │ │ │ In [57]: ds = xr.tutorial.open_dataset("air_temperature")
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5cc21090>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ # add an empty 2D dataarray
│ │ │ │ │ In [58]: ds["empty"] = xr.full_like(ds.air.mean("time"), fill_value=0)
│ │ │ │ │ AttributeError: 'Dataset' object has no attribute 'air'
│ │ │ │ │
│ │ │ │ │ @@ -678,15 +678,15 @@
│ │ │ │ │ In [83]: ds_org = xr.tutorial.open_dataset("eraint_uvz").isel(
│ │ │ │ │ ....: latitude=slice(56, 59), longitude=slice(255, 258), level=0
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/eraint_uvz.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5cc20550>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ # set all values to 0
│ │ │ │ │ In [84]: ds = xr.zeros_like(ds_org)
│ │ │ │ │ NameError: name 'ds_org' is not defined
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/interpolation.html
│ │ │ │ @@ -237,24 +237,24 @@
│ │ │ │ ....: np . sin ( np . linspace ( 0 , 2 * np . pi , 10 )),
│ │ │ │ ....: dims = "x" ,
│ │ │ │ ....: coords = { "x" : np . linspace ( 0 , 1 , 10 )},
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [17]: da . plot . line ( "o" , label = "original" )
│ │ │ │ -Out[17]: [<matplotlib.lines.Line2D at 0xffff5a461a90>]
│ │ │ │ +Out[17]: [<matplotlib.lines.Line2D at 0xffff69839a90>]
│ │ │ │
│ │ │ │ In [18]: da . interp ( x = np . linspace ( 0 , 1 , 100 )) . plot . line ( label = "linear (default)" )
│ │ │ │ -Out[18]: [<matplotlib.lines.Line2D at 0xffff5a4616d0>]
│ │ │ │ +Out[18]: [<matplotlib.lines.Line2D at 0xffff698396d0>]
│ │ │ │
│ │ │ │ In [19]: da . interp ( x = np . linspace ( 0 , 1 , 100 ), method = "cubic" ) . plot . line ( label = "cubic" )
│ │ │ │ -Out[19]: [<matplotlib.lines.Line2D at 0xffff20f16fd0>]
│ │ │ │ +Out[19]: [<matplotlib.lines.Line2D at 0xffff5e192fd0>]
│ │ │ │
│ │ │ │ In [20]: plt . legend ()
│ │ │ │ -Out[20]: <matplotlib.legend.Legend at 0xffff48f17380>
│ │ │ │ +Out[20]: <matplotlib.legend.Legend at 0xffff6981f380>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Additional keyword arguments can be passed to scipy’s functions.
│ │ │ │ # fill 0 for the outside of the original coordinates.
│ │ │ │ In [21]: da . interp ( x = np . linspace ( - 0.5 , 1.5 , 10 ), kwargs = { "fill_value" : 0.0 })
│ │ │ │ @@ -439,15 +439,15 @@
│ │ │ │ see Missing values .
│ │ │ │
│ │ │ │
│ │ │ │ Example
│ │ │ │ Let’s see how interp()
works on real data.
│ │ │ │ # Raw data
│ │ │ │ In [44]: ds = xr . tutorial . open_dataset ( "air_temperature" ) . isel ( time = 0 )
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5a461e50>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff69839e50>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [45]: fig , axes = plt . subplots ( ncols = 2 , figsize = ( 10 , 4 ))
│ │ │ │
│ │ │ │ In [46]: ds . air . plot ( ax = axes [ 0 ])
│ │ │ │ AttributeError: 'Dataset' object has no attribute 'air'
│ │ │ │
│ │ │ │ @@ -511,15 +511,15 @@
│ │ │ │ ....: axes [ 0 ] . plot ( * xr . broadcast ( lon . isel ( z = idx ), lat . isel ( z = idx )), "--k" )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [61]: axes [ 0 ] . set_title ( "Raw data" )
│ │ │ │ Out[61]: Text(0.5, 1.0, 'Raw data')
│ │ │ │
│ │ │ │ In [62]: dsi = ds . interp ( lon = lon , lat = lat )
│ │ │ │ -ValueError: Dimensions {'lon', 'lat'} do not exist. Expected one or more of FrozenMappingWarningOnValuesAccess({'x': 3, 'y': 4})
│ │ │ │ +ValueError: Dimensions {'lat', 'lon'} do not exist. Expected one or more of FrozenMappingWarningOnValuesAccess({'x': 3, 'y': 4})
│ │ │ │
│ │ │ │
│ │ │ │ In [63]: dsi . air . plot ( ax = axes [ 1 ])
│ │ │ │ NameError: name 'dsi' is not defined
│ │ │ │
│ │ │ │
│ │ │ │ In [64]: axes [ 1 ] . set_title ( "Remapped data" )
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -153,26 +153,26 @@
│ │ │ │ │ ....: np.sin(np.linspace(0, 2 * np.pi, 10)),
│ │ │ │ │ ....: dims="x",
│ │ │ │ │ ....: coords={"x": np.linspace(0, 1, 10)},
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [17]: da.plot.line("o", label="original")
│ │ │ │ │ -Out[17]: []
│ │ │ │ │ +Out[17]: []
│ │ │ │ │
│ │ │ │ │ In [18]: da.interp(x=np.linspace(0, 1, 100)).plot.line(label="linear
│ │ │ │ │ (default)")
│ │ │ │ │ -Out[18]: []
│ │ │ │ │ +Out[18]: []
│ │ │ │ │
│ │ │ │ │ In [19]: da.interp(x=np.linspace(0, 1, 100), method="cubic").plot.line
│ │ │ │ │ (label="cubic")
│ │ │ │ │ -Out[19]: []
│ │ │ │ │ +Out[19]: []
│ │ │ │ │
│ │ │ │ │ In [20]: plt.legend()
│ │ │ │ │ -Out[20]:
│ │ │ │ │ +Out[20]:
│ │ │ │ │ _[_._._/___i_m_a_g_e_s_/_i_n_t_e_r_p_o_l_a_t_i_o_n___s_a_m_p_l_e_1_._p_n_g_]
│ │ │ │ │ Additional keyword arguments can be passed to scipy’s functions.
│ │ │ │ │ # fill 0 for the outside of the original coordinates.
│ │ │ │ │ In [21]: da.interp(x=np.linspace(-0.5, 1.5, 10), kwargs={"fill_value": 0.0})
│ │ │ │ │ Out[21]:
│ │ │ │ │ Size: 80B
│ │ │ │ │ array([ 0. , 0. , 0. , 0.814, 0.604, -0.604, -0.814, 0. , 0. ,
│ │ │ │ │ @@ -338,15 +338,15 @@
│ │ │ │ │ ********** EExxaammppllee_?¶ **********
│ │ │ │ │ Let’s see how interp() works on real data.
│ │ │ │ │ # Raw data
│ │ │ │ │ In [44]: ds = xr.tutorial.open_dataset("air_temperature").isel(time=0)
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff69839e50>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [45]: fig, axes = plt.subplots(ncols=2, figsize=(10, 4))
│ │ │ │ │
│ │ │ │ │ In [46]: ds.air.plot(ax=axes[0])
│ │ │ │ │ AttributeError: 'Dataset' object has no attribute 'air'
│ │ │ │ │ @@ -411,15 +411,15 @@
│ │ │ │ │ k")
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [61]: axes[0].set_title("Raw data")
│ │ │ │ │ Out[61]: Text(0.5, 1.0, 'Raw data')
│ │ │ │ │
│ │ │ │ │ In [62]: dsi = ds.interp(lon=lon, lat=lat)
│ │ │ │ │ -ValueError: Dimensions {'lon', 'lat'} do not exist. Expected one or more of
│ │ │ │ │ +ValueError: Dimensions {'lat', 'lon'} do not exist. Expected one or more of
│ │ │ │ │ FrozenMappingWarningOnValuesAccess({'x': 3, 'y': 4})
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [63]: dsi.air.plot(ax=axes[1])
│ │ │ │ │ NameError: name 'dsi' is not defined
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/io.html
│ │ │ │ @@ -630,15 +630,15 @@
│ │ │ │ ....: "y" : pd . date_range ( "2000-01-01" , periods = 5 ),
│ │ │ │ ....: "z" : ( "x" , list ( "abcd" )),
│ │ │ │ ....: },
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [13]: ds . to_zarr ( "path/to/directory.zarr" )
│ │ │ │ -Out[13]: <xarray.backends.zarr.ZarrStore at 0xffff1fe3dbd0>
│ │ │ │ +Out[13]: <xarray.backends.zarr.ZarrStore at 0xffff5d17a0e0>
│ │ │ │
│ │ │ │
│ │ │ │ (The suffix .zarr
is optional–just a reminder that a zarr store lives
│ │ │ │ there.) If the directory does not exist, it will be created. If a zarr
│ │ │ │ store is already present at that path, an error will be raised, preventing it
│ │ │ │ from being overwritten. To override this behavior and overwrite an existing
│ │ │ │ store, add mode='w'
when invoking to_zarr()
.
│ │ │ │ @@ -658,19 +658,19 @@
│ │ │ │ To read back a zarr dataset that has been created this way, we use the
│ │ │ │ open_zarr()
method:
│ │ │ │ In [14]: ds_zarr = xr . open_zarr ( "path/to/directory.zarr" )
│ │ │ │
│ │ │ │ In [15]: ds_zarr
│ │ │ │ Out[15]:
│ │ │ │ <xarray.Dataset> Size: 264B
│ │ │ │ -Dimensions: (y: 5, x: 4)
│ │ │ │ +Dimensions: (x: 4, y: 5)
│ │ │ │ Coordinates:
│ │ │ │ - * y (y) datetime64[ns] 40B 2000-01-01 2000-01-02 ... 2000-01-05
│ │ │ │ - * x (x) int64 32B 10 20 30 40
│ │ │ │ z (x) object 32B dask.array<chunksize=(4,), meta=np.ndarray>
│ │ │ │ + * x (x) int64 32B 10 20 30 40
│ │ │ │ + * y (y) datetime64[ns] 40B 2000-01-01 2000-01-02 ... 2000-01-05
│ │ │ │ Data variables:
│ │ │ │ foo (x, y) float64 160B dask.array<chunksize=(4, 5), meta=np.ndarray>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Cloud Storage Buckets
│ │ │ │ It is possible to read and write xarray datasets directly from / to cloud
│ │ │ │ @@ -724,36 +724,36 @@
│ │ │ │
│ │ │ │ In [18]: ds = xr . Dataset ({ "foo" : ( "x" , dummies )}, coords = { "x" : np . arange ( 30 )})
│ │ │ │
│ │ │ │ In [19]: path = "path/to/directory.zarr"
│ │ │ │
│ │ │ │ # Now we write the metadata without computing any array values
│ │ │ │ In [20]: ds . to_zarr ( path , compute = False )
│ │ │ │ -Out[20]: Delayed('_finalize_store-6768267c-47e4-4996-be9d-3b09c8b6f322')
│ │ │ │ +Out[20]: Delayed('_finalize_store-c1ff047f-1306-4b87-b8dd-3eb0c4b41a69')
│ │ │ │
│ │ │ │
│ │ │ │ Now, a Zarr store with the correct variable shapes and attributes exists that
│ │ │ │ can be filled out by subsequent calls to to_zarr
.
│ │ │ │ Setting region="auto"
will open the existing store and determine the
│ │ │ │ correct alignment of the new data with the existing dimensions, or as an
│ │ │ │ explicit mapping from dimension names to Python slice
objects indicating
│ │ │ │ where the data should be written (in index space, not label space), e.g.,
│ │ │ │ # For convenience, we'll slice a single dataset, but in the real use-case
│ │ │ │ # we would create them separately possibly even from separate processes.
│ │ │ │ In [21]: ds = xr . Dataset ({ "foo" : ( "x" , np . arange ( 30 ))}, coords = { "x" : np . arange ( 30 )})
│ │ │ │
│ │ │ │ # Any of the following region specifications are valid
│ │ │ │ In [22]: ds . isel ( x = slice ( 0 , 10 )) . to_zarr ( path , region = "auto" )
│ │ │ │ -Out[22]: <xarray.backends.zarr.ZarrStore at 0xffff1fe3eef0>
│ │ │ │ +Out[22]: <xarray.backends.zarr.ZarrStore at 0xffff5d17b400>
│ │ │ │
│ │ │ │ In [23]: ds . isel ( x = slice ( 10 , 20 )) . to_zarr ( path , region = { "x" : "auto" })
│ │ │ │ -Out[23]: <xarray.backends.zarr.ZarrStore at 0xffff1fe3f010>
│ │ │ │ +Out[23]: <xarray.backends.zarr.ZarrStore at 0xffff5d17b370>
│ │ │ │
│ │ │ │ In [24]: ds . isel ( x = slice ( 20 , 30 )) . to_zarr ( path , region = { "x" : slice ( 20 , 30 )})
│ │ │ │ -Out[24]: <xarray.backends.zarr.ZarrStore at 0xffff20218e50>
│ │ │ │ +Out[24]: <xarray.backends.zarr.ZarrStore at 0xffff5d341360>
│ │ │ │
│ │ │ │
│ │ │ │ Concurrent writes with region
are safe as long as they modify distinct
│ │ │ │ chunks in the underlying Zarr arrays (or use an appropriate lock
).
│ │ │ │ As a safety check to make it harder to inadvertently override existing values,
│ │ │ │ if you set region
then all variables included in a Dataset must have
│ │ │ │ dimensions included in region
. Other variables (typically coordinates)
│ │ │ │ @@ -816,28 +816,28 @@
│ │ │ │ ....: "y" : [ 1 , 2 , 3 , 4 , 5 ],
│ │ │ │ ....: "t" : pd . date_range ( "2001-01-01" , periods = 2 ),
│ │ │ │ ....: },
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [30]: ds1 . to_zarr ( "path/to/directory.zarr" )
│ │ │ │ -Out[30]: <xarray.backends.zarr.ZarrStore at 0xffff1fef0160>
│ │ │ │ +Out[30]: <xarray.backends.zarr.ZarrStore at 0xffff5d040670>
│ │ │ │
│ │ │ │ In [31]: ds2 = xr . Dataset (
│ │ │ │ ....: { "foo" : (( "x" , "y" , "t" ), np . random . rand ( 4 , 5 , 2 ))},
│ │ │ │ ....: coords = {
│ │ │ │ ....: "x" : [ 10 , 20 , 30 , 40 ],
│ │ │ │ ....: "y" : [ 1 , 2 , 3 , 4 , 5 ],
│ │ │ │ ....: "t" : pd . date_range ( "2001-01-03" , periods = 2 ),
│ │ │ │ ....: },
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [32]: ds2 . to_zarr ( "path/to/directory.zarr" , append_dim = "t" )
│ │ │ │ -Out[32]: <xarray.backends.zarr.ZarrStore at 0xffff1fef00d0>
│ │ │ │ +Out[32]: <xarray.backends.zarr.ZarrStore at 0xffff5d0405e0>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Specifying chunks in a zarr store
│ │ │ │ Chunk sizes may be specified in one of three ways when writing to a zarr store:
│ │ │ │
│ │ │ │ @@ -861,15 +861,15 @@
│ │ │ │ positional ordering of the dimensions in each array. Watch out for arrays with
│ │ │ │ differently-ordered dimensions within a single Dataset.
│ │ │ │
│ │ │ │ For example, let’s say we’re working with a dataset with dimensions
│ │ │ │ ('time', 'x', 'y')
, a variable Tair
which is chunked in x
and y
,
│ │ │ │ and two multi-dimensional coordinates xc
and yc
:
│ │ │ │ In [33]: ds = xr . tutorial . open_dataset ( "rasm" )
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff1ff57610>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5d044190>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [34]: ds [ "Tair" ] = ds [ "Tair" ] . chunk ({ "x" : 100 , "y" : 100 })
│ │ │ │ KeyError: "No variable named 'Tair'. Variables on the dataset include ['foo', 'x']"
│ │ │ │
│ │ │ │
│ │ │ │ In [35]: ds
│ │ │ │ @@ -882,15 +882,15 @@
│ │ │ │ foo (x) int64 240B 0 1 2 3 4 5 6 7 8 9 ... 21 22 23 24 25 26 27 28 29
│ │ │ │
│ │ │ │
│ │ │ │ These multi-dimensional coordinates are only two-dimensional and take up very little
│ │ │ │ space on disk or in memory, yet when writing to disk the default zarr behavior is to
│ │ │ │ split them into chunks:
│ │ │ │ In [36]: ds . to_zarr ( "path/to/directory.zarr" , mode = "w" )
│ │ │ │ -Out[36]: <xarray.backends.zarr.ZarrStore at 0xffff1fef0550>
│ │ │ │ +Out[36]: <xarray.backends.zarr.ZarrStore at 0xffff5d040a60>
│ │ │ │
│ │ │ │ In [37]: ! ls -R path/to/directory.zarr
│ │ │ │ path/to/directory.zarr:
│ │ │ │ foo x zarr.json
│ │ │ │
│ │ │ │ path/to/directory.zarr/foo:
│ │ │ │ c zarr.json
│ │ │ │ @@ -1081,15 +1081,15 @@
│ │ │ │ Ncdata
│ │ │ │ Ncdata provides more sophisticated means of transferring data, including entire
│ │ │ │ datasets. It uses the file saving and loading functions in both projects to provide a
│ │ │ │ more “correct” translation between them, but still with very low overhead and not
│ │ │ │ using actual disk files.
│ │ │ │ For example:
│ │ │ │ In [48]: ds = xr . tutorial . open_dataset ( "air_temperature_gradient" )
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature_gradient.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff69df0cd0>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature_gradient.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5d0456d0>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [49]: cubes = ncdata . iris_xarray . cubes_from_xarray ( ds )
│ │ │ │ NameError: name 'ncdata' is not defined
│ │ │ │
│ │ │ │
│ │ │ │ In [50]: print ( cubes )
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -481,15 +481,15 @@
│ │ │ │ │ ....: "y": pd.date_range("2000-01-01", periods=5),
│ │ │ │ │ ....: "z": ("x", list("abcd")),
│ │ │ │ │ ....: },
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [13]: ds.to_zarr("path/to/directory.zarr")
│ │ │ │ │ -Out[13]:
│ │ │ │ │ +Out[13]:
│ │ │ │ │ (The suffix .zarr is optional–just a reminder that a zarr store lives there.)
│ │ │ │ │ If the directory does not exist, it will be created. If a zarr store is already
│ │ │ │ │ present at that path, an error will be raised, preventing it from being
│ │ │ │ │ overwritten. To override this behavior and overwrite an existing store, add
│ │ │ │ │ mode='w' when invoking to_zarr().
│ │ │ │ │ DataArrays can also be saved to disk using the DataArray.to_zarr() method, and
│ │ │ │ │ loaded from disk using the open_dataarray() function with engine='zarr'.
│ │ │ │ │ @@ -505,19 +505,19 @@
│ │ │ │ │ To read back a zarr dataset that has been created this way, we use the
│ │ │ │ │ open_zarr() method:
│ │ │ │ │ In [14]: ds_zarr = xr.open_zarr("path/to/directory.zarr")
│ │ │ │ │
│ │ │ │ │ In [15]: ds_zarr
│ │ │ │ │ Out[15]:
│ │ │ │ │ Size: 264B
│ │ │ │ │ -Dimensions: (y: 5, x: 4)
│ │ │ │ │ +Dimensions: (x: 4, y: 5)
│ │ │ │ │ Coordinates:
│ │ │ │ │ - * y (y) datetime64[ns] 40B 2000-01-01 2000-01-02 ... 2000-01-05
│ │ │ │ │ - * x (x) int64 32B 10 20 30 40
│ │ │ │ │ z (x) object 32B dask.array
│ │ │ │ │ + * x (x) int64 32B 10 20 30 40
│ │ │ │ │ + * y (y) datetime64[ns] 40B 2000-01-01 2000-01-02 ... 2000-01-05
│ │ │ │ │ Data variables:
│ │ │ │ │ foo (x, y) float64 160B dask.array
│ │ │ │ │ ******** CClloouudd SSttoorraaggee BBuucckkeettss_?¶ ********
│ │ │ │ │ It is possible to read and write xarray datasets directly from / to cloud
│ │ │ │ │ storage buckets using zarr. This example uses the _g_c_s_f_s package to provide an
│ │ │ │ │ interface to _G_o_o_g_l_e_ _C_l_o_u_d_ _S_t_o_r_a_g_e.
│ │ │ │ │ General _f_s_s_p_e_c URLs, those that begin with s3:// or gcs:// for example, are
│ │ │ │ │ @@ -562,35 +562,35 @@
│ │ │ │ │
│ │ │ │ │ In [18]: ds = xr.Dataset({"foo": ("x", dummies)}, coords={"x": np.arange(30)})
│ │ │ │ │
│ │ │ │ │ In [19]: path = "path/to/directory.zarr"
│ │ │ │ │
│ │ │ │ │ # Now we write the metadata without computing any array values
│ │ │ │ │ In [20]: ds.to_zarr(path, compute=False)
│ │ │ │ │ -Out[20]: Delayed('_finalize_store-6768267c-47e4-4996-be9d-3b09c8b6f322')
│ │ │ │ │ +Out[20]: Delayed('_finalize_store-c1ff047f-1306-4b87-b8dd-3eb0c4b41a69')
│ │ │ │ │ Now, a Zarr store with the correct variable shapes and attributes exists that
│ │ │ │ │ can be filled out by subsequent calls to to_zarr. Setting region="auto" will
│ │ │ │ │ open the existing store and determine the correct alignment of the new data
│ │ │ │ │ with the existing dimensions, or as an explicit mapping from dimension names to
│ │ │ │ │ Python slice objects indicating where the data should be written (in index
│ │ │ │ │ space, not label space), e.g.,
│ │ │ │ │ # For convenience, we'll slice a single dataset, but in the real use-case
│ │ │ │ │ # we would create them separately possibly even from separate processes.
│ │ │ │ │ In [21]: ds = xr.Dataset({"foo": ("x", np.arange(30))}, coords={"x": np.arange
│ │ │ │ │ (30)})
│ │ │ │ │
│ │ │ │ │ # Any of the following region specifications are valid
│ │ │ │ │ In [22]: ds.isel(x=slice(0, 10)).to_zarr(path, region="auto")
│ │ │ │ │ -Out[22]:
│ │ │ │ │ +Out[22]:
│ │ │ │ │
│ │ │ │ │ In [23]: ds.isel(x=slice(10, 20)).to_zarr(path, region={"x": "auto"})
│ │ │ │ │ -Out[23]:
│ │ │ │ │ +Out[23]:
│ │ │ │ │
│ │ │ │ │ In [24]: ds.isel(x=slice(20, 30)).to_zarr(path, region={"x": slice(20, 30)})
│ │ │ │ │ -Out[24]:
│ │ │ │ │ +Out[24]:
│ │ │ │ │ Concurrent writes with region are safe as long as they modify distinct chunks
│ │ │ │ │ in the underlying Zarr arrays (or use an appropriate lock).
│ │ │ │ │ As a safety check to make it harder to inadvertently override existing values,
│ │ │ │ │ if you set region then aallll variables included in a Dataset must have dimensions
│ │ │ │ │ included in region. Other variables (typically coordinates) need to be
│ │ │ │ │ explicitly dropped and/or written in a separate calls to to_zarr with mode='a'.
│ │ │ │ │ ******** ZZaarrrr CCoommpprreessssoorrss aanndd FFiilltteerrss_?¶ ********
│ │ │ │ │ @@ -636,28 +636,28 @@
│ │ │ │ │ ....: "y": [1, 2, 3, 4, 5],
│ │ │ │ │ ....: "t": pd.date_range("2001-01-01", periods=2),
│ │ │ │ │ ....: },
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [30]: ds1.to_zarr("path/to/directory.zarr")
│ │ │ │ │ -Out[30]:
│ │ │ │ │ +Out[30]:
│ │ │ │ │
│ │ │ │ │ In [31]: ds2 = xr.Dataset(
│ │ │ │ │ ....: {"foo": (("x", "y", "t"), np.random.rand(4, 5, 2))},
│ │ │ │ │ ....: coords={
│ │ │ │ │ ....: "x": [10, 20, 30, 40],
│ │ │ │ │ ....: "y": [1, 2, 3, 4, 5],
│ │ │ │ │ ....: "t": pd.date_range("2001-01-03", periods=2),
│ │ │ │ │ ....: },
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [32]: ds2.to_zarr("path/to/directory.zarr", append_dim="t")
│ │ │ │ │ -Out[32]:
│ │ │ │ │ +Out[32]:
│ │ │ │ │ ******** SSppeecciiffyyiinngg cchhuunnkkss iinn aa zzaarrrr ssttoorree_?¶ ********
│ │ │ │ │ Chunk sizes may be specified in one of three ways when writing to a zarr store:
│ │ │ │ │ 1. Manual chunk sizing through the use of the encoding argument in
│ │ │ │ │ Dataset.to_zarr():
│ │ │ │ │ 2. Automatic chunking based on chunks in dask arrays
│ │ │ │ │ 3. Default chunk behavior determined by the zarr library
│ │ │ │ │ The resulting chunks will be determined based on the order of the above list;
│ │ │ │ │ @@ -678,15 +678,15 @@
│ │ │ │ │ For example, let’s say we’re working with a dataset with dimensions ('time',
│ │ │ │ │ 'x', 'y'), a variable Tair which is chunked in x and y, and two multi-
│ │ │ │ │ dimensional coordinates xc and yc:
│ │ │ │ │ In [33]: ds = xr.tutorial.open_dataset("rasm")
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/rasm.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5d044190>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [34]: ds["Tair"] = ds["Tair"].chunk({"x": 100, "y": 100})
│ │ │ │ │ KeyError: "No variable named 'Tair'. Variables on the dataset include ['foo',
│ │ │ │ │ 'x']"
│ │ │ │ │
│ │ │ │ │ @@ -699,15 +699,15 @@
│ │ │ │ │ * x (x) int64 240B 0 1 2 3 4 5 6 7 8 9 ... 21 22 23 24 25 26 27 28 29
│ │ │ │ │ Data variables:
│ │ │ │ │ foo (x) int64 240B 0 1 2 3 4 5 6 7 8 9 ... 21 22 23 24 25 26 27 28 29
│ │ │ │ │ These multi-dimensional coordinates are only two-dimensional and take up very
│ │ │ │ │ little space on disk or in memory, yet when writing to disk the default zarr
│ │ │ │ │ behavior is to split them into chunks:
│ │ │ │ │ In [36]: ds.to_zarr("path/to/directory.zarr", mode="w")
│ │ │ │ │ -Out[36]:
│ │ │ │ │ +Out[36]:
│ │ │ │ │
│ │ │ │ │ In [37]: ! ls -R path/to/directory.zarr
│ │ │ │ │ path/to/directory.zarr:
│ │ │ │ │ foo x zarr.json
│ │ │ │ │
│ │ │ │ │ path/to/directory.zarr/foo:
│ │ │ │ │ c zarr.json
│ │ │ │ │ @@ -874,15 +874,15 @@
│ │ │ │ │ provide a more “correct” translation between them, but still with very low
│ │ │ │ │ overhead and not using actual disk files.
│ │ │ │ │ For example:
│ │ │ │ │ In [48]: ds = xr.tutorial.open_dataset("air_temperature_gradient")
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature_gradient.nc
│ │ │ │ │ (Caused by NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5d0456d0>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [49]: cubes = ncdata.iris_xarray.cubes_from_xarray(ds)
│ │ │ │ │ NameError: name 'ncdata' is not defined
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/plotting.html
│ │ │ │ @@ -100,15 +100,15 @@
│ │ │ │ In [3]: import matplotlib.pyplot as plt
│ │ │ │
│ │ │ │ In [4]: import xarray as xr
│ │ │ │
│ │ │ │
│ │ │ │ For these examples we’ll use the North American air temperature dataset.
│ │ │ │ In [5]: airtemps = xr . tutorial . open_dataset ( "air_temperature" )
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff1ff57610>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff5d044690>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [6]: airtemps
│ │ │ │ NameError: name 'airtemps' is not defined
│ │ │ │
│ │ │ │
│ │ │ │ # Convert to celsius
│ │ │ │ @@ -445,15 +445,15 @@
│ │ │ │
│ │ │ │ # Apply a nonlinear transformation to one of the coords
│ │ │ │ In [50]: b . coords [ "lat" ] = np . log ( b . coords [ "lat" ])
│ │ │ │ KeyError: 'lat'
│ │ │ │
│ │ │ │
│ │ │ │ In [51]: b . plot ()
│ │ │ │ -Out[51]: [<matplotlib.lines.Line2D at 0xffff693ea990>]
│ │ │ │ +Out[51]: [<matplotlib.lines.Line2D at 0xffff9259ce10>]
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Other types of plot
│ │ │ │ @@ -857,117 +857,117 @@
│ │ │ │ * y (y) float64 88B 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
│ │ │ │ * z (z) int64 32B 0 1 2 3
│ │ │ │ * w (w) <U5 80B 'one' 'two' 'three' 'five'
│ │ │ │ Attributes:
│ │ │ │ units: Aunits
│ │ │ │
│ │ │ │ In [99]: ds . A . plot . scatter ( x = "y" )
│ │ │ │ -Out[99]: <matplotlib.collections.PathCollection at 0xffff1fee3b60>
│ │ │ │ +Out[99]: <matplotlib.collections.PathCollection at 0xffff9288b770>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Same plot can be displayed using the dataset:
│ │ │ │ In [100]: ds . plot . scatter ( x = "y" , y = "A" )
│ │ │ │ -Out[100]: <matplotlib.collections.PathCollection at 0xffff6926e5d0>
│ │ │ │ +Out[100]: <matplotlib.collections.PathCollection at 0xffff924a0a50>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Now suppose we want to scatter the A
DataArray against the B
DataArray
│ │ │ │ In [101]: ds . plot . scatter ( x = "A" , y = "B" )
│ │ │ │ -Out[101]: <matplotlib.collections.PathCollection at 0xffff6936f890>
│ │ │ │ +Out[101]: <matplotlib.collections.PathCollection at 0xffff92590410>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ The hue
kwarg lets you vary the color by variable value
│ │ │ │ In [102]: ds . plot . scatter ( x = "A" , y = "B" , hue = "w" )
│ │ │ │ -Out[102]: <matplotlib.collections.PathCollection at 0xffff69449bd0>
│ │ │ │ +Out[102]: <matplotlib.collections.PathCollection at 0xffff92677110>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ You can force a legend instead of a colorbar by setting add_legend=True, add_colorbar=False
.
│ │ │ │ In [103]: ds . plot . scatter ( x = "A" , y = "B" , hue = "w" , add_legend = True , add_colorbar = False )
│ │ │ │ -Out[103]: <matplotlib.collections.PathCollection at 0xffff48ea7890>
│ │ │ │ +Out[103]: <matplotlib.collections.PathCollection at 0xffff698751d0>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ In [104]: ds . plot . scatter ( x = "A" , y = "B" , hue = "w" , add_legend = False , add_colorbar = True )
│ │ │ │ -Out[104]: <matplotlib.collections.PathCollection at 0xffff48f9c7d0>
│ │ │ │ +Out[104]: <matplotlib.collections.PathCollection at 0xffff69882350>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ The markersize
kwarg lets you vary the point’s size by variable value.
│ │ │ │ You can additionally pass size_norm
to control how the variable’s values are mapped to point sizes.
│ │ │ │ In [105]: ds . plot . scatter ( x = "A" , y = "B" , hue = "y" , markersize = "z" )
│ │ │ │ -Out[105]: <matplotlib.collections.PathCollection at 0xffff5a353ed0>
│ │ │ │ +Out[105]: <matplotlib.collections.PathCollection at 0xffff8353cf50>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ The z
kwarg lets you plot the data along the z-axis as well.
│ │ │ │ In [106]: ds . plot . scatter ( x = "A" , y = "B" , z = "z" , hue = "y" , markersize = "x" )
│ │ │ │ -Out[106]: <mpl_toolkits.mplot3d.art3d.Path3DCollection at 0xffff48f68910>
│ │ │ │ +Out[106]: <mpl_toolkits.mplot3d.art3d.Path3DCollection at 0xffff69854910>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Faceting is also possible
│ │ │ │ In [107]: ds . plot . scatter ( x = "A" , y = "B" , hue = "y" , markersize = "x" , row = "x" , col = "w" )
│ │ │ │ -Out[107]: <xarray.plot.facetgrid.FacetGrid at 0xffff1fee0050>
│ │ │ │ +Out[107]: <xarray.plot.facetgrid.FacetGrid at 0xffff5cfd4c20>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ And adding the z-axis
│ │ │ │ In [108]: ds . plot . scatter ( x = "A" , y = "B" , z = "z" , hue = "y" , markersize = "x" , row = "x" , col = "w" )
│ │ │ │ -Out[108]: <xarray.plot.facetgrid.FacetGrid at 0xffff68bbd450>
│ │ │ │ +Out[108]: <xarray.plot.facetgrid.FacetGrid at 0xffff91df1450>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ For more advanced scatter plots, we recommend converting the relevant data variables
│ │ │ │ to a pandas DataFrame and using the extensive plotting capabilities of seaborn
.
│ │ │ │
│ │ │ │
│ │ │ │ Quiver
│ │ │ │ Visualizing vector fields is supported with quiver plots:
│ │ │ │ In [109]: ds . isel ( w = 1 , z = 1 ) . plot . quiver ( x = "x" , y = "y" , u = "A" , v = "B" )
│ │ │ │ -Out[109]: <matplotlib.quiver.Quiver at 0xffff1fa441a0>
│ │ │ │ +Out[109]: <matplotlib.quiver.Quiver at 0xffff5cc66ba0>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ where u
and v
denote the x and y direction components of the arrow vectors. Again, faceting is also possible:
│ │ │ │ In [110]: ds . plot . quiver ( x = "x" , y = "y" , u = "A" , v = "B" , col = "w" , row = "z" , scale = 4 )
│ │ │ │ -Out[110]: <xarray.plot.facetgrid.FacetGrid at 0xffff689bcf50>
│ │ │ │ +Out[110]: <xarray.plot.facetgrid.FacetGrid at 0xffff91becf50>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ scale
is required for faceted quiver plots.
│ │ │ │ The scale determines the number of data units per arrow length unit, i.e. a smaller scale parameter makes the arrow longer.
│ │ │ │
│ │ │ │
│ │ │ │ Streamplot
│ │ │ │ Visualizing vector fields is also supported with streamline plots:
│ │ │ │ In [111]: ds . isel ( w = 1 , z = 1 ) . plot . streamplot ( x = "x" , y = "y" , u = "A" , v = "B" )
│ │ │ │ -Out[111]: <matplotlib.collections.LineCollection at 0xffff6850f4d0>
│ │ │ │ +Out[111]: <matplotlib.collections.LineCollection at 0xffff9173f4d0>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ where u
and v
denote the x and y direction components of the vectors tangent to the streamlines.
│ │ │ │ Again, faceting is also possible:
│ │ │ │ In [112]: ds . plot . streamplot ( x = "x" , y = "y" , u = "A" , v = "B" , col = "w" , row = "z" )
│ │ │ │ -Out[112]: <xarray.plot.facetgrid.FacetGrid at 0xffff1f9a4050>
│ │ │ │ +Out[112]: <xarray.plot.facetgrid.FacetGrid at 0xffff5d605220>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Maps
│ │ │ │ To follow this section you’ll need to have Cartopy installed and working.
│ │ │ │ This script will plot the air temperature on a map.
│ │ │ │ In [113]: import cartopy.crs as ccrs
│ │ │ │
│ │ │ │ In [114]: air = xr . tutorial . open_dataset ( "air_temperature" ) . air
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff68b2cb90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff91d58b90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [115]: p = air . isel ( time = 0 ) . plot (
│ │ │ │ .....: subplot_kws = dict ( projection = ccrs . Orthographic ( - 80 , 35 ), facecolor = "gray" ),
│ │ │ │ .....: transform = ccrs . PlateCarree (),
│ │ │ │ .....: )
│ │ │ │ .....:
│ │ │ │ @@ -1024,24 +1024,24 @@
│ │ │ │ In [121]: import xarray.plot as xplt
│ │ │ │
│ │ │ │ In [122]: da = xr . DataArray ( range ( 5 ))
│ │ │ │
│ │ │ │ In [123]: fig , axs = plt . subplots ( ncols = 2 , nrows = 2 )
│ │ │ │
│ │ │ │ In [124]: da . plot ( ax = axs [ 0 , 0 ])
│ │ │ │ -Out[124]: [<matplotlib.lines.Line2D at 0xffff67f99a90>]
│ │ │ │ +Out[124]: [<matplotlib.lines.Line2D at 0xffff911c9a90>]
│ │ │ │
│ │ │ │ In [125]: da . plot . line ( ax = axs [ 0 , 1 ])
│ │ │ │ -Out[125]: [<matplotlib.lines.Line2D at 0xffff67f99bd0>]
│ │ │ │ +Out[125]: [<matplotlib.lines.Line2D at 0xffff911c9bd0>]
│ │ │ │
│ │ │ │ In [126]: xplt . plot ( da , ax = axs [ 1 , 0 ])
│ │ │ │ -Out[126]: [<matplotlib.lines.Line2D at 0xffff67f99d10>]
│ │ │ │ +Out[126]: [<matplotlib.lines.Line2D at 0xffff911c9d10>]
│ │ │ │
│ │ │ │ In [127]: xplt . line ( da , ax = axs [ 1 , 1 ])
│ │ │ │ -Out[127]: [<matplotlib.lines.Line2D at 0xffff67f99e50>]
│ │ │ │ +Out[127]: [<matplotlib.lines.Line2D at 0xffff911c9e50>]
│ │ │ │
│ │ │ │ In [128]: plt . tight_layout ()
│ │ │ │
│ │ │ │ In [129]: plt . draw ()
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ @@ -1091,15 +1091,15 @@
│ │ │ │
│ │ │ │
The plot will produce an image corresponding to the values of the array.
│ │ │ │ Hence the top left pixel will be a different color than the others.
│ │ │ │ Before reading on, you may want to look at the coordinates and
│ │ │ │ think carefully about what the limits, labels, and orientation for
│ │ │ │ each of the axes should be.
│ │ │ │
In [134]: a . plot ()
│ │ │ │ -Out[134]: <matplotlib.collections.QuadMesh at 0xffff68009310>
│ │ │ │ +Out[134]: <matplotlib.collections.QuadMesh at 0xffff91235310>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
It may seem strange that
│ │ │ │ the values on the y axis are decreasing with -0.5 on the top. This is because
│ │ │ │ the pixels are centered over their coordinates, and the
│ │ │ │ @@ -1122,57 +1122,57 @@
│ │ │ │ .....: np . arange ( 20 ) . reshape ( 4 , 5 ),
│ │ │ │ .....: dims = [ "y" , "x" ],
│ │ │ │ .....: coords = { "lat" : (( "y" , "x" ), lat ), "lon" : (( "y" , "x" ), lon )},
│ │ │ │ .....: )
│ │ │ │ .....:
│ │ │ │
│ │ │ │ In [139]: da . plot . pcolormesh ( x = "lon" , y = "lat" )
│ │ │ │ -Out[139]: <matplotlib.collections.QuadMesh at 0xffff68629590>
│ │ │ │ +Out[139]: <matplotlib.collections.QuadMesh at 0xffff91851590>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Note that in this case, xarray still follows the pixel centered convention.
│ │ │ │ This might be undesirable in some cases, for example when your data is defined
│ │ │ │ on a polar projection (GH781 ). This is why the default is to not follow
│ │ │ │ this convention when plotting on a map:
│ │ │ │ In [140]: import cartopy.crs as ccrs
│ │ │ │
│ │ │ │ In [141]: ax = plt . subplot ( projection = ccrs . PlateCarree ())
│ │ │ │
│ │ │ │ In [142]: da . plot . pcolormesh ( x = "lon" , y = "lat" , ax = ax )
│ │ │ │ -Out[142]: <cartopy.mpl.geocollection.GeoQuadMesh at 0xffff680dac10>
│ │ │ │ +Out[142]: <cartopy.mpl.geocollection.GeoQuadMesh at 0xffff91306c10>
│ │ │ │
│ │ │ │ In [143]: ax . scatter ( lon , lat , transform = ccrs . PlateCarree ())
│ │ │ │ -Out[143]: <matplotlib.collections.PathCollection at 0xffff6813ca50>
│ │ │ │ +Out[143]: <matplotlib.collections.PathCollection at 0xffff91364a50>
│ │ │ │
│ │ │ │ In [144]: ax . coastlines ()
│ │ │ │ -Out[144]: <cartopy.mpl.feature_artist.FeatureArtist at 0xffff1fee0590>
│ │ │ │ +Out[144]: <cartopy.mpl.feature_artist.FeatureArtist at 0xffff5cc67230>
│ │ │ │
│ │ │ │ In [145]: ax . gridlines ( draw_labels = True )
│ │ │ │ -Out[145]: <cartopy.mpl.gridliner.Gridliner at 0xffff21e51d30>
│ │ │ │ +Out[145]: <cartopy.mpl.gridliner.Gridliner at 0xffff5cc64ad0>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ You can however decide to infer the cell boundaries and use the
│ │ │ │ infer_intervals
keyword:
│ │ │ │ In [146]: ax = plt . subplot ( projection = ccrs . PlateCarree ())
│ │ │ │
│ │ │ │ In [147]: da . plot . pcolormesh ( x = "lon" , y = "lat" , ax = ax , infer_intervals = True )
│ │ │ │ -Out[147]: <cartopy.mpl.geocollection.GeoQuadMesh at 0xffff67c9f250>
│ │ │ │ +Out[147]: <cartopy.mpl.geocollection.GeoQuadMesh at 0xffff90ecf250>
│ │ │ │
│ │ │ │ In [148]: ax . scatter ( lon , lat , transform = ccrs . PlateCarree ())
│ │ │ │ -Out[148]: <matplotlib.collections.PathCollection at 0xffff68947c50>
│ │ │ │ +Out[148]: <matplotlib.collections.PathCollection at 0xffff91b77c50>
│ │ │ │
│ │ │ │ In [149]: ax . coastlines ()
│ │ │ │ -Out[149]: <cartopy.mpl.feature_artist.FeatureArtist at 0xffff68947b10>
│ │ │ │ +Out[149]: <cartopy.mpl.feature_artist.FeatureArtist at 0xffff91b77b10>
│ │ │ │
│ │ │ │ In [150]: ax . gridlines ( draw_labels = True )
│ │ │ │ -Out[150]: <cartopy.mpl.gridliner.Gridliner at 0xffff68947390>
│ │ │ │ +Out[150]: <cartopy.mpl.gridliner.Gridliner at 0xffff91b77390>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
Note
│ │ │ │
The data model of xarray does not support datasets with cell boundaries
│ │ │ │ @@ -1180,26 +1180,26 @@
│ │ │ │ outside the xarray framework.
│ │ │ │
│ │ │ │ One can also make line plots with multidimensional coordinates. In this case, hue
must be a dimension name, not a coordinate name.
│ │ │ │ In [151]: f , ax = plt . subplots ( 2 , 1 )
│ │ │ │
│ │ │ │ In [152]: da . plot . line ( x = "lon" , hue = "y" , ax = ax [ 0 ])
│ │ │ │ Out[152]:
│ │ │ │ -[<matplotlib.lines.Line2D at 0xffff67c6e210>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff67c6e0d0>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff67c6df90>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff67c6e5d0>]
│ │ │ │ +[<matplotlib.lines.Line2D at 0xffff90e9a210>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff90e9a0d0>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff90e99f90>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff90e9a5d0>]
│ │ │ │
│ │ │ │ In [153]: da . plot . line ( x = "lon" , hue = "x" , ax = ax [ 1 ])
│ │ │ │ Out[153]:
│ │ │ │ -[<matplotlib.lines.Line2D at 0xffff68712ad0>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff68712990>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff68712850>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff68712e90>,
│ │ │ │ - <matplotlib.lines.Line2D at 0xffff687134d0>]
│ │ │ │ +[<matplotlib.lines.Line2D at 0xffff9193ead0>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff9193e990>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff9193e850>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff9193ee90>,
│ │ │ │ + <matplotlib.lines.Line2D at 0xffff9193f4d0>]
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -32,15 +32,15 @@
│ │ │ │ │
│ │ │ │ │ In [4]: import xarray as xr
│ │ │ │ │ For these examples we’ll use the North American air temperature dataset.
│ │ │ │ │ In [5]: airtemps = xr.tutorial.open_dataset("air_temperature")
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff5d044690>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [6]: airtemps
│ │ │ │ │ NameError: name 'airtemps' is not defined
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ @@ -294,15 +294,15 @@
│ │ │ │ │
│ │ │ │ │ # Apply a nonlinear transformation to one of the coords
│ │ │ │ │ In [50]: b.coords["lat"] = np.log(b.coords["lat"])
│ │ │ │ │ KeyError: 'lat'
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [51]: b.plot()
│ │ │ │ │ -Out[51]: []
│ │ │ │ │ +Out[51]: []
│ │ │ │ │ _[_._._/___i_m_a_g_e_s_/_p_l_o_t_t_i_n_g___n_o_n_u_n_i_f_o_r_m___c_o_o_r_d_s_._p_n_g_]
│ │ │ │ │ ****** OOtthheerr ttyyppeess ooff pplloott_?¶ ******
│ │ │ │ │ There are several other options for plotting 2D data.
│ │ │ │ │ Contour plot using DataArray.plot.contour()
│ │ │ │ │ In [52]: air2d.plot.contour()
│ │ │ │ │ NameError: name 'air2d' is not defined
│ │ │ │ │ _[_._._/___i_m_a_g_e_s_/_p_l_o_t_t_i_n_g___c_o_n_t_o_u_r_._p_n_g_]
│ │ │ │ │ @@ -615,94 +615,94 @@
│ │ │ │ │ * y (y) float64 88B 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
│ │ │ │ │ * z (z) int64 32B 0 1 2 3
│ │ │ │ │ * w (w)
│ │ │ │ │ +Out[99]:
│ │ │ │ │ [../_images/da_A_y.png]
│ │ │ │ │ Same plot can be displayed using the dataset:
│ │ │ │ │ In [100]: ds.plot.scatter(x="y", y="A")
│ │ │ │ │ -Out[100]:
│ │ │ │ │ +Out[100]:
│ │ │ │ │ [../_images/ds_A_y.png]
│ │ │ │ │ Now suppose we want to scatter the A DataArray against the B DataArray
│ │ │ │ │ In [101]: ds.plot.scatter(x="A", y="B")
│ │ │ │ │ -Out[101]:
│ │ │ │ │ +Out[101]:
│ │ │ │ │ [../_images/ds_simple_scatter.png]
│ │ │ │ │ The hue kwarg lets you vary the color by variable value
│ │ │ │ │ In [102]: ds.plot.scatter(x="A", y="B", hue="w")
│ │ │ │ │ -Out[102]:
│ │ │ │ │ +Out[102]:
│ │ │ │ │ [../_images/ds_hue_scatter.png]
│ │ │ │ │ You can force a legend instead of a colorbar by setting add_legend=True,
│ │ │ │ │ add_colorbar=False.
│ │ │ │ │ In [103]: ds.plot.scatter(x="A", y="B", hue="w", add_legend=True,
│ │ │ │ │ add_colorbar=False)
│ │ │ │ │ -Out[103]:
│ │ │ │ │ +Out[103]:
│ │ │ │ │ [../_images/ds_discrete_legend_hue_scatter.png]
│ │ │ │ │ In [104]: ds.plot.scatter(x="A", y="B", hue="w", add_legend=False,
│ │ │ │ │ add_colorbar=True)
│ │ │ │ │ -Out[104]:
│ │ │ │ │ +Out[104]:
│ │ │ │ │ [../_images/ds_discrete_colorbar_hue_scatter.png]
│ │ │ │ │ The markersize kwarg lets you vary the point’s size by variable value. You can
│ │ │ │ │ additionally pass size_norm to control how the variable’s values are mapped to
│ │ │ │ │ point sizes.
│ │ │ │ │ In [105]: ds.plot.scatter(x="A", y="B", hue="y", markersize="z")
│ │ │ │ │ -Out[105]:
│ │ │ │ │ +Out[105]:
│ │ │ │ │ [../_images/ds_hue_size_scatter.png]
│ │ │ │ │ The z kwarg lets you plot the data along the z-axis as well.
│ │ │ │ │ In [106]: ds.plot.scatter(x="A", y="B", z="z", hue="y", markersize="x")
│ │ │ │ │ -Out[106]:
│ │ │ │ │ +Out[106]:
│ │ │ │ │ [../_images/ds_hue_size_scatter_z.png]
│ │ │ │ │ Faceting is also possible
│ │ │ │ │ In [107]: ds.plot.scatter(x="A", y="B", hue="y", markersize="x", row="x",
│ │ │ │ │ col="w")
│ │ │ │ │ -Out[107]:
│ │ │ │ │ +Out[107]:
│ │ │ │ │ [../_images/ds_facet_scatter.png]
│ │ │ │ │ And adding the z-axis
│ │ │ │ │ In [108]: ds.plot.scatter(x="A", y="B", z="z", hue="y", markersize="x",
│ │ │ │ │ row="x", col="w")
│ │ │ │ │ -Out[108]:
│ │ │ │ │ +Out[108]:
│ │ │ │ │ [../_images/ds_facet_scatter_z.png]
│ │ │ │ │ For more advanced scatter plots, we recommend converting the relevant data
│ │ │ │ │ variables to a pandas DataFrame and using the extensive plotting capabilities
│ │ │ │ │ of seaborn.
│ │ │ │ │ ******** QQuuiivveerr_?¶ ********
│ │ │ │ │ Visualizing vector fields is supported with quiver plots:
│ │ │ │ │ In [109]: ds.isel(w=1, z=1).plot.quiver(x="x", y="y", u="A", v="B")
│ │ │ │ │ -Out[109]:
│ │ │ │ │ +Out[109]:
│ │ │ │ │ [../_images/ds_simple_quiver.png]
│ │ │ │ │ where u and v denote the x and y direction components of the arrow vectors.
│ │ │ │ │ Again, faceting is also possible:
│ │ │ │ │ In [110]: ds.plot.quiver(x="x", y="y", u="A", v="B", col="w", row="z", scale=4)
│ │ │ │ │ -Out[110]:
│ │ │ │ │ +Out[110]:
│ │ │ │ │ [../_images/ds_facet_quiver.png]
│ │ │ │ │ scale is required for faceted quiver plots. The scale determines the number of
│ │ │ │ │ data units per arrow length unit, i.e. a smaller scale parameter makes the
│ │ │ │ │ arrow longer.
│ │ │ │ │ ******** SSttrreeaammpplloott_?¶ ********
│ │ │ │ │ Visualizing vector fields is also supported with streamline plots:
│ │ │ │ │ In [111]: ds.isel(w=1, z=1).plot.streamplot(x="x", y="y", u="A", v="B")
│ │ │ │ │ -Out[111]:
│ │ │ │ │ +Out[111]:
│ │ │ │ │ [../_images/ds_simple_streamplot.png]
│ │ │ │ │ where u and v denote the x and y direction components of the vectors tangent to
│ │ │ │ │ the streamlines. Again, faceting is also possible:
│ │ │ │ │ In [112]: ds.plot.streamplot(x="x", y="y", u="A", v="B", col="w", row="z")
│ │ │ │ │ -Out[112]:
│ │ │ │ │ +Out[112]:
│ │ │ │ │ [../_images/ds_facet_streamplot.png]
│ │ │ │ │ ********** MMaappss_?¶ **********
│ │ │ │ │ To follow this section you’ll need to have Cartopy installed and working.
│ │ │ │ │ This script will plot the air temperature on a map.
│ │ │ │ │ In [113]: import cartopy.crs as ccrs
│ │ │ │ │
│ │ │ │ │ In [114]: air = xr.tutorial.open_dataset("air_temperature").air
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff91d58b90>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [115]: p = air.isel(time=0).plot(
│ │ │ │ │ .....: subplot_kws=dict(projection=ccrs.Orthographic(-80, 35),
│ │ │ │ │ facecolor="gray"),
│ │ │ │ │ .....: transform=ccrs.PlateCarree(),
│ │ │ │ │ @@ -749,24 +749,24 @@
│ │ │ │ │ In [121]: import xarray.plot as xplt
│ │ │ │ │
│ │ │ │ │ In [122]: da = xr.DataArray(range(5))
│ │ │ │ │
│ │ │ │ │ In [123]: fig, axs = plt.subplots(ncols=2, nrows=2)
│ │ │ │ │
│ │ │ │ │ In [124]: da.plot(ax=axs[0, 0])
│ │ │ │ │ -Out[124]: []
│ │ │ │ │ +Out[124]: []
│ │ │ │ │
│ │ │ │ │ In [125]: da.plot.line(ax=axs[0, 1])
│ │ │ │ │ -Out[125]: []
│ │ │ │ │ +Out[125]: []
│ │ │ │ │
│ │ │ │ │ In [126]: xplt.plot(da, ax=axs[1, 0])
│ │ │ │ │ -Out[126]: []
│ │ │ │ │ +Out[126]: []
│ │ │ │ │
│ │ │ │ │ In [127]: xplt.line(da, ax=axs[1, 1])
│ │ │ │ │ -Out[127]: []
│ │ │ │ │ +Out[127]: []
│ │ │ │ │
│ │ │ │ │ In [128]: plt.tight_layout()
│ │ │ │ │
│ │ │ │ │ In [129]: plt.draw()
│ │ │ │ │ _[_._._/___i_m_a_g_e_s_/_p_l_o_t_t_i_n_g___w_a_y_s___t_o___u_s_e_._p_n_g_]
│ │ │ │ │ Here the output is the same. Since the data is 1 dimensional the line plot was
│ │ │ │ │ used.
│ │ │ │ │ @@ -797,15 +797,15 @@
│ │ │ │ │ [0., 0., 0.]], shape=(4, 3))
│ │ │ │ │ Dimensions without coordinates: y, x
│ │ │ │ │ The plot will produce an image corresponding to the values of the array. Hence
│ │ │ │ │ the top left pixel will be a different color than the others. Before reading
│ │ │ │ │ on, you may want to look at the coordinates and think carefully about what the
│ │ │ │ │ limits, labels, and orientation for each of the axes should be.
│ │ │ │ │ In [134]: a.plot()
│ │ │ │ │ -Out[134]:
│ │ │ │ │ +Out[134]:
│ │ │ │ │ _[_._._/___i_m_a_g_e_s_/_p_l_o_t_t_i_n_g___e_x_a_m_p_l_e___2_d___s_i_m_p_l_e_._p_n_g_]
│ │ │ │ │ It may seem strange that the values on the y axis are decreasing with -0.5 on
│ │ │ │ │ the top. This is because the pixels are centered over their coordinates, and
│ │ │ │ │ the axis labels and ranges correspond to the values of the coordinates.
│ │ │ │ │ ******** MMuullttiiddiimmeennssiioonnaall ccoooorrddiinnaatteess_?¶ ********
│ │ │ │ │ See also: _W_o_r_k_i_n_g_ _w_i_t_h_ _M_u_l_t_i_d_i_m_e_n_s_i_o_n_a_l_ _C_o_o_r_d_i_n_a_t_e_s.
│ │ │ │ │ You can plot irregular grids defined by multidimensional coordinates with
│ │ │ │ │ @@ -822,74 +822,74 @@
│ │ │ │ │ .....: np.arange(20).reshape(4, 5),
│ │ │ │ │ .....: dims=["y", "x"],
│ │ │ │ │ .....: coords={"lat": (("y", "x"), lat), "lon": (("y", "x"), lon)},
│ │ │ │ │ .....: )
│ │ │ │ │ .....:
│ │ │ │ │
│ │ │ │ │ In [139]: da.plot.pcolormesh(x="lon", y="lat")
│ │ │ │ │ -Out[139]:
│ │ │ │ │ +Out[139]:
│ │ │ │ │ _[_._._/___i_m_a_g_e_s_/_p_l_o_t_t_i_n_g___e_x_a_m_p_l_e___2_d___i_r_r_e_g_._p_n_g_]
│ │ │ │ │ Note that in this case, xarray still follows the pixel centered convention.
│ │ │ │ │ This might be undesirable in some cases, for example when your data is defined
│ │ │ │ │ on a polar projection (_G_H_7_8_1). This is why the default is to not follow this
│ │ │ │ │ convention when plotting on a map:
│ │ │ │ │ In [140]: import cartopy.crs as ccrs
│ │ │ │ │
│ │ │ │ │ In [141]: ax = plt.subplot(projection=ccrs.PlateCarree())
│ │ │ │ │
│ │ │ │ │ In [142]: da.plot.pcolormesh(x="lon", y="lat", ax=ax)
│ │ │ │ │ -Out[142]:
│ │ │ │ │ +Out[142]:
│ │ │ │ │
│ │ │ │ │ In [143]: ax.scatter(lon, lat, transform=ccrs.PlateCarree())
│ │ │ │ │ -Out[143]:
│ │ │ │ │ +Out[143]:
│ │ │ │ │
│ │ │ │ │ In [144]: ax.coastlines()
│ │ │ │ │ -Out[144]:
│ │ │ │ │ +Out[144]:
│ │ │ │ │
│ │ │ │ │ In [145]: ax.gridlines(draw_labels=True)
│ │ │ │ │ -Out[145]:
│ │ │ │ │ +Out[145]:
│ │ │ │ │ _[___b_u_i_l_d_/_h_t_m_l_/___s_t_a_t_i_c_/_p_l_o_t_t_i_n_g___e_x_a_m_p_l_e___2_d___i_r_r_e_g___m_a_p_._p_n_g_]
│ │ │ │ │ You can however decide to infer the cell boundaries and use the infer_intervals
│ │ │ │ │ keyword:
│ │ │ │ │ In [146]: ax = plt.subplot(projection=ccrs.PlateCarree())
│ │ │ │ │
│ │ │ │ │ In [147]: da.plot.pcolormesh(x="lon", y="lat", ax=ax, infer_intervals=True)
│ │ │ │ │ -Out[147]:
│ │ │ │ │ +Out[147]:
│ │ │ │ │
│ │ │ │ │ In [148]: ax.scatter(lon, lat, transform=ccrs.PlateCarree())
│ │ │ │ │ -Out[148]:
│ │ │ │ │ +Out[148]:
│ │ │ │ │
│ │ │ │ │ In [149]: ax.coastlines()
│ │ │ │ │ -Out[149]:
│ │ │ │ │ +Out[149]:
│ │ │ │ │
│ │ │ │ │ In [150]: ax.gridlines(draw_labels=True)
│ │ │ │ │ -Out[150]:
│ │ │ │ │ +Out[150]:
│ │ │ │ │ _[___b_u_i_l_d_/_h_t_m_l_/___s_t_a_t_i_c_/_p_l_o_t_t_i_n_g___e_x_a_m_p_l_e___2_d___i_r_r_e_g___m_a_p___i_n_f_e_r_._p_n_g_]
│ │ │ │ │ Note
│ │ │ │ │ The data model of xarray does not support datasets with _c_e_l_l_ _b_o_u_n_d_a_r_i_e_s yet. If
│ │ │ │ │ you want to use these coordinates, you’ll have to make the plots outside the
│ │ │ │ │ xarray framework.
│ │ │ │ │ One can also make line plots with multidimensional coordinates. In this case,
│ │ │ │ │ hue must be a dimension name, not a coordinate name.
│ │ │ │ │ In [151]: f, ax = plt.subplots(2, 1)
│ │ │ │ │
│ │ │ │ │ In [152]: da.plot.line(x="lon", hue="y", ax=ax[0])
│ │ │ │ │ Out[152]:
│ │ │ │ │ -[,
│ │ │ │ │ - ,
│ │ │ │ │ - ,
│ │ │ │ │ - ]
│ │ │ │ │ +[,
│ │ │ │ │ + ,
│ │ │ │ │ + ,
│ │ │ │ │ + ]
│ │ │ │ │
│ │ │ │ │ In [153]: da.plot.line(x="lon", hue="x", ax=ax[1])
│ │ │ │ │ Out[153]:
│ │ │ │ │ -[,
│ │ │ │ │ - ,
│ │ │ │ │ - ,
│ │ │ │ │ - ,
│ │ │ │ │ - ]
│ │ │ │ │ +[,
│ │ │ │ │ + ,
│ │ │ │ │ + ,
│ │ │ │ │ + ,
│ │ │ │ │ + ]
│ │ │ │ │ [../_images/plotting_example_2d_hue_xy.png]
│ │ │ │ │ _[_L_o_g_o_ _o_f_ _x_a_r_r_a_y_]
│ │ │ │ │ ************ _xx_aa_rr_rr_aa_yy ************
│ │ │ │ │ ******** NNaavviiggaattiioonn ********
│ │ │ │ │ For users
│ │ │ │ │ * _G_e_t_t_i_n_g_ _S_t_a_r_t_e_d
│ │ │ │ │ * _U_s_e_r_ _G_u_i_d_e
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/reshaping.html
│ │ │ │ @@ -554,15 +554,15 @@
│ │ │ │
│ │ │ │ Reshaping via coarsen
│ │ │ │ Whilst coarsen
is normally used for reducing your data’s resolution by applying a reduction function
│ │ │ │ (see the page on computation ),
│ │ │ │ it can also be used to reorganise your data without applying a computation via construct()
.
│ │ │ │ Taking our example tutorial air temperature dataset over the Northern US
│ │ │ │ In [56]: air = xr . tutorial . open_dataset ( "air_temperature" )[ "air" ]
│ │ │ │ -ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff67c6d450>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │ +ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff90e99450>: Failed to resolve 'github.com' ([Errno -3] Temporary failure in name resolution)"))
│ │ │ │
│ │ │ │
│ │ │ │ In [57]: air . isel ( time = 0 ) . plot ( x = "lon" , y = "lat" )
│ │ │ │ NameError: name 'air' is not defined
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -442,15 +442,15 @@
│ │ │ │ │ a reduction function (see the _p_a_g_e_ _o_n_ _c_o_m_p_u_t_a_t_i_o_n), it can also be used to
│ │ │ │ │ reorganise your data without applying a computation via construct().
│ │ │ │ │ Taking our example tutorial air temperature dataset over the Northern US
│ │ │ │ │ In [56]: air = xr.tutorial.open_dataset("air_temperature")["air"]
│ │ │ │ │ ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries
│ │ │ │ │ exceeded with url: /pydata/xarray-data/raw/master/air_temperature.nc (Caused by
│ │ │ │ │ NameResolutionError(": Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ +0xffff90e99450>: Failed to resolve 'github.com' ([Errno -3] Temporary failure
│ │ │ │ │ in name resolution)"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ In [57]: air.isel(time=0).plot(x="lon", y="lat")
│ │ │ │ │ NameError: name 'air' is not defined
│ │ │ │ │ [../_images/pre_coarsening.png]
│ │ │ │ │ we can split this up into sub-regions of size (9, 18) points using construct():
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/user-guide/testing.html
│ │ │ │ @@ -84,30 +84,33 @@
│ │ │ │ Generating Examples
│ │ │ │ To see an example of what each of these strategies might produce, you can call one followed by the .example()
method,
│ │ │ │ which is a general hypothesis method valid for all strategies.
│ │ │ │ In [2]: import xarray.testing.strategies as xrst
│ │ │ │
│ │ │ │ In [3]: xrst . variables () . example ()
│ │ │ │ Out[3]:
│ │ │ │ -<xarray.Variable (bŻĶ: 1)> Size: 16B
│ │ │ │ -array([inf-2.225e-313j])
│ │ │ │ -Attributes:
│ │ │ │ - : False
│ │ │ │ - Ĕ: [[b'\xc6\xcb#']\n [b'\x1e\xb1\xaf']]
│ │ │ │ - NaN: ['\x08\x86øs¯\x94Ã\x07\x81' '\U0008e3dcçþë\U000caea3\x17\U000e0...
│ │ │ │ +<xarray.Variable (ÌŃ: 1, ŒĖ: 3, ŽO: 5)> Size: 120B
│ │ │ │ +array([[[-5.000e-01, -3.541e+15, -5.000e-01, -5.000e-01, -5.000e-01],
│ │ │ │ + [-5.000e-01, -5.000e-01, -5.000e-01, -5.000e-01, -5.000e-01],
│ │ │ │ + [-5.000e-01, -6.104e-05, -5.000e-01, -5.000e-01, -5.000e-01]]], shape=(1, 3, 5))
│ │ │ │
│ │ │ │ In [4]: xrst . variables () . example ()
│ │ │ │ Out[4]:
│ │ │ │ <xarray.Variable (0: 1)> Size: 1B
│ │ │ │ -array([0], dtype=int8)
│ │ │ │ +array([0], dtype=uint8)
│ │ │ │
│ │ │ │ In [5]: xrst . variables () . example ()
│ │ │ │ Out[5]:
│ │ │ │ -<xarray.Variable (7: 6)> Size: 24B
│ │ │ │ -array([ 39788, 12523, 1851887664, 36979, 3514887451, 74], dtype=uint32)
│ │ │ │ +<xarray.Variable (2ZŻžu: 4, ż: 2)> Size: 64B
│ │ │ │ +array([[ 5094675196065995282, 32272],
│ │ │ │ + [ 5094675196065995282, 5094675196065995282],
│ │ │ │ + [ 5094675196065995282, 5094675196065995282],
│ │ │ │ + [ 5094675196065995282, 12636881898743088449]], dtype=uint64)
│ │ │ │ +Attributes:
│ │ │ │ + : {'': 'Ä', 'ŽŠſŽî': 'Ĕİtgð', 'false': False, 'ĉęžſĬ': array([b'\...
│ │ │ │
│ │ │ │
│ │ │ │ You can see that calling .example()
multiple times will generate different examples, giving you an idea of the wide
│ │ │ │ range of data that the xarray strategies can generate.
│ │ │ │ In your tests however you should not use .example()
- instead you should parameterize your tests with the
│ │ │ │ hypothesis.given()
decorator:
│ │ │ │ In [6]: from hypothesis import given
│ │ │ │ @@ -125,102 +128,115 @@
│ │ │ │ Xarray’s strategies can accept other strategies as arguments, allowing you to customise the contents of the generated
│ │ │ │ examples.
│ │ │ │ # generate a Variable containing an array with a complex number dtype, but all other details still arbitrary
│ │ │ │ In [8]: from hypothesis.extra.numpy import complex_number_dtypes
│ │ │ │
│ │ │ │ In [9]: xrst . variables ( dtype = complex_number_dtypes ()) . example ()
│ │ │ │ Out[9]:
│ │ │ │ -<xarray.Variable (0: 1)> Size: 8B
│ │ │ │ -array([0.+0.j], dtype=complex64)
│ │ │ │ +<xarray.Variable (CĺŻ½³: 1, µĎÉÈ: 5, Įî0E: 5)> Size: 400B
│ │ │ │ +array([[[-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j],
│ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j],
│ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j],
│ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j],
│ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j]]],
│ │ │ │ + shape=(1, 5, 5))
│ │ │ │ +Attributes:
│ │ │ │ + ðÂŽżL: None
│ │ │ │ + Ő: ['ï' '®-\x92\U0001bd3d\U0010ba70vW\U000fda5e']
│ │ │ │ + : ['Ø0\U0001b807']
│ │ │ │
│ │ │ │
│ │ │ │ This also works with custom strategies, or strategies defined in other packages.
│ │ │ │ For example you could imagine creating a chunks
strategy to specify particular chunking patterns for a dask-backed array.
│ │ │ │
│ │ │ │
│ │ │ │ Fixing Arguments
│ │ │ │ If you want to fix one aspect of the data structure, whilst allowing variation in the generated examples
│ │ │ │ over all other aspects, then use hypothesis.strategies.just()
.
│ │ │ │ In [10]: import hypothesis.strategies as st
│ │ │ │
│ │ │ │ # Generates only variable objects with dimensions ["x", "y"]
│ │ │ │ In [11]: xrst . variables ( dims = st . just ([ "x" , "y" ])) . example ()
│ │ │ │ Out[11]:
│ │ │ │ -<xarray.Variable (x: 6, y: 6)> Size: 72B
│ │ │ │ -array([[ -0., -0., -0., -0., -0., -0.],
│ │ │ │ - [ -0., -0., -0., -0., -0., -0.],
│ │ │ │ - [ -0., -0., -0., -0., -0., -0.],
│ │ │ │ - [ -0., -0., -0., -0., -inf, -0.],
│ │ │ │ - [ -0., -0., -0., -0., -0., -0.],
│ │ │ │ - [ 0., -0., -0., -0., -0., 0.]], shape=(6, 6), dtype=float16)
│ │ │ │ +<xarray.Variable (x: 5, y: 6)> Size: 60B
│ │ │ │ +array([[ -6591, -6591, -6591, -6591, -6591, -6591],
│ │ │ │ + [ -6591, -6591, -6591, -6591, -6591, -6591],
│ │ │ │ + [ -6591, -6591, -6591, -6591, -6591, -6591],
│ │ │ │ + [-31791, -6591, 8074, 24027, -6591, -6591],
│ │ │ │ + [ -6591, -6591, -6591, -6591, -6591, -6591]], shape=(5, 6), dtype=int16)
│ │ │ │ +Attributes:
│ │ │ │ + À: {}
│ │ │ │ + : {}
│ │ │ │ + wJ: {'ţE': False}
│ │ │ │
│ │ │ │
│ │ │ │ (This is technically another example of chaining strategies - hypothesis.strategies.just()
is simply a
│ │ │ │ special strategy that just contains a single example.)
│ │ │ │ To fix the length of dimensions you can instead pass dims
as a mapping of dimension names to lengths
│ │ │ │ (i.e. following xarray objects’ .sizes()
property), e.g.
│ │ │ │ # Generates only variables with dimensions ["x", "y"], of lengths 2 & 3 respectively
│ │ │ │ In [12]: xrst . variables ( dims = st . just ({ "x" : 2 , "y" : 3 })) . example ()
│ │ │ │ Out[12]:
│ │ │ │ -<xarray.Variable (x: 2, y: 3)> Size: 48B
│ │ │ │ -array([[nan, nan, nan],
│ │ │ │ - [nan, nan, nan]])
│ │ │ │ +<xarray.Variable (x: 2, y: 3)> Size: 96B
│ │ │ │ +array([[6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j],
│ │ │ │ + [6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j]])
│ │ │ │ Attributes:
│ │ │ │ - : {'NÞúÖż': False, '': 'ſ¼', 'ŻŽÀÌ': None, '𚞌': array([b'\xa4\...
│ │ │ │ + äńžIú: {'ħřŕ': array([5438830300534694632, 29437], dtype...
│ │ │ │ + øļFwŻ: {'ŽÁÔzî': array([[ 9963],\n [26699]], dtype='>i2'), '': N...
│ │ │ │
│ │ │ │
│ │ │ │ You can also use this to specify that you want examples which are missing some part of the data structure, for instance
│ │ │ │ # Generates a Variable with no attributes
│ │ │ │ In [13]: xrst . variables ( attrs = st . just ({})) . example ()
│ │ │ │ Out[13]:
│ │ │ │ -<xarray.Variable (0: 1)> Size: 1B
│ │ │ │ -array([0], dtype=uint8)
│ │ │ │ +<xarray.Variable (ŻŠſ: 2)> Size: 16B
│ │ │ │ +array([ 2.22e-16+2.j , -6.66e+16+0.5j], dtype=complex64)
│ │ │ │
│ │ │ │
│ │ │ │ Through a combination of chaining strategies and fixing arguments, you can specify quite complicated requirements on the
│ │ │ │ objects your chained strategy will generate.
│ │ │ │ In [14]: fixed_x_variable_y_maybe_z = st . fixed_dictionaries (
│ │ │ │ ....: { "x" : st . just ( 2 ), "y" : st . integers ( 3 , 4 )}, optional = { "z" : st . just ( 2 )}
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [15]: fixed_x_variable_y_maybe_z . example ()
│ │ │ │ -Out[15]: {'x': 2, 'y': 3, 'z': 2}
│ │ │ │ +Out[15]: {'x': 2, 'y': 3}
│ │ │ │
│ │ │ │ In [16]: special_variables = xrst . variables ( dims = fixed_x_variable_y_maybe_z )
│ │ │ │
│ │ │ │ In [17]: special_variables . example ()
│ │ │ │ Out[17]:
│ │ │ │ -<xarray.Variable (x: 2, y: 3)> Size: 96B
│ │ │ │ -array([[-9.007e+015 -infj, 2.225e-313+5.000e-01j, -1.900e+000+2.000e+00j],
│ │ │ │ - [ inf-1.175e-38j, 2.225e-311 +nanj, -1.000e+007-1.401e-45j]])
│ │ │ │ +<xarray.Variable (x: 2, y: 4)> Size: 16B
│ │ │ │ +array([[-32538, -28724, -22728, -22319],
│ │ │ │ + [ 31291, 23956, -32538, -16864]], dtype=int16)
│ │ │ │ Attributes:
│ │ │ │ - żŠĺż: ž
│ │ │ │ - jŽş: Ď
│ │ │ │ - : [1.175e-38 1.000e+00]
│ │ │ │ - żżŽ¼Ă: True
│ │ │ │ - ż:
│ │ │ │ + äPDś: [[ nan -1.00e+00]\n [ inf 5.96e-08]]
│ │ │ │ + : None
│ │ │ │ + ŜſUőŽ: [[-10000000.]]
│ │ │ │ + Ń: ['-25252734927764514-07-14' '-17372090436313634-11-02']
│ │ │ │ + Ż: None
│ │ │ │ + đµĴ: False
│ │ │ │ + ĺH: None
│ │ │ │ + Ċµ: õſfÁİ
│ │ │ │ + D: [['ü\U000ed619a𗫝VK\U000a0ddf#[' '\U00065b43ü¹']]
│ │ │ │
│ │ │ │ In [18]: special_variables . example ()
│ │ │ │ Out[18]:
│ │ │ │ -<xarray.Variable (x: 2, y: 4)> Size: 64B
│ │ │ │ -array([[ 1.000e+000, nan, -2.220e-016, 1.192e-007],
│ │ │ │ - [-1.000e-005, -2.810e-262, -1.798e+308, -1.798e+308]])
│ │ │ │ +<xarray.Variable (x: 2, y: 3, z: 2)> Size: 96B
│ │ │ │ +array([[[ 1, 48720],
│ │ │ │ + [ 1286412330485489918, 28459],
│ │ │ │ + [ 7557085660993304329, 8665727290046625246]],
│ │ │ │ +
│ │ │ │ + [[14919071171053671319, 444790435],
│ │ │ │ + [ 30680, 89],
│ │ │ │ + [ 14063, 50]]], shape=(2, 3, 2), dtype=uint64)
│ │ │ │ Attributes:
│ │ │ │ - : [ 1 255]
│ │ │ │ - NIL: [15103 24540]
│ │ │ │ - VbĘżſ: True
│ │ │ │ - ş: False
│ │ │ │ - ſQܼ: True
│ │ │ │ - ŅžŘű: 6żŽ
│ │ │ │ - Jhžŧş: None
│ │ │ │ - ŻNÔŞņ: False
│ │ │ │ - ŔĝĝĶŎ: True
│ │ │ │ - ŊċżŽÛ: None
│ │ │ │ - Vàu: None
│ │ │ │ + ĻęūÄő: [b'\x02\xad']
│ │ │ │ + Ś: ĪŽÃ
│ │ │ │
│ │ │ │
│ │ │ │ Here we have used one of hypothesis’ built-in strategies hypothesis.strategies.fixed_dictionaries()
to create a
│ │ │ │ strategy which generates mappings of dimension names to lengths (i.e. the size
of the xarray object we want).
│ │ │ │ This particular strategy will always generate an x
dimension of length 2, and a y
dimension of
│ │ │ │ length either 3 or 4, and will sometimes also generate a z
dimension of length 2.
│ │ │ │ By feeding this strategy for dictionaries into the dims
argument of xarray’s variables()
strategy,
│ │ │ │ @@ -321,43 +337,45 @@
│ │ │ │ ....: array_strategy_fn = xps . arrays ,
│ │ │ │ ....: dtype = xps . scalar_dtypes (),
│ │ │ │ ....: )
│ │ │ │ ....:
│ │ │ │
│ │ │ │ In [32]: xp_variables . example ()
│ │ │ │ Out[32]:
│ │ │ │ -<xarray.Variable (0: 1)> Size: 4B
│ │ │ │ -array([0.], dtype=float32)
│ │ │ │ +<xarray.Variable (ä: 2)> Size: 32B
│ │ │ │ +array([nan-6.104e-05j, 0.5 -infj])
│ │ │ │ +Attributes:
│ │ │ │ + : {'ô': 'ĭĄÃĕ'}
│ │ │ │
│ │ │ │
│ │ │ │ Another array API-compliant duck array library would replace the import, e.g. import cupy as cp
instead.
│ │ │ │
│ │ │ │
│ │ │ │ Testing over Subsets of Dimensions
│ │ │ │ A common task when testing xarray user code is checking that your function works for all valid input dimensions.
│ │ │ │ We can chain strategies to achieve this, for which the helper strategy unique_subset_of()
│ │ │ │ is useful.
│ │ │ │ It works for lists of dimension names
│ │ │ │ In [33]: dims = [ "x" , "y" , "z" ]
│ │ │ │
│ │ │ │ In [34]: xrst . unique_subset_of ( dims ) . example ()
│ │ │ │ -Out[34]: []
│ │ │ │ +Out[34]: ['y']
│ │ │ │
│ │ │ │ In [35]: xrst . unique_subset_of ( dims ) . example ()
│ │ │ │ Out[35]: ['y', 'x', 'z']
│ │ │ │
│ │ │ │
│ │ │ │ as well as for mappings of dimension names to sizes
│ │ │ │ In [36]: dim_sizes = { "x" : 2 , "y" : 3 , "z" : 4 }
│ │ │ │
│ │ │ │ In [37]: xrst . unique_subset_of ( dim_sizes ) . example ()
│ │ │ │ -Out[37]: {'x': 2, 'z': 4}
│ │ │ │ +Out[37]: {'x': 2, 'z': 4, 'y': 3}
│ │ │ │
│ │ │ │ In [38]: xrst . unique_subset_of ( dim_sizes ) . example ()
│ │ │ │ -Out[38]: {'y': 3}
│ │ │ │ +Out[38]: {'x': 2}
│ │ │ │
│ │ │ │
│ │ │ │ This is useful because operations like reductions can be performed over any subset of the xarray object’s dimensions.
│ │ │ │ For example we can write a pytest test that tests that a reduction gives the expected result when applying that reduction
│ │ │ │ along any possible valid subset of the Variable’s dimensions.
│ │ │ │ import numpy.testing as npt
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -28,32 +28,35 @@
│ │ │ │ │ To see an example of what each of these strategies might produce, you can call
│ │ │ │ │ one followed by the .example() method, which is a general hypothesis method
│ │ │ │ │ valid for all strategies.
│ │ │ │ │ In [2]: import xarray.testing.strategies as xrst
│ │ │ │ │
│ │ │ │ │ In [3]: xrst.variables().example()
│ │ │ │ │ Out[3]:
│ │ │ │ │ - Size: 16B
│ │ │ │ │ -array([inf-2.225e-313j])
│ │ │ │ │ -Attributes:
│ │ │ │ │ - : False
│ │ │ │ │ - Ĕ: [[b'\xc6\xcb#']\n [b'\x1e\xb1\xaf']]
│ │ │ │ │ - NaN: ['\x08\x86øs¯\x94Ã\x07\x81'
│ │ │ │ │ -'\U0008e3dcçþë\U000caea3\x17\U000e0...
│ │ │ │ │ + Size: 120B
│ │ │ │ │ +array([[[-5.000e-01, -3.541e+15, -5.000e-01, -5.000e-01, -5.000e-01],
│ │ │ │ │ + [-5.000e-01, -5.000e-01, -5.000e-01, -5.000e-01, -5.000e-01],
│ │ │ │ │ + [-5.000e-01, -6.104e-05, -5.000e-01, -5.000e-01, -5.000e-01]]], shape=
│ │ │ │ │ +(1, 3, 5))
│ │ │ │ │
│ │ │ │ │ In [4]: xrst.variables().example()
│ │ │ │ │ Out[4]:
│ │ │ │ │ Size: 1B
│ │ │ │ │ -array([0], dtype=int8)
│ │ │ │ │ +array([0], dtype=uint8)
│ │ │ │ │
│ │ │ │ │ In [5]: xrst.variables().example()
│ │ │ │ │ Out[5]:
│ │ │ │ │ - Size: 24B
│ │ │ │ │ -array([ 39788, 12523, 1851887664, 36979, 3514887451, 74],
│ │ │ │ │ -dtype=uint32)
│ │ │ │ │ + Size: 64B
│ │ │ │ │ +array([[ 5094675196065995282, 32272],
│ │ │ │ │ + [ 5094675196065995282, 5094675196065995282],
│ │ │ │ │ + [ 5094675196065995282, 5094675196065995282],
│ │ │ │ │ + [ 5094675196065995282, 12636881898743088449]], dtype=uint64)
│ │ │ │ │ +Attributes:
│ │ │ │ │ + : {'': 'Ä', 'ŽŠſŽî': 'Ĕİtgð', 'false': False, 'ĉęžſĬ': array(
│ │ │ │ │ +[b'\...
│ │ │ │ │ You can see that calling .example() multiple times will generate different
│ │ │ │ │ examples, giving you an idea of the wide range of data that the xarray
│ │ │ │ │ strategies can generate.
│ │ │ │ │ In your tests however you should not use .example() - instead you should
│ │ │ │ │ parameterize your tests with the hypothesis.given() decorator:
│ │ │ │ │ In [6]: from hypothesis import given
│ │ │ │ │ In [7]: @given(xrst.variables())
│ │ │ │ │ @@ -65,103 +68,122 @@
│ │ │ │ │ customise the contents of the generated examples.
│ │ │ │ │ # generate a Variable containing an array with a complex number dtype, but all
│ │ │ │ │ other details still arbitrary
│ │ │ │ │ In [8]: from hypothesis.extra.numpy import complex_number_dtypes
│ │ │ │ │
│ │ │ │ │ In [9]: xrst.variables(dtype=complex_number_dtypes()).example()
│ │ │ │ │ Out[9]:
│ │ │ │ │ - Size: 8B
│ │ │ │ │ -array([0.+0.j], dtype=complex64)
│ │ │ │ │ + Size: 400B
│ │ │ │ │ +array([[[-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -
│ │ │ │ │ +inf-10000000.j],
│ │ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -
│ │ │ │ │ +inf-10000000.j],
│ │ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -
│ │ │ │ │ +inf-10000000.j],
│ │ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -
│ │ │ │ │ +inf-10000000.j],
│ │ │ │ │ + [-inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -inf-10000000.j, -
│ │ │ │ │ +inf-10000000.j]]],
│ │ │ │ │ + shape=(1, 5, 5))
│ │ │ │ │ +Attributes:
│ │ │ │ │ + ðÂŽżL: None
│ │ │ │ │ + Ő: ['ï' '®-\x92\U0001bd3d\U0010ba70vW\U000fda5e']
│ │ │ │ │ + : ['Ø0\U0001b807']
│ │ │ │ │ This also works with custom strategies, or strategies defined in other
│ │ │ │ │ packages. For example you could imagine creating a chunks strategy to specify
│ │ │ │ │ particular chunking patterns for a dask-backed array.
│ │ │ │ │ ******** FFiixxiinngg AArrgguummeennttss_?¶ ********
│ │ │ │ │ If you want to fix one aspect of the data structure, whilst allowing variation
│ │ │ │ │ in the generated examples over all other aspects, then use
│ │ │ │ │ hypothesis.strategies.just().
│ │ │ │ │ In [10]: import hypothesis.strategies as st
│ │ │ │ │
│ │ │ │ │ # Generates only variable objects with dimensions ["x", "y"]
│ │ │ │ │ In [11]: xrst.variables(dims=st.just(["x", "y"])).example()
│ │ │ │ │ Out[11]:
│ │ │ │ │ - Size: 72B
│ │ │ │ │ -array([[ -0., -0., -0., -0., -0., -0.],
│ │ │ │ │ - [ -0., -0., -0., -0., -0., -0.],
│ │ │ │ │ - [ -0., -0., -0., -0., -0., -0.],
│ │ │ │ │ - [ -0., -0., -0., -0., -inf, -0.],
│ │ │ │ │ - [ -0., -0., -0., -0., -0., -0.],
│ │ │ │ │ - [ 0., -0., -0., -0., -0., 0.]], shape=(6, 6), dtype=float16)
│ │ │ │ │ + Size: 60B
│ │ │ │ │ +array([[ -6591, -6591, -6591, -6591, -6591, -6591],
│ │ │ │ │ + [ -6591, -6591, -6591, -6591, -6591, -6591],
│ │ │ │ │ + [ -6591, -6591, -6591, -6591, -6591, -6591],
│ │ │ │ │ + [-31791, -6591, 8074, 24027, -6591, -6591],
│ │ │ │ │ + [ -6591, -6591, -6591, -6591, -6591, -6591]], shape=(5, 6),
│ │ │ │ │ +dtype=int16)
│ │ │ │ │ +Attributes:
│ │ │ │ │ + À: {}
│ │ │ │ │ + : {}
│ │ │ │ │ + wJ: {'ţE': False}
│ │ │ │ │ (This is technically another example of chaining strategies -
│ │ │ │ │ hypothesis.strategies.just() is simply a special strategy that just contains a
│ │ │ │ │ single example.)
│ │ │ │ │ To fix the length of dimensions you can instead pass dims as a mapping of
│ │ │ │ │ dimension names to lengths (i.e. following xarray objects’ .sizes() property),
│ │ │ │ │ e.g.
│ │ │ │ │ # Generates only variables with dimensions ["x", "y"], of lengths 2 & 3
│ │ │ │ │ respectively
│ │ │ │ │ In [12]: xrst.variables(dims=st.just({"x": 2, "y": 3})).example()
│ │ │ │ │ Out[12]:
│ │ │ │ │ - Size: 48B
│ │ │ │ │ -array([[nan, nan, nan],
│ │ │ │ │ - [nan, nan, nan]])
│ │ │ │ │ + Size: 96B
│ │ │ │ │ +array([[6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j],
│ │ │ │ │ + [6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j, 6.671e+16+8.481e-125j]])
│ │ │ │ │ Attributes:
│ │ │ │ │ - : {'NÞúÖż': False, '': 'ſ¼', 'ŻŽÀÌ': None, '𚞌': array(
│ │ │ │ │ -[b'\xa4\...
│ │ │ │ │ + äńžIú: {'ħřŕ': array([5438830300534694632, 29437],
│ │ │ │ │ +dtype...
│ │ │ │ │ + øļFwŻ: {'ŽÁÔzî': array([[ 9963],\n [26699]], dtype='>i2'), '':
│ │ │ │ │ +N...
│ │ │ │ │ You can also use this to specify that you want examples which are missing some
│ │ │ │ │ part of the data structure, for instance
│ │ │ │ │ # Generates a Variable with no attributes
│ │ │ │ │ In [13]: xrst.variables(attrs=st.just({})).example()
│ │ │ │ │ Out[13]:
│ │ │ │ │ - Size: 1B
│ │ │ │ │ -array([0], dtype=uint8)
│ │ │ │ │ + Size: 16B
│ │ │ │ │ +array([ 2.22e-16+2.j , -6.66e+16+0.5j], dtype=complex64)
│ │ │ │ │ Through a combination of chaining strategies and fixing arguments, you can
│ │ │ │ │ specify quite complicated requirements on the objects your chained strategy
│ │ │ │ │ will generate.
│ │ │ │ │ In [14]: fixed_x_variable_y_maybe_z = st.fixed_dictionaries(
│ │ │ │ │ ....: {"x": st.just(2), "y": st.integers(3, 4)}, optional={"z": st.just
│ │ │ │ │ (2)}
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [15]: fixed_x_variable_y_maybe_z.example()
│ │ │ │ │ -Out[15]: {'x': 2, 'y': 3, 'z': 2}
│ │ │ │ │ +Out[15]: {'x': 2, 'y': 3}
│ │ │ │ │
│ │ │ │ │ In [16]: special_variables = xrst.variables(dims=fixed_x_variable_y_maybe_z)
│ │ │ │ │
│ │ │ │ │ In [17]: special_variables.example()
│ │ │ │ │ Out[17]:
│ │ │ │ │ - Size: 96B
│ │ │ │ │ -array([[-9.007e+015 -infj, 2.225e-313+5.000e-01j, -
│ │ │ │ │ -1.900e+000+2.000e+00j],
│ │ │ │ │ - [ inf-1.175e-38j, 2.225e-311 +nanj, -1.000e+007-1.401e-
│ │ │ │ │ -45j]])
│ │ │ │ │ + Size: 16B
│ │ │ │ │ +array([[-32538, -28724, -22728, -22319],
│ │ │ │ │ + [ 31291, 23956, -32538, -16864]], dtype=int16)
│ │ │ │ │ Attributes:
│ │ │ │ │ - żŠĺż: ž
│ │ │ │ │ - jŽş: Ď
│ │ │ │ │ - : [1.175e-38 1.000e+00]
│ │ │ │ │ - żżŽ¼Ă: True
│ │ │ │ │ - ż:
│ │ │ │ │ + äPDś: [[ nan -1.00e+00]\n [ inf 5.96e-08]]
│ │ │ │ │ + : None
│ │ │ │ │ + ŜſUőŽ: [[-10000000.]]
│ │ │ │ │ + Ń: ['-25252734927764514-07-14' '-17372090436313634-11-02']
│ │ │ │ │ + Ż: None
│ │ │ │ │ + đµĴ: False
│ │ │ │ │ + ĺH: None
│ │ │ │ │ + Ċµ: õſfÁİ
│ │ │ │ │ + D: [['ü\U000ed619a𗫝VK\U000a0ddf#[' '\U00065b43ü¹']]
│ │ │ │ │
│ │ │ │ │ In [18]: special_variables.example()
│ │ │ │ │ Out[18]:
│ │ │ │ │ - Size: 64B
│ │ │ │ │ -array([[ 1.000e+000, nan, -2.220e-016, 1.192e-007],
│ │ │ │ │ - [-1.000e-005, -2.810e-262, -1.798e+308, -1.798e+308]])
│ │ │ │ │ + Size: 96B
│ │ │ │ │ +array([[[ 1, 48720],
│ │ │ │ │ + [ 1286412330485489918, 28459],
│ │ │ │ │ + [ 7557085660993304329, 8665727290046625246]],
│ │ │ │ │ +
│ │ │ │ │ + [[14919071171053671319, 444790435],
│ │ │ │ │ + [ 30680, 89],
│ │ │ │ │ + [ 14063, 50]]], shape=(2, 3, 2),
│ │ │ │ │ +dtype=uint64)
│ │ │ │ │ Attributes:
│ │ │ │ │ - : [ 1 255]
│ │ │ │ │ - NIL: [15103 24540]
│ │ │ │ │ - VbĘżſ: True
│ │ │ │ │ - ş: False
│ │ │ │ │ - ſQܼ: True
│ │ │ │ │ - ŅžŘű: 6żŽ
│ │ │ │ │ - Jhžŧş: None
│ │ │ │ │ - ŻNÔŞņ: False
│ │ │ │ │ - ŔĝĝĶŎ: True
│ │ │ │ │ - ŊċżŽÛ: None
│ │ │ │ │ - Vàu: None
│ │ │ │ │ + ĻęūÄő: [b'\x02\xad']
│ │ │ │ │ + Ś: ĪŽÃ
│ │ │ │ │ Here we have used one of hypothesis’ built-in strategies
│ │ │ │ │ hypothesis.strategies.fixed_dictionaries() to create a strategy which generates
│ │ │ │ │ mappings of dimension names to lengths (i.e. the size of the xarray object we
│ │ │ │ │ want). This particular strategy will always generate an x dimension of length
│ │ │ │ │ 2, and a y dimension of length either 3 or 4, and will sometimes also generate
│ │ │ │ │ a z dimension of length 2. By feeding this strategy for dictionaries into the
│ │ │ │ │ dims argument of xarray’s variables() strategy, we can generate arbitrary
│ │ │ │ │ @@ -255,38 +277,40 @@
│ │ │ │ │ ....: array_strategy_fn=xps.arrays,
│ │ │ │ │ ....: dtype=xps.scalar_dtypes(),
│ │ │ │ │ ....: )
│ │ │ │ │ ....:
│ │ │ │ │
│ │ │ │ │ In [32]: xp_variables.example()
│ │ │ │ │ Out[32]:
│ │ │ │ │ - Size: 4B
│ │ │ │ │ -array([0.], dtype=float32)
│ │ │ │ │ + Size: 32B
│ │ │ │ │ +array([nan-6.104e-05j, 0.5 -infj])
│ │ │ │ │ +Attributes:
│ │ │ │ │ + : {'ô': 'ĭĄÃĕ'}
│ │ │ │ │ Another array API-compliant duck array library would replace the import, e.g.
│ │ │ │ │ import cupy as cp instead.
│ │ │ │ │ ******** TTeessttiinngg oovveerr SSuubbsseettss ooff DDiimmeennssiioonnss_?¶ ********
│ │ │ │ │ A common task when testing xarray user code is checking that your function
│ │ │ │ │ works for all valid input dimensions. We can chain strategies to achieve this,
│ │ │ │ │ for which the helper strategy unique_subset_of() is useful.
│ │ │ │ │ It works for lists of dimension names
│ │ │ │ │ In [33]: dims = ["x", "y", "z"]
│ │ │ │ │
│ │ │ │ │ In [34]: xrst.unique_subset_of(dims).example()
│ │ │ │ │ -Out[34]: []
│ │ │ │ │ +Out[34]: ['y']
│ │ │ │ │
│ │ │ │ │ In [35]: xrst.unique_subset_of(dims).example()
│ │ │ │ │ Out[35]: ['y', 'x', 'z']
│ │ │ │ │ as well as for mappings of dimension names to sizes
│ │ │ │ │ In [36]: dim_sizes = {"x": 2, "y": 3, "z": 4}
│ │ │ │ │
│ │ │ │ │ In [37]: xrst.unique_subset_of(dim_sizes).example()
│ │ │ │ │ -Out[37]: {'x': 2, 'z': 4}
│ │ │ │ │ +Out[37]: {'x': 2, 'z': 4, 'y': 3}
│ │ │ │ │
│ │ │ │ │ In [38]: xrst.unique_subset_of(dim_sizes).example()
│ │ │ │ │ -Out[38]: {'y': 3}
│ │ │ │ │ +Out[38]: {'x': 2}
│ │ │ │ │ This is useful because operations like reductions can be performed over any
│ │ │ │ │ subset of the xarray object’s dimensions. For example we can write a pytest
│ │ │ │ │ test that tests that a reduction gives the expected result when applying that
│ │ │ │ │ reduction along any possible valid subset of the Variable’s dimensions.
│ │ │ │ │ import numpy.testing as npt
│ │ │ ├── ./usr/share/doc/python-xarray-doc/html/whats-new.html
│ │ │ │ @@ -8191,15 +8191,15 @@
│ │ │ │ New xray.Dataset.where
method for masking xray objects according
│ │ │ │ to some criteria. This works particularly well with multi-dimensional data:
│ │ │ │ In [45]: ds = xray . Dataset ( coords = { "x" : range ( 100 ), "y" : range ( 100 )})
│ │ │ │
│ │ │ │ In [46]: ds [ "distance" ] = np . sqrt ( ds . x ** 2 + ds . y ** 2 )
│ │ │ │
│ │ │ │ In [47]: ds . distance . where ( ds . distance < 100 ) . plot ()
│ │ │ │ -Out[47]: <matplotlib.collections.QuadMesh at 0xffff68711950>
│ │ │ │ +Out[47]: <matplotlib.collections.QuadMesh at 0xffff9193e350>
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │ Added new methods xray.DataArray.diff
and xray.Dataset.diff
│ │ │ │ for finite difference calculations along a given axis.
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -5286,15 +5286,15 @@
│ │ │ │ │ * New xray.Dataset.where method for masking xray objects according to some
│ │ │ │ │ criteria. This works particularly well with multi-dimensional data:
│ │ │ │ │ In [45]: ds = xray.Dataset(coords={"x": range(100), "y": range(100)})
│ │ │ │ │
│ │ │ │ │ In [46]: ds["distance"] = np.sqrt(ds.x**2 + ds.y**2)
│ │ │ │ │
│ │ │ │ │ In [47]: ds.distance.where(ds.distance < 100).plot()
│ │ │ │ │ - Out[47]:
│ │ │ │ │ + Out[47]:
│ │ │ │ │ _[___i_m_a_g_e_s_/_w_h_e_r_e___e_x_a_m_p_l_e_._p_n_g_]
│ │ │ │ │ * Added new methods xray.DataArray.diff and xray.Dataset.diff for finite
│ │ │ │ │ difference calculations along a given axis.
│ │ │ │ │ * New xray.DataArray.to_masked_array convenience method for returning a
│ │ │ │ │ numpy.ma.MaskedArray.
│ │ │ │ │ In [48]: da = xray.DataArray(np.random.random_sample(size=(5, 4)))