Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·75760cf44338996f18508e004d0a8679·2042784·doc·optional·python-xarray-doc_0.16.2-2_all.deb |
2 | ·9a2456450e2c51d89ccb00d8c4a100d8·486600·python·optional·python3-xarray_0.16.2-2_all.deb | 2 | ·9a2456450e2c51d89ccb00d8c4a100d8·486600·python·optional·python3-xarray_0.16.2-2_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2021-01-02·13:06:33.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2021-01-02·13:06:33.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····4984·2021-01-02·13:06:33.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····4984·2021-01-02·13:06:33.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··2037 | 3 | -rw-r--r--···0········0········0··2037608·2021-01-02·13:06:33.000000·data.tar.xz |
Offset 178, 54 lines modified | Offset 178, 54 lines modified | ||
178 | -rw-r--r--···0·root·········(0)·root·········(0)······412·2020-12-01·07:05:15.000000·./usr/share/doc/python-xarray-doc/html/_static/style.css | 178 | -rw-r--r--···0·root·········(0)·root·········(0)······412·2020-12-01·07:05:15.000000·./usr/share/doc/python-xarray-doc/html/_static/style.css |
179 | -rw-r--r--···0·root·········(0)·root·········(0)····23991·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/_static/where_example.png | 179 | -rw-r--r--···0·root·········(0)·root·········(0)····23991·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/_static/where_example.png |
180 | -rw-r--r--···0·root·········(0)·root·········(0)·····8018·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/api-hidden.html | 180 | -rw-r--r--···0·root·········(0)·root·········(0)·····8018·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/api-hidden.html |
181 | -rw-r--r--···0·root·········(0)·root·········(0)····35061·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/api.html | 181 | -rw-r--r--···0·root·········(0)·root·········(0)····35061·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/api.html |
182 | -rw-r--r--···0·root·········(0)·root·········(0)····57284·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/combining.html | 182 | -rw-r--r--···0·root·········(0)·root·········(0)····57284·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/combining.html |
183 | -rw-r--r--···0·root·········(0)·root·········(0)···110206·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/computation.html | 183 | -rw-r--r--···0·root·········(0)·root·········(0)···110206·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/computation.html |
184 | -rw-r--r--···0·root·········(0)·root·········(0)····90070·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/contributing.html | 184 | -rw-r--r--···0·root·········(0)·root·········(0)····90070·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/contributing.html |
185 | -rw-r--r--···0·root·········(0)·root·········(0)····79 | 185 | -rw-r--r--···0·root·········(0)·root·········(0)····79208·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/dask.html |
186 | -rw-r--r--···0·root·········(0)·root·········(0)···102955·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/data-structures.html | 186 | -rw-r--r--···0·root·········(0)·root·········(0)···102955·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/data-structures.html |
187 | -rw-r--r--···0·root·········(0)·root·········(0)····17225·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/duckarrays.html | 187 | -rw-r--r--···0·root·········(0)·root·········(0)····17225·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/duckarrays.html |
188 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ | 188 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ |
189 | -rw-r--r--···0·root·········(0)·root·········(0)····6808 | 189 | -rw-r--r--···0·root·········(0)·root·········(0)····68085·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.html |
190 | -rw-r--r--···0·root·········(0)·root·········(0)·····5090·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz | 190 | -rw-r--r--···0·root·········(0)·root·········(0)·····5090·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ERA5-GRIB-example.ipynb.gz |
191 | -rw-r--r--···0·root·········(0)·root·········(0)····4951 | 191 | -rw-r--r--···0·root·········(0)·root·········(0)····49515·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.html |
192 | -rw-r--r--···0·root·········(0)·root·········(0)····18700·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz | 192 | -rw-r--r--···0·root·········(0)·root·········(0)····18700·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/ROMS_ocean_model.ipynb.gz |
193 | -rw-r--r--···0·root·········(0)·root·········(0)···1074 | 193 | -rw-r--r--···0·root·········(0)·root·········(0)···107470·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.html |
194 | -rw-r--r--···0·root·········(0)·root·········(0)·····8091·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz | 194 | -rw-r--r--···0·root·········(0)·root·········(0)·····8091·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/apply_ufunc_vectorize_1d.ipynb.gz |
195 | -rw-r--r--···0·root·········(0)·root·········(0)····3821 | 195 | -rw-r--r--···0·root·········(0)·root·········(0)····38213·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.html |
196 | -rw-r--r--···0·root·········(0)·root·········(0)····1455 | 196 | -rw-r--r--···0·root·········(0)·root·········(0)····14555·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/area_weighted_temperature.ipynb.gz |
197 | -rw-r--r--···0·root·········(0)·root·········(0)····4784 | 197 | -rw-r--r--···0·root·········(0)·root·········(0)····47847·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.html |
198 | -rw-r--r--···0·root·········(0)·root·········(0)·····316 | 198 | -rw-r--r--···0·root·········(0)·root·········(0)·····3168·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/monthly-means.ipynb.gz |
199 | -rw-r--r--···0·root·········(0)·root·········(0)····4191 | 199 | -rw-r--r--···0·root·········(0)·root·········(0)····41914·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.html |
200 | -rw-r--r--···0·root·········(0)·root·········(0)·····7546·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz | 200 | -rw-r--r--···0·root·········(0)·root·········(0)·····7546·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/multidimensional-coords.ipynb.gz |
201 | -rw-r--r--···0·root·········(0)·root·········(0)····8121 | 201 | -rw-r--r--···0·root·········(0)·root·········(0)····81213·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.html |
202 | -rw-r--r--···0·root·········(0)·root·········(0)·····530 | 202 | -rw-r--r--···0·root·········(0)·root·········(0)·····5302·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/visualization_gallery.ipynb.gz |
203 | -rw-r--r--···0·root·········(0)·root·········(0)····90692·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html | 203 | -rw-r--r--···0·root·········(0)·root·········(0)····90692·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.html |
204 | -rw-r--r--···0·root·········(0)·root·········(0)···20863 | 204 | -rw-r--r--···0·root·········(0)·root·········(0)···208635·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples/weather-data.ipynb.gz |
205 | -rw-r--r--···0·root·········(0)·root·········(0)····12844·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples.html | 205 | -rw-r--r--···0·root·········(0)·root·········(0)····12844·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/examples.html |
206 | -rw-r--r--···0·root·········(0)·root·········(0)····33153·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/faq.html | 206 | -rw-r--r--···0·root·········(0)·root·········(0)····33153·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/faq.html |
207 | -rw-r--r--···0·root·········(0)·root·········(0)·····9794·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/genindex.html | 207 | -rw-r--r--···0·root·········(0)·root·········(0)·····9794·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/genindex.html |
208 | -rw-r--r--···0·root·········(0)·root·········(0)····38989·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/groupby.html | 208 | -rw-r--r--···0·root·········(0)·root·········(0)····38989·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/groupby.html |
209 | -rw-r--r--···0·root·········(0)·root·········(0)····19098·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/howdoi.html | 209 | -rw-r--r--···0·root·········(0)·root·········(0)····19098·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/howdoi.html |
210 | -rw-r--r--···0·root·········(0)·root·········(0)····17531·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/index.html | 210 | -rw-r--r--···0·root·········(0)·root·········(0)····17531·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/index.html |
211 | -rw-r--r--···0·root·········(0)·root·········(0)···18301 | 211 | -rw-r--r--···0·root·········(0)·root·········(0)···183016·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/indexing.html |
212 | -rw-r--r--···0·root·········(0)·root·········(0)····24660·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/installing.html | 212 | -rw-r--r--···0·root·········(0)·root·········(0)····24660·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/installing.html |
213 | -rw-r--r--···0·root·········(0)·root·········(0)····3414 | 213 | -rw-r--r--···0·root·········(0)·root·········(0)····34149·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/internals.html |
214 | -rw-r--r--···0·root·········(0)·root·········(0)····8996 | 214 | -rw-r--r--···0·root·········(0)·root·········(0)····89962·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/interpolation.html |
215 | -rw-r--r--···0·root·········(0)·root·········(0)···125219·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/io.html | 215 | -rw-r--r--···0·root·········(0)·root·········(0)···125219·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/io.html |
216 | -rw-r--r--···0·root·········(0)·root·········(0)····13348·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/objects.inv | 216 | -rw-r--r--···0·root·········(0)·root·········(0)····13348·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/objects.inv |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····41507·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/pandas.html | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····41507·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/pandas.html |
218 | -rw-r--r--···0·root·········(0)·root·········(0)···20853 | 218 | -rw-r--r--···0·root·········(0)·root·········(0)···208537·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/plotting.html |
219 | -rw-r--r--···0·root·········(0)·root·········(0)····46150·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/quick-overview.html | 219 | -rw-r--r--···0·root·········(0)·root·········(0)····46150·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/quick-overview.html |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····21186·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/related-projects.html | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····21186·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/related-projects.html |
221 | -rw-r--r--···0·root·········(0)·root·········(0)····56597·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/reshaping.html | 221 | -rw-r--r--···0·root·········(0)·root·········(0)····56597·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/reshaping.html |
222 | -rw-r--r--···0·root·········(0)·root·········(0)····22480·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/roadmap.html | 222 | -rw-r--r--···0·root·········(0)·root·········(0)····22480·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/roadmap.html |
223 | -rw-r--r--···0·root·········(0)·root·········(0)·····7920·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/search.html | 223 | -rw-r--r--···0·root·········(0)·root·········(0)·····7920·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/search.html |
224 | -rw-r--r--···0·root·········(0)·root·········(0)···10039 | 224 | -rw-r--r--···0·root·········(0)·root·········(0)···100398·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/searchindex.js |
225 | -rw-r--r--···0·root·········(0)·root·········(0)····20789·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/terminology.html | 225 | -rw-r--r--···0·root·········(0)·root·········(0)····20789·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/terminology.html |
226 | -rw-r--r--···0·root·········(0)·root·········(0)····39876·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/time-series.html | 226 | -rw-r--r--···0·root·········(0)·root·········(0)····39876·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/time-series.html |
227 | -rw-r--r--···0·root·········(0)·root·········(0)····41691·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/weather-climate.html | 227 | -rw-r--r--···0·root·········(0)·root·········(0)····41691·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/weather-climate.html |
228 | -rw-r--r--···0·root·········(0)·root·········(0)···574379·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/whats-new.html | 228 | -rw-r--r--···0·root·········(0)·root·········(0)···574379·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/whats-new.html |
229 | -rw-r--r--···0·root·········(0)·root·········(0)····18651·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/why-xarray.html | 229 | -rw-r--r--···0·root·········(0)·root·········(0)····18651·2021-01-02·13:06:33.000000·./usr/share/doc/python-xarray-doc/html/why-xarray.html |
230 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-02·13:06:33.000000·./usr/share/doc-base/ | 230 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2021-01-02·13:06:33.000000·./usr/share/doc-base/ |
231 | -rw-r--r--···0·root·········(0)·root·········(0)······290·2021-01-02·13:06:33.000000·./usr/share/doc-base/python-xarray-doc | 231 | -rw-r--r--···0·root·········(0)·root·········(0)······290·2021-01-02·13:06:33.000000·./usr/share/doc-base/python-xarray-doc |
Offset 300, 15 lines modified | Offset 300, 15 lines modified | ||
300 | <p>You’ll·notice·that·printing·a·dataset·still·shows·a·preview·of·array·values, | 300 | <p>You’ll·notice·that·printing·a·dataset·still·shows·a·preview·of·array·values, |
301 | even·if·they·are·actually·Dask·arrays.·We·can·do·this·quickly·with·Dask·because | 301 | even·if·they·are·actually·Dask·arrays.·We·can·do·this·quickly·with·Dask·because |
302 | we·only·need·to·compute·the·first·few·values·(typically·from·the·first·block). | 302 | we·only·need·to·compute·the·first·few·values·(typically·from·the·first·block). |
303 | To·reveal·the·true·nature·of·an·array,·print·a·DataArray:</p> | 303 | To·reveal·the·true·nature·of·an·array,·print·a·DataArray:</p> |
304 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[3]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span> | 304 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[3]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span> |
305 | <span·class="gh">Out[3]:·</span><span·class="go"></span> | 305 | <span·class="gh">Out[3]:·</span><span·class="go"></span> |
306 | <span·class="go"><xarray.DataArray·'temperature'·(time:·30,·latitude:·180,·longitude:·180)></span> | 306 | <span·class="go"><xarray.DataArray·'temperature'·(time:·30,·latitude:·180,·longitude:·180)></span> |
307 | <span·class="go">dask.array<open_dataset- | 307 | <span·class="go">dask.array<open_dataset-68add8e4b5d1f4821ab4bfa3c57af861temperature,·shape=(30,·180,·180),·dtype=float64,·chunksize=(10,·180,·180),·chunktype=numpy.ndarray></span> |
308 | <span·class="go">Coordinates:</span> | 308 | <span·class="go">Coordinates:</span> |
309 | <span·class="go">··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30</span> | 309 | <span·class="go">··*·time·······(time)·datetime64[ns]·2015-01-01·2015-01-02·...·2015-01-30</span> |
310 | <span·class="go">··*·longitude··(longitude)·int32·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span> | 310 | <span·class="go">··*·longitude··(longitude)·int32·0·1·2·3·4·5·6·7·...·173·174·175·176·177·178·179</span> |
311 | <span·class="go">··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5</span> | 311 | <span·class="go">··*·latitude···(latitude)·float64·89.5·88.5·87.5·86.5·...·-87.5·-88.5·-89.5</span> |
312 | </pre></div> | 312 | </pre></div> |
313 | </div> | 313 | </div> |
314 | <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to | 314 | <p>Once·you’ve·manipulated·a·Dask·array,·you·can·still·write·a·dataset·too·big·to |
Offset 892, 18 lines modified | Offset 892, 18 lines modified | ||
892 | a·method·call·with·an·external·function·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">ds.pipe(func)</span></code>)·instead·of | 892 | a·method·call·with·an·external·function·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">ds.pipe(func)</span></code>)·instead·of |
893 | simply·calling·it·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">func(ds)</span></code>).·This·allows·you·to·write·pipelines·for | 893 | simply·calling·it·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">func(ds)</span></code>).·This·allows·you·to·write·pipelines·for |
894 | transforming·your·data·(using·“method·chaining”)·instead·of·writing·hard·to | 894 | transforming·your·data·(using·“method·chaining”)·instead·of·writing·hard·to |
895 | follow·nested·function·calls:</p> | 895 | follow·nested·function·calls:</p> |
896 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow</span> | 896 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·these·lines·are·equivalent,·but·with·pipe·we·can·make·the·logic·flow</span> |
897 | <span·class="go">#·entirely·from·left·to·right</span> | 897 | <span·class="go">#·entirely·from·left·to·right</span> |
898 | <span·class="gp">In·[60]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">((</span><span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">))</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">))</span> | 898 | <span·class="gp">In·[60]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">((</span><span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">))</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">))</span> |
899 | <span·class="gh">Out[60]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xdef | 899 | <span·class="gh">Out[60]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xde2fa700>]</span> |
900 | <span·class="gp">In·[61]:·</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="k">lambda</span>·<span·class="n">x</span><span·class="p">:</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">x</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">))</span> | 900 | <span·class="gp">In·[61]:·</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">temperature</span><span·class="o">.</span><span·class="n">sel</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="k">lambda</span>·<span·class="n">x</span><span·class="p">:</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">x</span><span·class="p">)</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"y"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">pipe</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">))</span> |
901 | <span·class="gh">Out[61]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xde | 901 | <span·class="gh">Out[61]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xde2faa90>]</span> |
902 | </pre></div> | 902 | </pre></div> |
903 | </div> | 903 | </div> |
904 | <p>Both·<code·class="docutils·literal·notranslate"><span·class="pre">pipe</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">assign</span></code>·replicate·the·pandas·methods·of·the·same·names | 904 | <p>Both·<code·class="docutils·literal·notranslate"><span·class="pre">pipe</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">assign</span></code>·replicate·the·pandas·methods·of·the·same·names |
905 | (<a·class="reference·external"·href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html#pandas.DataFrame.pipe"·title="(in·pandas·v1.1.5)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.pipe</span></code></a>·and | 905 | (<a·class="reference·external"·href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html#pandas.DataFrame.pipe"·title="(in·pandas·v1.1.5)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.pipe</span></code></a>·and |
906 | <a·class="reference·external"·href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign"·title="(in·pandas·v1.1.5)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.assign</span></code></a>).</p> | 906 | <a·class="reference·external"·href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign"·title="(in·pandas·v1.1.5)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">DataFrame.assign</span></code></a>).</p> |
907 | <p>With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if | 907 | <p>With·xarray,·there·is·no·performance·penalty·for·creating·new·datasets,·even·if |
908 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead | 908 | variables·are·lazily·loaded·from·a·file·on·disk.·Creating·new·objects·instead |
Offset 523, 15 lines modified | Offset 523, 15 lines modified | ||
523 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 523 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
524 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 524 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
525 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 525 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
526 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 526 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
527 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 527 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
528 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 528 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
529 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 529 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
530 | </pre></div></div> | 530 | </pre></div></div> |
531 | </div> | 531 | </div> |
532 | <p>Let’s·create·a·simple·plot·of·2-m·air·temperature·in·degrees·Celsius:</p> | 532 | <p>Let’s·create·a·simple·plot·of·2-m·air·temperature·in·degrees·Celsius:</p> |
533 | <div·class="nbinput·docutils·container"> | 533 | <div·class="nbinput·docutils·container"> |
534 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 534 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
535 | </pre></div> | 535 | </pre></div> |
536 | </div> | 536 | </div> |
Offset 34, 23 lines modified | Offset 34, 23 lines modified | ||
34 | ········{ | 34 | ········{ |
35 | ············"cell_type":·"code", | 35 | ············"cell_type":·"code", |
36 | ············"execution_count":·2, | 36 | ············"execution_count":·2, |
37 | ············"metadata":·{}, | 37 | ············"metadata":·{}, |
38 | ············"outputs":·[ | 38 | ············"outputs":·[ |
39 | ················{ | 39 | ················{ |
40 | ····················"ename":·"FileNotFoundError", | 40 | ····················"ename":·"FileNotFoundError", |
41 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 41 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
42 | ····················"output_type":·"error", | 42 | ····················"output_type":·"error", |
43 | ····················"traceback":·[ | 43 | ····················"traceback":·[ |
44 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 44 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
45 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 45 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
46 | ························"\u001b[0;32m<ipython-input-2-783584127f97>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'era5-2mt-2019-03-uk.grib'\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mengine\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'cfgrib'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | 46 | ························"\u001b[0;32m<ipython-input-2-783584127f97>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'era5-2mt-2019-03-uk.grib'\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mengine\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'cfgrib'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
47 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", | 47 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", |
48 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 48 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
49 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 49 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
50 | ····················] | 50 | ····················] |
51 | ················} | 51 | ················} |
52 | ············], | 52 | ············], |
53 | ············"source":·[ | 53 | ············"source":·[ |
54 | ················"ds·=·xr.tutorial.load_dataset('era5-2mt-2019-03-uk.grib',·engine='cfgrib')" | 54 | ················"ds·=·xr.tutorial.load_dataset('era5-2mt-2019-03-uk.grib',·engine='cfgrib')" |
55 | ············] | 55 | ············] |
56 | ········}, | 56 | ········}, |
Offset 561, 15 lines modified | Offset 561, 15 lines modified | ||
561 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 561 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
562 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 562 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
563 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 563 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
564 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 564 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
565 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 565 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
566 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 566 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
567 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 567 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
568 | </pre></div></div> | 568 | </pre></div></div> |
569 | </div> | 569 | </div> |
570 | </div> | 570 | </div> |
571 | <div·class="section"·id="Add-a-lazilly-calculated-vertical-coordinates"> | 571 | <div·class="section"·id="Add-a-lazilly-calculated-vertical-coordinates"> |
572 | <h2>Add·a·lazilly·calculated·vertical·coordinates<a·class="headerlink"·href="#Add-a-lazilly-calculated-vertical-coordinates"·title="Permalink·to·this·headline">¶</a></h2> | 572 | <h2>Add·a·lazilly·calculated·vertical·coordinates<a·class="headerlink"·href="#Add-a-lazilly-calculated-vertical-coordinates"·title="Permalink·to·this·headline">¶</a></h2> |
573 | <p>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)[<a·class="reference·external"·href="https://www.myroms.org/wiki/Vertical_S-coordinate">https://www.myroms.org/wiki/Vertical_S-coordinate</a>]</p> | 573 | <p>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)[<a·class="reference·external"·href="https://www.myroms.org/wiki/Vertical_S-coordinate">https://www.myroms.org/wiki/Vertical_S-coordinate</a>]</p> |
574 | <p>In·short,·for·<code·class="docutils·literal·notranslate"><span·class="pre">Vtransform==2</span></code>·as·used·in·this·example,</p> | 574 | <p>In·short,·for·<code·class="docutils·literal·notranslate"><span·class="pre">Vtransform==2</span></code>·as·used·in·this·example,</p> |
Offset 69, 22 lines modified | Offset 69, 22 lines modified | ||
69 | ········{ | 69 | ········{ |
70 | ············"cell_type":·"code", | 70 | ············"cell_type":·"code", |
71 | ············"execution_count":·2, | 71 | ············"execution_count":·2, |
72 | ············"metadata":·{}, | 72 | ············"metadata":·{}, |
73 | ············"outputs":·[ | 73 | ············"outputs":·[ |
74 | ················{ | 74 | ················{ |
75 | ····················"ename":·"FileNotFoundError", | 75 | ····················"ename":·"FileNotFoundError", |
76 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 76 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
77 | ····················"output_type":·"error", | 77 | ····················"output_type":·"error", |
78 | ····················"traceback":·[ | 78 | ····················"traceback":·[ |
79 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 79 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
80 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 80 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
81 | ························"\u001b[0;32m<ipython-input-2-f6e5aae51f8e>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m······1\u001b[0m·\u001b[0;31m#·load·in·the·file\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---->·2\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'ROMS_example.nc'\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mchunks\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m{\u001b[0m\u001b[0;34m'ocean_time'\u001b[0m\u001b[0;34m:\u001b[0m·\u001b[0;36m1\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······3\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······4\u001b[0m·\u001b[0;31m#·This·is·a·way·to·turn·on·chunking·and·lazy·evaluation.·Opening·with·mfdataset,·or\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······5\u001b[0m·\u001b[0;31m#·setting·the·chunking·in·the·open_dataset·would·also·achive·this.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 81 | ························"\u001b[0;32m<ipython-input-2-f6e5aae51f8e>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m······1\u001b[0m·\u001b[0;31m#·load·in·the·file\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---->·2\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'ROMS_example.nc'\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mchunks\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m{\u001b[0m\u001b[0;34m'ocean_time'\u001b[0m\u001b[0;34m:\u001b[0m·\u001b[0;36m1\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······3\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······4\u001b[0m·\u001b[0;31m#·This·is·a·way·to·turn·on·chunking·and·lazy·evaluation.·Opening·with·mfdataset,·or\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······5\u001b[0m·\u001b[0;31m#·setting·the·chunking·in·the·open_dataset·would·also·achive·this.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
82 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 82 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
83 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 83 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
84 | ····················] | 84 | ····················] |
85 | ················} | 85 | ················} |
86 | ············], | 86 | ············], |
87 | ············"source":·[ | 87 | ············"source":·[ |
88 | ················"#·load·in·the·file\n", | 88 | ················"#·load·in·the·file\n", |
89 | ················"ds·=·xr.tutorial.open_dataset('ROMS_example.nc',·chunks={'ocean_time':·1})\n", | 89 | ················"ds·=·xr.tutorial.open_dataset('ROMS_example.nc',·chunks={'ocean_time':·1})\n", |
90 | ················"\n", | 90 | ················"\n", |
Offset 555, 15 lines modified | Offset 555, 15 lines modified | ||
555 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 555 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
556 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 556 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
557 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 557 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
558 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 558 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
559 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 559 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
560 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 560 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
561 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 561 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
562 | </pre></div></div> | 562 | </pre></div></div> |
563 | </div> | 563 | </div> |
564 | <p>The·function·we·will·apply·is·<code·class="docutils·literal·notranslate"><span·class="pre">np.interp</span></code>·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.</p> | 564 | <p>The·function·we·will·apply·is·<code·class="docutils·literal·notranslate"><span·class="pre">np.interp</span></code>·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.</p> |
565 | <div·class="nbinput·docutils·container"> | 565 | <div·class="nbinput·docutils·container"> |
566 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: | 566 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: |
567 | </pre></div> | 567 | </pre></div> |
568 | </div> | 568 | </div> |
Offset 39, 23 lines modified | Offset 39, 23 lines modified | ||
39 | ····················"end_time":·"2020-01-15T14:45:51.659160Z", | 39 | ····················"end_time":·"2020-01-15T14:45:51.659160Z", |
40 | ····················"start_time":·"2020-01-15T14:45:50.528742Z" | 40 | ····················"start_time":·"2020-01-15T14:45:50.528742Z" |
41 | ················} | 41 | ················} |
42 | ············}, | 42 | ············}, |
43 | ············"outputs":·[ | 43 | ············"outputs":·[ |
44 | ················{ | 44 | ················{ |
45 | ····················"ename":·"FileNotFoundError", | 45 | ····················"ename":·"FileNotFoundError", |
46 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 46 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
47 | ····················"output_type":·"error", | 47 | ····················"output_type":·"error", |
48 | ····················"traceback":·[ | 48 | ····················"traceback":·[ |
49 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 49 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
50 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 50 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
51 | ························"\u001b[0;32m<ipython-input-1-5e8aec42a87b>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m······5\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······6\u001b[0m·air·=·(\n\u001b[0;32m---->·7\u001b[0;31m·····\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"air_temperature\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······8\u001b[0m·····\u001b[0;34m.\u001b[0m\u001b[0mair\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msortby\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"lat\"\u001b[0m\u001b[0;34m)\u001b[0m··\u001b[0;31m#·np.interp·needs·coordinate·in·ascending·order\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······9\u001b[0m·····\u001b[0;34m.\u001b[0m\u001b[0misel\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtime\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mslice\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m4\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mlon\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mslice\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 51 | ························"\u001b[0;32m<ipython-input-1-5e8aec42a87b>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m······5\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······6\u001b[0m·air·=·(\n\u001b[0;32m---->·7\u001b[0;31m·····\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"air_temperature\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······8\u001b[0m·····\u001b[0;34m.\u001b[0m\u001b[0mair\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msortby\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"lat\"\u001b[0m\u001b[0;34m)\u001b[0m··\u001b[0;31m#·np.interp·needs·coordinate·in·ascending·order\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······9\u001b[0m·····\u001b[0;34m.\u001b[0m\u001b[0misel\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtime\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mslice\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m4\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mlon\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mslice\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
52 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", | 52 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", |
53 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 53 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
54 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 54 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
55 | ····················] | 55 | ····················] |
56 | ················} | 56 | ················} |
57 | ············], | 57 | ············], |
58 | ············"source":·[ | 58 | ············"source":·[ |
59 | ················"import·xarray·as·xr\n", | 59 | ················"import·xarray·as·xr\n", |
60 | ················"import·numpy·as·np\n", | 60 | ················"import·numpy·as·np\n", |
61 | ················"\n", | 61 | ················"\n", |
Offset 555, 15 lines modified | Offset 555, 15 lines modified | ||
555 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 555 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
556 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 556 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
557 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 557 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
558 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 558 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
559 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 559 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
560 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 560 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
561 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 561 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
562 | </pre></div></div> | 562 | </pre></div></div> |
563 | </div> | 563 | </div> |
564 | <p>Plot·the·first·timestep:</p> | 564 | <p>Plot·the·first·timestep:</p> |
565 | <div·class="nbinput·docutils·container"> | 565 | <div·class="nbinput·docutils·container"> |
566 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 566 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
567 | </pre></div> | 567 | </pre></div> |
568 | </div> | 568 | </div> |
Offset 60, 23 lines modified | Offset 60, 23 lines modified | ||
60 | ····················"end_time":·"2020-03-17T14:43:57.831734Z", | 60 | ····················"end_time":·"2020-03-17T14:43:57.831734Z", |
61 | ····················"start_time":·"2020-03-17T14:43:57.651845Z" | 61 | ····················"start_time":·"2020-03-17T14:43:57.651845Z" |
62 | ················} | 62 | ················} |
63 | ············}, | 63 | ············}, |
64 | ············"outputs":·[ | 64 | ············"outputs":·[ |
65 | ················{ | 65 | ················{ |
66 | ····················"ename":·"FileNotFoundError", | 66 | ····················"ename":·"FileNotFoundError", |
67 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 67 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
68 | ····················"output_type":·"error", | 68 | ····················"output_type":·"error", |
69 | ····················"traceback":·[ | 69 | ····················"traceback":·[ |
70 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 70 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
71 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 71 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
72 | ························"\u001b[0;32m<ipython-input-2-91cf2eecbfdd>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"air_temperature\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······2\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······3\u001b[0m·\u001b[0;31m#·to·celsius\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······4\u001b[0m·\u001b[0mair\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mair\u001b[0m·\u001b[0;34m-\u001b[0m·\u001b[0;36m273.15\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······5\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", | 72 | ························"\u001b[0;32m<ipython-input-2-91cf2eecbfdd>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"air_temperature\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······2\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······3\u001b[0m·\u001b[0;31m#·to·celsius\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······4\u001b[0m·\u001b[0mair\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mair\u001b[0m·\u001b[0;34m-\u001b[0m·\u001b[0;36m273.15\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m······5\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", |
73 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", | 73 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", |
74 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 74 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
75 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 75 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
76 | ····················] | 76 | ····················] |
77 | ················} | 77 | ················} |
78 | ············], | 78 | ············], |
79 | ············"source":·[ | 79 | ············"source":·[ |
80 | ················"ds·=·xr.tutorial.load_dataset(\"air_temperature\")\n", | 80 | ················"ds·=·xr.tutorial.load_dataset(\"air_temperature\")\n", |
81 | ················"\n", | 81 | ················"\n", |
82 | ················"#·to·celsius\n", | 82 | ················"#·to·celsius\n", |
Offset 528, 15 lines modified | Offset 528, 15 lines modified | ||
528 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 528 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
529 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 529 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
530 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 530 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
531 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 531 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
532 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 532 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
533 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 533 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
534 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 534 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
535 | </pre></div></div> | 535 | </pre></div></div> |
536 | </div> | 536 | </div> |
537 | </div> | 537 | </div> |
538 | <div·class="section"·id="Now-for-the-heavy-lifting:"> | 538 | <div·class="section"·id="Now-for-the-heavy-lifting:"> |
539 | <h2>Now·for·the·heavy·lifting:<a·class="headerlink"·href="#Now-for-the-heavy-lifting:"·title="Permalink·to·this·headline">¶</a></h2> | 539 | <h2>Now·for·the·heavy·lifting:<a·class="headerlink"·href="#Now-for-the-heavy-lifting:"·title="Permalink·to·this·headline">¶</a></h2> |
540 | <p>We·first·have·to·come·up·with·the·weights,·-·calculate·the·month·lengths·for·each·monthly·data·record·-·calculate·weights·using·<code·class="docutils·literal·notranslate"><span·class="pre">groupby('time.season')</span></code></p> | 540 | <p>We·first·have·to·come·up·with·the·weights,·-·calculate·the·month·lengths·for·each·monthly·data·record·-·calculate·weights·using·<code·class="docutils·literal·notranslate"><span·class="pre">groupby('time.season')</span></code></p> |
541 | <p>Finally,·we·just·need·to·multiply·our·weights·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">Dataset</span></code>·and·sum·allong·the·time·dimension.·Creating·a·<code·class="docutils·literal·notranslate"><span·class="pre">DataArray</span></code>·for·the·month·length·is·as·easy·as·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">days_in_month</span></code>·accessor·on·the·time·coordinate.·The·calendar·type,·in·this·case·<code·class="docutils·literal·notranslate"><span·class="pre">'noleap'</span></code>,·is·automatically·considered·in·this·operation.</p> | 541 | <p>Finally,·we·just·need·to·multiply·our·weights·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">Dataset</span></code>·and·sum·allong·the·time·dimension.·Creating·a·<code·class="docutils·literal·notranslate"><span·class="pre">DataArray</span></code>·for·the·month·length·is·as·easy·as·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">days_in_month</span></code>·accessor·on·the·time·coordinate.·The·calendar·type,·in·this·case·<code·class="docutils·literal·notranslate"><span·class="pre">'noleap'</span></code>,·is·automatically·considered·in·this·operation.</p> |
Offset 47, 22 lines modified | Offset 47, 22 lines modified | ||
47 | ····················"end_time":·"2018-11-28T20:51:36.072316Z", | 47 | ····················"end_time":·"2018-11-28T20:51:36.072316Z", |
48 | ····················"start_time":·"2018-11-28T20:51:36.016594Z" | 48 | ····················"start_time":·"2018-11-28T20:51:36.016594Z" |
49 | ················} | 49 | ················} |
50 | ············}, | 50 | ············}, |
51 | ············"outputs":·[ | 51 | ············"outputs":·[ |
52 | ················{ | 52 | ················{ |
53 | ····················"ename":·"FileNotFoundError", | 53 | ····················"ename":·"FileNotFoundError", |
54 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 54 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
55 | ····················"output_type":·"error", | 55 | ····················"output_type":·"error", |
56 | ····················"traceback":·[ | 56 | ····················"traceback":·[ |
57 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 57 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
58 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 58 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
59 | ························"\u001b[0;32m<ipython-input-2-0eb806e38f7f>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'rasm'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······2\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 59 | ························"\u001b[0;32m<ipython-input-2-0eb806e38f7f>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'rasm'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······2\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
60 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 60 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
61 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 61 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
62 | ····················] | 62 | ····················] |
63 | ················} | 63 | ················} |
64 | ············], | 64 | ············], |
65 | ············"source":·[ | 65 | ············"source":·[ |
66 | ················"ds·=·xr.tutorial.open_dataset('rasm').load()\n", | 66 | ················"ds·=·xr.tutorial.open_dataset('rasm').load()\n", |
67 | ················"ds" | 67 | ················"ds" |
68 | ············] | 68 | ············] |
Offset 527, 15 lines modified | Offset 527, 15 lines modified | ||
527 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 527 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
528 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 528 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
529 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 529 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
530 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 530 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
531 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 531 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
532 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 532 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
533 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 533 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
534 | </pre></div></div> | 534 | </pre></div></div> |
535 | </div> | 535 | </div> |
536 | <p>In·this·example,·the·<em>logical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>,·while·the·<em>physical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">xc</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">yc</span></code>,·which·represent·the·latitudes·and·longitude·of·the·data.</p> | 536 | <p>In·this·example,·the·<em>logical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">x</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">y</span></code>,·while·the·<em>physical·coordinates</em>·are·<code·class="docutils·literal·notranslate"><span·class="pre">xc</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">yc</span></code>,·which·represent·the·latitudes·and·longitude·of·the·data.</p> |
537 | <div·class="nbinput·docutils·container"> | 537 | <div·class="nbinput·docutils·container"> |
538 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 538 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
539 | </pre></div> | 539 | </pre></div> |
540 | </div> | 540 | </div> |
Offset 45, 22 lines modified | Offset 45, 22 lines modified | ||
45 | ····················"end_time":·"2018-11-28T20:50:13.629720Z", | 45 | ····················"end_time":·"2018-11-28T20:50:13.629720Z", |
46 | ····················"start_time":·"2018-11-28T20:50:13.484542Z" | 46 | ····················"start_time":·"2018-11-28T20:50:13.484542Z" |
47 | ················} | 47 | ················} |
48 | ············}, | 48 | ············}, |
49 | ············"outputs":·[ | 49 | ············"outputs":·[ |
50 | ················{ | 50 | ················{ |
51 | ····················"ename":·"FileNotFoundError", | 51 | ····················"ename":·"FileNotFoundError", |
52 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 52 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
53 | ····················"output_type":·"error", | 53 | ····················"output_type":·"error", |
54 | ····················"traceback":·[ | 54 | ····················"traceback":·[ |
55 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 55 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
56 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 56 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
57 | ························"\u001b[0;32m<ipython-input-2-0eb806e38f7f>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'rasm'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······2\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 57 | ························"\u001b[0;32m<ipython-input-2-0eb806e38f7f>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'rasm'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m······2\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
58 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 58 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
59 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 59 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
60 | ····················] | 60 | ····················] |
61 | ················} | 61 | ················} |
62 | ············], | 62 | ············], |
63 | ············"source":·[ | 63 | ············"source":·[ |
64 | ················"ds·=·xr.tutorial.open_dataset('rasm').load()\n", | 64 | ················"ds·=·xr.tutorial.open_dataset('rasm').load()\n", |
65 | ················"ds" | 65 | ················"ds" |
66 | ············] | 66 | ············] |
Offset 533, 15 lines modified | Offset 533, 15 lines modified | ||
533 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 533 | <span·class="ansi-green-fg">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ansi-cyan-fg">open_dataset</span><span·class="ansi-blue-fg">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
534 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> | 534 | <span·class="ansi-green-intense-fg·ansi-bold">·····76</span>·········<span·class="ansi-red-fg">#·May·want·to·add·an·option·to·remove·it.</span> |
535 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> | 535 | <span·class="ansi-green-intense-fg·ansi-bold">·····77</span>·········<span·class="ansi-green-fg">if</span>·<span·class="ansi-green-fg">not</span>·_os<span·class="ansi-blue-fg">.</span>path<span·class="ansi-blue-fg">.</span>isdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">:</span> |
536 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> | 536 | <span·class="ansi-green-fg">--->·78</span><span·class="ansi-red-fg">·············</span>_os<span·class="ansi-blue-fg">.</span>mkdir<span·class="ansi-blue-fg">(</span>longdir<span·class="ansi-blue-fg">)</span> |
537 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> | 537 | <span·class="ansi-green-intense-fg·ansi-bold">·····79</span> |
538 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> | 538 | <span·class="ansi-green-intense-fg·ansi-bold">·····80</span>·········url·<span·class="ansi-blue-fg">=</span>·<span·class="ansi-blue-fg">"/"</span><span·class="ansi-blue-fg">.</span>join<span·class="ansi-blue-fg">(</span><span·class="ansi-blue-fg">(</span>github_url<span·class="ansi-blue-fg">,</span>·<span·class="ansi-blue-fg">"raw"</span><span·class="ansi-blue-fg">,</span>·branch<span·class="ansi-blue-fg">,</span>·fullname<span·class="ansi-blue-fg">)</span><span·class="ansi-blue-fg">)</span> |
539 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 539 | <span·class="ansi-red-fg">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
540 | </pre></div></div> | 540 | </pre></div></div> |
541 | </div> | 541 | </div> |
542 | <div·class="section"·id="Multiple-plots-and-map-projections"> | 542 | <div·class="section"·id="Multiple-plots-and-map-projections"> |
543 | <h2>Multiple·plots·and·map·projections<a·class="headerlink"·href="#Multiple-plots-and-map-projections"·title="Permalink·to·this·headline">¶</a></h2> | 543 | <h2>Multiple·plots·and·map·projections<a·class="headerlink"·href="#Multiple-plots-and-map-projections"·title="Permalink·to·this·headline">¶</a></h2> |
544 | <p>Control·the·map·projection·parameters·on·multiple·axes</p> | 544 | <p>Control·the·map·projection·parameters·on·multiple·axes</p> |
545 | <p>This·example·illustrates·how·to·plot·multiple·maps·and·control·their·extent·and·aspect·ratio.</p> | 545 | <p>This·example·illustrates·how·to·plot·multiple·maps·and·control·their·extent·and·aspect·ratio.</p> |
546 | <p>For·more·details·see·<a·class="reference·external"·href="https://github.com/pydata/xarray/issues/1397#issuecomment-299190567">this·discussion</a>·on·github.</p> | 546 | <p>For·more·details·see·<a·class="reference·external"·href="https://github.com/pydata/xarray/issues/1397#issuecomment-299190567">this·discussion</a>·on·github.</p> |
Offset 31, 23 lines modified | Offset 31, 23 lines modified | ||
31 | ········{ | 31 | ········{ |
32 | ············"cell_type":·"code", | 32 | ············"cell_type":·"code", |
33 | ············"execution_count":·2, | 33 | ············"execution_count":·2, |
34 | ············"metadata":·{}, | 34 | ············"metadata":·{}, |
35 | ············"outputs":·[ | 35 | ············"outputs":·[ |
36 | ················{ | 36 | ················{ |
37 | ····················"ename":·"FileNotFoundError", | 37 | ····················"ename":·"FileNotFoundError", |
38 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 38 | ····················"evalue":·"[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'", |
39 | ····················"output_type":·"error", | 39 | ····················"output_type":·"error", |
40 | ····················"traceback":·[ | 40 | ····················"traceback":·[ |
41 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | 41 | ························"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
42 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", | 42 | ························"\u001b[0;31mFileNotFoundError\u001b[0m·························Traceback·(most·recent·call·last)", |
43 | ························"\u001b[0;32m<ipython-input-2-15c698672cac>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'air_temperature'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | 43 | ························"\u001b[0;32m<ipython-input-2-15c698672cac>\u001b[0m·in·\u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m---->·1\u001b[0;31m·\u001b[0mds\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0mxr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtutorial\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'air_temperature'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
44 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", | 44 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mload_dataset\u001b[0;34m(*args,·**kwargs)\u001b[0m\n\u001b[1;32m····111\u001b[0m·····\u001b[0mopen_dataset\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····112\u001b[0m·····\"\"\"\n\u001b[0;32m-->·113\u001b[0;31m·····\u001b[0;32mwith\u001b[0m·\u001b[0mopen_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m·\u001b[0;32mas\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m····114\u001b[0m·········\u001b[0;32mreturn\u001b[0m·\u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m····115\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n", |
45 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | 45 | ························"\u001b[0;32m/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py\u001b[0m·in·\u001b[0;36mopen_dataset\u001b[0;34m(name,·cache,·cache_dir,·github_url,·branch,·**kws)\u001b[0m\n\u001b[1;32m·····76\u001b[0m·········\u001b[0;31m#·May·want·to·add·an·option·to·remove·it.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····77\u001b[0m·········\u001b[0;32mif\u001b[0m·\u001b[0;32mnot\u001b[0m·\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--->·78\u001b[0;31m·············\u001b[0m_os\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmkdir\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlongdir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m·····79\u001b[0m·\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m·····80\u001b[0m·········\u001b[0murl\u001b[0m·\u001b[0;34m=\u001b[0m·\u001b[0;34m\"/\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mjoin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgithub_url\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0;34m\"raw\"\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mbranch\u001b[0m\u001b[0;34m,\u001b[0m·\u001b[0mfullname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
46 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 46 | ························"\u001b[0;31mFileNotFoundError\u001b[0m:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data'" |
47 | ····················] | 47 | ····················] |
48 | ················} | 48 | ················} |
49 | ············], | 49 | ············], |
50 | ············"source":·[ | 50 | ············"source":·[ |
51 | ················"ds·=·xr.tutorial.load_dataset('air_temperature')" | 51 | ················"ds·=·xr.tutorial.load_dataset('air_temperature')" |
52 | ············] | 52 | ············] |
53 | ········}, | 53 | ········}, |
Offset 889, 30 lines modified | Offset 889, 30 lines modified | ||
889 | </style><pre·class='xr-text-repr-fallback'><xarray.Dataset> | 889 | </style><pre·class='xr-text-repr-fallback'><xarray.Dataset> |
890 | Dimensions:···(location:·3,·time:·731) | 890 | Dimensions:···(location:·3,·time:·731) |
891 | Coordinates: | 891 | Coordinates: |
892 | ··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31 | 892 | ··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31 |
893 | ··*·location··(location)·<U2·'IA'·'IN'·'IL' | 893 | ··*·location··(location)·<U2·'IA'·'IN'·'IL' |
894 | Data·variables: | 894 | Data·variables: |
895 | ····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544 | 895 | ····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544 |
896 | ····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·hidden><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 896 | ····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·hidden><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-7d992aa6-04e6-4025-a100-5f44cb6701d9'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-7d992aa6-04e6-4025-a100-5f44cb6701d9'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·de0cb9512c98678eb1bd2d3ba3af9afc248fba1f7d025078f89a4d1965808a2f·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000', |
897 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', | 897 | ·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000', |
898 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], | 898 | ·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'], |
899 | ······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 899 | ······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-e6b2a56b-7281-4169-b5ef-1bf8aaf15f95'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-e6b2a56b-7281-4169-b5ef-1bf8aaf15f95'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·863c6dc198253d45ccdb0a6a710318f62e66acb95cd538f89e82908af8f2e890·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201], |
900 | ·······[·-9.34115662,··-6.55807323,···0.13203714], | 900 | ·······[·-9.34115662,··-6.55807323,···0.13203714], |
901 | ·······[-12.13971902,··-6.14641918,··-1.06187252], | 901 | ·······[-12.13971902,··-6.14641918,··-1.06187252], |
902 | ·······..., | 902 | ·······..., |
903 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], | 903 | ·······[·-5.34723825,·-13.37459826,··-4.93221199], |
904 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], | 904 | ·······[·-2.67283594,··-5.18072141,··-4.11567869], |
905 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs- | 905 | ·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-a7b711e5-c96b-494e-b0a8-8ce4e12e9bd2'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-a7b711e5-c96b-494e-b0a8-8ce4e12e9bd2'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·e83d37de1255cba59ed46e37985119147d00cb7fdaff8957f039a2b71be21e61·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382], |
906 | ·······[·0.44785582,··6.37271154,··4.8434966·], | 906 | ·······[·0.44785582,··6.37271154,··4.8434966·], |
907 | ·······[·5.32269851,··6.25176289,··5.98033045], | 907 | ·······[·5.32269851,··6.25176289,··5.98033045], |
908 | ·······..., | 908 | ·······..., |
909 | ·······[·6.73078492,··7.74795302,··8.04569651], | 909 | ·······[·6.73078492,··7.74795302,··8.04569651], |
910 | ·······[·6.46376911,··6.31695352,··1.55799171], | 910 | ·······[·6.46376911,··6.31695352,··1.55799171], |
911 | ·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 911 | ·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-90b80593-8cc0-4521-ba4d-afe45ebcd054'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-90b80593-8cc0-4521-ba4d-afe45ebcd054'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div></div> |
912 | </div> | 912 | </div> |
913 | <div·class="section"·id="Examine-a-dataset-with-pandas-and-seaborn"> | 913 | <div·class="section"·id="Examine-a-dataset-with-pandas-and-seaborn"> |
914 | <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Permalink·to·this·headline">¶</a></h2> | 914 | <h2>Examine·a·dataset·with·pandas·and·seaborn<a·class="headerlink"·href="#Examine-a-dataset-with-pandas-and-seaborn"·title="Permalink·to·this·headline">¶</a></h2> |
915 | <div·class="section"·id="Convert-to-a-pandas-DataFrame"> | 915 | <div·class="section"·id="Convert-to-a-pandas-DataFrame"> |
916 | <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Permalink·to·this·headline">¶</a></h3> | 916 | <h3>Convert·to·a·pandas·DataFrame<a·class="headerlink"·href="#Convert-to-a-pandas-DataFrame"·title="Permalink·to·this·headline">¶</a></h3> |
917 | <div·class="nbinput·docutils·container"> | 917 | <div·class="nbinput·docutils·container"> |
918 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: | 918 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[2]: |
Offset 377, 30 lines modified | Offset 377, 30 lines modified | ||
377 | ····························"</style><pre·class='xr-text-repr-fallback'><xarray.Dataset>\n", | 377 | ····························"</style><pre·class='xr-text-repr-fallback'><xarray.Dataset>\n", |
378 | ····························"Dimensions:···(location:·3,·time:·731)\n", | 378 | ····························"Dimensions:···(location:·3,·time:·731)\n", |
379 | ····························"Coordinates:\n", | 379 | ····························"Coordinates:\n", |
380 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", | 380 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", |
381 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", | 381 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", |
382 | ····························"Data·variables:\n", | 382 | ····························"Data·variables:\n", |
383 | ····························"····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544\n", | 383 | ····························"····tmin······(time,·location)·float64·-8.037·-1.788·-3.932·...·-1.346·-4.544\n", |
384 | ····························"····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·hidden><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section- | 384 | ····························"····tmax······(time,·location)·float64·12.98·3.31·6.779·...·6.636·3.343·3.805</pre><div·class='xr-wrap'·hidden><div·class='xr-header'><div·class='xr-obj-type'>xarray.Dataset</div></div><ul·class='xr-sections'><li·class='xr-section-item'><input·id='section-7d992aa6-04e6-4025-a100-5f44cb6701d9'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-7d992aa6-04e6-4025-a100-5f44cb6701d9'·class='xr-section-summary'··title='Expand/collapse·section'>Dimensions:</label><div·class='xr-section-in[·...·truncated·by·diffoscope;·len:·1235,·SHA:·de0cb9512c98678eb1bd2d3ba3af9afc248fba1f7d025078f89a4d1965808a2f·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array(['2000-01-01T00:00:00.000000000',·'2000-01-02T00:00:00.000000000',\n", |
385 | ····························"·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000',\n", | 385 | ····························"·······'2000-01-03T00:00:00.000000000',·...,·'2001-12-29T00:00:00.000000000',\n", |
386 | ····························"·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'],\n", | 386 | ····························"·······'2001-12-30T00:00:00.000000000',·'2001-12-31T00:00:00.000000000'],\n", |
387 | ····························"······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs- | 387 | ····························"······dtype='datetime64[ns]')</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span·class='xr-has-index'>location</span></div><div·class='xr-var-dims'>(location)</div><div·class='xr-var-dtype'><U2</div><div·class='xr-var-preview·xr-preview'>'IA'·'IN'·'IL'</div><input·id='attrs-e6b2a56b-7281-4169-b5ef-1bf8aaf15f95'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-e6b2a56b-7281-4169-b5ef-1bf8aaf15f95'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·1502,·SHA:·863c6dc198253d45ccdb0a6a710318f62e66acb95cd538f89e82908af8f2e890·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[·-8.03736932,··-1.78844117,··-3.93154201],\n", |
388 | ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n", | 388 | ····························"·······[·-9.34115662,··-6.55807323,···0.13203714],\n", |
389 | ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n", | 389 | ····························"·······[-12.13971902,··-6.14641918,··-1.06187252],\n", |
390 | ····························"·······...,\n", | 390 | ····························"·······...,\n", |
391 | ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n", | 391 | ····························"·······[·-5.34723825,·-13.37459826,··-4.93221199],\n", |
392 | ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n", | 392 | ····························"·······[·-2.67283594,··-5.18072141,··-4.11567869],\n", |
393 | ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs- | 393 | ····························"·······[··2.06327582,··-1.34576404,··-4.54392729]])</pre></div></li><li·class='xr-var-item'><div·class='xr-var-name'><span>tmax</span></div><div·class='xr-var-dims'>(time,·location)</div><div·class='xr-var-dtype'>float64</div><div·class='xr-var-preview·xr-preview'>12.98·3.31·6.779·...·3.343·3.805</div><input·id='attrs-a7b711e5-c96b-494e-b0a8-8ce4e12e9bd2'·class='xr-var-attrs-in'·type='checkbox'·disabled><label·for='attrs-a7b711e5-c96b-494e-b0a8-8ce4e12e9bd2'·title='Show/Hide·attributes'><svg·class='icon·xr-icon-file-text2'><use·xlink:href='#icon-file-text2'></use></svg>[·...·truncated·by·diffoscope;·len:·154,·SHA:·e83d37de1255cba59ed46e37985119147d00cb7fdaff8957f039a2b71be21e61·...·]'·title='Show/Hide·data·repr'><svg·class='icon·xr-icon-database'><use·xlink:href='#icon-database'></use></svg></label><div·class='xr-var-attrs'><dl·class='xr-attrs'></dl></div><div·class='xr-var-data'><pre>array([[12.98054898,··3.31040942,··6.77855382],\n", |
394 | ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n", | 394 | ····························"·······[·0.44785582,··6.37271154,··4.8434966·],\n", |
395 | ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n", | 395 | ····························"·······[·5.32269851,··6.25176289,··5.98033045],\n", |
396 | ····························"·······...,\n", | 396 | ····························"·······...,\n", |
397 | ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n", | 397 | ····························"·······[·6.73078492,··7.74795302,··8.04569651],\n", |
398 | ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n", | 398 | ····························"·······[·6.46376911,··6.31695352,··1.55799171],\n", |
399 | ····························"·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section- | 399 | ····························"·······[·6.63593435,··3.34271537,··3.80527925]])</pre></div></li></ul></div></li><li·class='xr-section-item'><input·id='section-90b80593-8cc0-4521-ba4d-afe45ebcd054'·class='xr-section-summary-in'·type='checkbox'·disabled·><label·for='section-90b80593-8cc0-4521-ba4d-afe45ebcd054'·class='xr-section-summary'··title='Expand/collapse·section'>Attributes:·<span>(0)</span></label><div·class='xr-section-inline-details'></div><div·class='xr-section-details'><dl·class='xr-attrs'></dl></div></li></ul></div></div>" |
400 | ························], | 400 | ························], |
401 | ························"text/plain":·[ | 401 | ························"text/plain":·[ |
402 | ····························"<xarray.Dataset>\n", | 402 | ····························"<xarray.Dataset>\n", |
403 | ····························"Dimensions:···(location:·3,·time:·731)\n", | 403 | ····························"Dimensions:···(location:·3,·time:·731)\n", |
404 | ····························"Coordinates:\n", | 404 | ····························"Coordinates:\n", |
405 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", | 405 | ····························"··*·time······(time)·datetime64[ns]·2000-01-01·2000-01-02·...·2001-12-31\n", |
406 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", | 406 | ····························"··*·location··(location)·<U2·'IA'·'IN'·'IL'\n", |
Offset 875, 15 lines modified | Offset 875, 15 lines modified | ||
875 | <span·class="nn">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ni">open_dataset</span><span·class="nt">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 875 | <span·class="nn">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ni">open_dataset</span><span·class="nt">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
876 | <span·class="g·g-Whitespace">·····</span><span·class="mi">76</span>·········<span·class="c1">#·May·want·to·add·an·option·to·remove·it.</span> | 876 | <span·class="g·g-Whitespace">·····</span><span·class="mi">76</span>·········<span·class="c1">#·May·want·to·add·an·option·to·remove·it.</span> |
877 | <span·class="g·g-Whitespace">·····</span><span·class="mi">77</span>·········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">_os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">isdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">):</span> | 877 | <span·class="g·g-Whitespace">·····</span><span·class="mi">77</span>·········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">_os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">isdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">):</span> |
878 | <span·class="ne">--->·</span><span·class="mi">78</span>·············<span·class="n">_os</span><span·class="o">.</span><span·class="n">mkdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">)</span> | 878 | <span·class="ne">--->·</span><span·class="mi">78</span>·············<span·class="n">_os</span><span·class="o">.</span><span·class="n">mkdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">)</span> |
879 | <span·class="g·g-Whitespace">·····</span><span·class="mi">79</span>· | 879 | <span·class="g·g-Whitespace">·····</span><span·class="mi">79</span>· |
880 | <span·class="g·g-Whitespace">·····</span><span·class="mi">80</span>·········<span·class="n">url</span>·<span·class="o">=</span>·<span·class="s2">"/"</span><span·class="o">.</span><span·class="n">join</span><span·class="p">((</span><span·class="n">github_url</span><span·class="p">,</span>·<span·class="s2">"raw"</span><span·class="p">,</span>·<span·class="n">branch</span><span·class="p">,</span>·<span·class="n">fullname</span><span·class="p">))</span> | 880 | <span·class="g·g-Whitespace">·····</span><span·class="mi">80</span>·········<span·class="n">url</span>·<span·class="o">=</span>·<span·class="s2">"/"</span><span·class="o">.</span><span·class="n">join</span><span·class="p">((</span><span·class="n">github_url</span><span·class="p">,</span>·<span·class="s2">"raw"</span><span·class="p">,</span>·<span·class="n">branch</span><span·class="p">,</span>·<span·class="n">fullname</span><span·class="p">))</span> |
881 | <span·class="ne">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 881 | <span·class="ne">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
882 | <span·class="c1">#·add·an·empty·2D·dataarray</span> | 882 | <span·class="c1">#·add·an·empty·2D·dataarray</span> |
883 | <span·class="gp">In·[54]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"empty"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">full_like</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">),</span>·<span·class="n">fill_value</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> | 883 | <span·class="gp">In·[54]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"empty"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">full_like</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">),</span>·<span·class="n">fill_value</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> |
884 | <span·class="gt">---------------------------------------------------------------------------</span> | 884 | <span·class="gt">---------------------------------------------------------------------------</span> |
885 | <span·class="ne">AttributeError</span><span·class="g·g-Whitespace">····························</span>Traceback·(most·recent·call·last) | 885 | <span·class="ne">AttributeError</span><span·class="g·g-Whitespace">····························</span>Traceback·(most·recent·call·last) |
886 | <span·class="o"><</span><span·class="n">ipython</span><span·class="o">-</span><span·class="nb">input</span><span·class="o">-</span><span·class="mi">54</span><span·class="o">-</span><span·class="mi">6709</span><span·class="n">edaff03d</span><span·class="o">></span>·<span·class="ow">in</span>·<span·class="o"><</span><span·class="n">module</span><span·class="o">></span> | 886 | <span·class="o"><</span><span·class="n">ipython</span><span·class="o">-</span><span·class="nb">input</span><span·class="o">-</span><span·class="mi">54</span><span·class="o">-</span><span·class="mi">6709</span><span·class="n">edaff03d</span><span·class="o">></span>·<span·class="ow">in</span>·<span·class="o"><</span><span·class="n">module</span><span·class="o">></span> |
887 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">ds</span><span·class="p">[</span><span·class="s2">"empty"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">full_like</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">),</span>·<span·class="n">fill_value</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> | 887 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">ds</span><span·class="p">[</span><span·class="s2">"empty"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">xr</span><span·class="o">.</span><span·class="n">full_like</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">air</span><span·class="o">.</span><span·class="n">mean</span><span·class="p">(</span><span·class="s2">"time"</span><span·class="p">),</span>·<span·class="n">fill_value</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span> |
Offset 431, 18 lines modified | Offset 431, 18 lines modified | ||
431 | <span·class="nn">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ni">open_dataset</span><span·class="nt">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 431 | <span·class="nn">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ni">open_dataset</span><span·class="nt">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
432 | <span·class="g·g-Whitespace">·····</span><span·class="mi">76</span><span·class="s2">·········#·May·want·to·add·an·option·to·remove·it.</span> | 432 | <span·class="g·g-Whitespace">·····</span><span·class="mi">76</span><span·class="s2">·········#·May·want·to·add·an·option·to·remove·it.</span> |
433 | <span·class="g·g-Whitespace">·····</span><span·class="mi">77</span><span·class="s2">·········if·not·_os.path.isdir(longdir):</span> | 433 | <span·class="g·g-Whitespace">·····</span><span·class="mi">77</span><span·class="s2">·········if·not·_os.path.isdir(longdir):</span> |
434 | <span·class="ne">--->·</span><span·class="mi">78</span><span·class="s2">·············_os.mkdir(longdir)</span> | 434 | <span·class="ne">--->·</span><span·class="mi">78</span><span·class="s2">·············_os.mkdir(longdir)</span> |
435 | <span·class="g·g-Whitespace">·····</span><span·class="mi">79</span><span·class="s2">·</span> | 435 | <span·class="g·g-Whitespace">·····</span><span·class="mi">79</span><span·class="s2">·</span> |
436 | <span·class="g·g-Whitespace">·····</span><span·class="mi">80</span><span·class="s2">·········url·=·"/".join((github_url,·"raw",·branch,·fullname))</span> | 436 | <span·class="g·g-Whitespace">·····</span><span·class="mi">80</span><span·class="s2">·········url·=·"/".join((github_url,·"raw",·branch,·fullname))</span> |
437 | <span·class="ne">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 437 | <span·class="ne">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
438 | <span·class="gp">In·[5]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> | 438 | <span·class="gp">In·[5]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">"w"</span><span·class="p">)</span> |
439 | <span·class="gh">Out[5]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0x | 439 | <span·class="gh">Out[5]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xe53f9208></span> |
440 | <span·class="gp">In·[6]:·</span><span·class="kn">import</span>·<span·class="nn">zarr</span> | 440 | <span·class="gp">In·[6]:·</span><span·class="kn">import</span>·<span·class="nn">zarr</span> |
441 | <span·class="gp">In·[7]:·</span><span·class="n">zgroup</span>·<span·class="o">=</span>·<span·class="n">zarr</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">)</span> | 441 | <span·class="gp">In·[7]:·</span><span·class="n">zgroup</span>·<span·class="o">=</span>·<span·class="n">zarr</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="s2">"rasm.zarr"</span><span·class="p">)</span> |
442 | <span·class="gp">In·[8]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">zgroup</span><span·class="o">.</span><span·class="n">tree</span><span·class="p">())</span> | 442 | <span·class="gp">In·[8]:·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">zgroup</span><span·class="o">.</span><span·class="n">tree</span><span·class="p">())</span> |
443 | <span·class="go">/</span> | 443 | <span·class="go">/</span> |
Offset 408, 24 lines modified | Offset 408, 24 lines modified | ||
408 | <span·class="gp">···....:·</span>····<span·class="n">np</span><span·class="o">.</span><span·class="n">sin</span><span·class="p">(</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">pi</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)),</span> | 408 | <span·class="gp">···....:·</span>····<span·class="n">np</span><span·class="o">.</span><span·class="n">sin</span><span·class="p">(</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">2</span>·<span·class="o">*</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">pi</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)),</span> |
409 | <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span> | 409 | <span·class="gp">···....:·</span>····<span·class="n">dims</span><span·class="o">=</span><span·class="s2">"x"</span><span·class="p">,</span> |
410 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)},</span> | 410 | <span·class="gp">···....:·</span>····<span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)},</span> |
411 | <span·class="gp">···....:·</span><span·class="p">)</span> | 411 | <span·class="gp">···....:·</span><span·class="p">)</span> |
412 | <span·class="gp">···....:·</span> | 412 | <span·class="gp">···....:·</span> |
413 | <span·class="gp">In·[17]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="s2">"o"</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">"original"</span><span·class="p">)</span> | 413 | <span·class="gp">In·[17]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="s2">"o"</span><span·class="p">,</span>·<span·class="n">label</span><span·class="o">=</span><span·class="s2">"original"</span><span·class="p">)</span> |
414 | <span·class="gh">Out[17]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xe5 | 414 | <span·class="gh">Out[17]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xe54bba48>]</span> |
415 | <span·class="gp">In·[18]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">))</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"linear·(default)"</span><span·class="p">)</span> | 415 | <span·class="gp">In·[18]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">))</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"linear·(default)"</span><span·class="p">)</span> |
416 | <span·class="gh">Out[18]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0x | 416 | <span·class="gh">Out[18]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xe54bbc70>]</span> |
417 | <span·class="gp">In·[19]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">),</span>·<span·class="n">method</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span> | 417 | <span·class="gp">In·[19]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">100</span><span·class="p">),</span>·<span·class="n">method</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="o">.</span><span·class="n">line</span><span·class="p">(</span><span·class="n">label</span><span·class="o">=</span><span·class="s2">"cubic"</span><span·class="p">)</span> |
418 | <span·class="gh">Out[19]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xd | 418 | <span·class="gh">Out[19]:·</span><span·class="go">[<matplotlib.lines.Line2D·at·0xdacf5958>]</span> |
419 | <span·class="gp">In·[20]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> | 419 | <span·class="gp">In·[20]:·</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">legend</span><span·class="p">()</span> |
420 | <span·class="gh">Out[20]:·</span><span·class="go"><matplotlib.legend.Legend·at·0xd | 420 | <span·class="gh">Out[20]:·</span><span·class="go"><matplotlib.legend.Legend·at·0xdab96e20></span> |
421 | </pre></div> | 421 | </pre></div> |
422 | </div> | 422 | </div> |
423 | <a·class="reference·internal·image-reference"·href="_images/interpolation_sample1.png"><img·alt="_images/interpolation_sample1.png"·src="_images/interpolation_sample1.png"·style="width:·4in;"·/></a> | 423 | <a·class="reference·internal·image-reference"·href="_images/interpolation_sample1.png"><img·alt="_images/interpolation_sample1.png"·src="_images/interpolation_sample1.png"·style="width:·4in;"·/></a> |
424 | <p>Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.</p> | 424 | <p>Additional·keyword·arguments·can·be·passed·to·scipy’s·functions.</p> |
425 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·fill·0·for·the·outside·of·the·original·coordinates.</span> | 425 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="go">#·fill·0·for·the·outside·of·the·original·coordinates.</span> |
426 | <span·class="gp">In·[21]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">0.5</span><span·class="p">,</span>·<span·class="mf">1.5</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">),</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"fill_value"</span><span·class="p">:</span>·<span·class="mf">0.0</span><span·class="p">})</span> | 426 | <span·class="gp">In·[21]:·</span><span·class="n">da</span><span·class="o">.</span><span·class="n">interp</span><span·class="p">(</span><span·class="n">x</span><span·class="o">=</span><span·class="n">np</span><span·class="o">.</span><span·class="n">linspace</span><span·class="p">(</span><span·class="o">-</span><span·class="mf">0.5</span><span·class="p">,</span>·<span·class="mf">1.5</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">),</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"fill_value"</span><span·class="p">:</span>·<span·class="mf">0.0</span><span·class="p">})</span> |
427 | <span·class="gh">Out[21]:·</span><span·class="go"></span> | 427 | <span·class="gh">Out[21]:·</span><span·class="go"></span> |
Offset 1059, 15 lines modified | Offset 1059, 15 lines modified | ||
1059 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2000-01-01"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">),</span> | 1059 | <span·class="gp">···....:·</span>········<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="n">pd</span><span·class="o">.</span><span·class="n">date_range</span><span·class="p">(</span><span·class="s2">"2000-01-01"</span><span·class="p">,</span>·<span·class="n">periods</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">),</span> |
1060 | <span·class="gp">···....:·</span>········<span·class="s2">"z"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="nb">list</span><span·class="p">(</span><span·class="s2">"abcd"</span><span·class="p">)),</span> | 1060 | <span·class="gp">···....:·</span>········<span·class="s2">"z"</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">"x"</span><span·class="p">,</span>·<span·class="nb">list</span><span·class="p">(</span><span·class="s2">"abcd"</span><span·class="p">)),</span> |
1061 | <span·class="gp">···....:·</span>····<span·class="p">},</span> | 1061 | <span·class="gp">···....:·</span>····<span·class="p">},</span> |
1062 | <span·class="gp">···....:·</span><span·class="p">)</span> | 1062 | <span·class="gp">···....:·</span><span·class="p">)</span> |
1063 | <span·class="gp">···....:·</span> | 1063 | <span·class="gp">···....:·</span> |
1064 | <span·class="gp">In·[39]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> | 1064 | <span·class="gp">In·[39]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">to_zarr</span><span·class="p">(</span><span·class="s2">"path/to/directory.zarr"</span><span·class="p">)</span> |
1065 | <span·class="gh">Out[39]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xd | 1065 | <span·class="gh">Out[39]:·</span><span·class="go"><xarray.backends.zarr.ZarrStore·at·0xda42fa18></span> |
1066 | </pre></div> | 1066 | </pre></div> |
1067 | </div> | 1067 | </div> |
1068 | <p>(The·suffix·<code·class="docutils·literal·notranslate"><span·class="pre">.zarr</span></code>·is·optional–just·a·reminder·that·a·zarr·store·lives | 1068 | <p>(The·suffix·<code·class="docutils·literal·notranslate"><span·class="pre">.zarr</span></code>·is·optional–just·a·reminder·that·a·zarr·store·lives |
1069 | there.)·If·the·directory·does·not·exist,·it·will·be·created.·If·a·zarr | 1069 | there.)·If·the·directory·does·not·exist,·it·will·be·created.·If·a·zarr |
1070 | store·is·already·present·at·that·path,·an·error·will·be·raised,·preventing·it | 1070 | store·is·already·present·at·that·path,·an·error·will·be·raised,·preventing·it |
1071 | from·being·overwritten.·To·override·this·behavior·and·overwrite·an·existing | 1071 | from·being·overwritten.·To·override·this·behavior·and·overwrite·an·existing |
1072 | store,·add·<code·class="docutils·literal·notranslate"><span·class="pre">mode='w'</span></code>·when·invoking·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">to_zarr()</span></code>.</p> | 1072 | store,·add·<code·class="docutils·literal·notranslate"><span·class="pre">mode='w'</span></code>·when·invoking·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">to_zarr()</span></code>.</p> |
Offset 326, 15 lines modified | Offset 326, 15 lines modified | ||
326 | <span·class="nn">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ni">open_dataset</span><span·class="nt">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> | 326 | <span·class="nn">/build/reproducible-path/python-xarray-0.16.2/xarray/tutorial.py</span>·in·<span·class="ni">open_dataset</span><span·class="nt">(name,·cache,·cache_dir,·github_url,·branch,·**kws)</span> |
327 | <span·class="g·g-Whitespace">·····</span><span·class="mi">76</span>·········<span·class="c1">#·May·want·to·add·an·option·to·remove·it.</span> | 327 | <span·class="g·g-Whitespace">·····</span><span·class="mi">76</span>·········<span·class="c1">#·May·want·to·add·an·option·to·remove·it.</span> |
328 | <span·class="g·g-Whitespace">·····</span><span·class="mi">77</span>·········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">_os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">isdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">):</span> | 328 | <span·class="g·g-Whitespace">·····</span><span·class="mi">77</span>·········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">_os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">isdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">):</span> |
329 | <span·class="ne">--->·</span><span·class="mi">78</span>·············<span·class="n">_os</span><span·class="o">.</span><span·class="n">mkdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">)</span> | 329 | <span·class="ne">--->·</span><span·class="mi">78</span>·············<span·class="n">_os</span><span·class="o">.</span><span·class="n">mkdir</span><span·class="p">(</span><span·class="n">longdir</span><span·class="p">)</span> |
330 | <span·class="g·g-Whitespace">·····</span><span·class="mi">79</span>· | 330 | <span·class="g·g-Whitespace">·····</span><span·class="mi">79</span>· |
331 | <span·class="g·g-Whitespace">·····</span><span·class="mi">80</span>·········<span·class="n">url</span>·<span·class="o">=</span>·<span·class="s2">"/"</span><span·class="o">.</span><span·class="n">join</span><span·class="p">((</span><span·class="n">github_url</span><span·class="p">,</span>·<span·class="s2">"raw"</span><span·class="p">,</span>·<span·class="n">branch</span><span·class="p">,</span>·<span·class="n">fullname</span><span·class="p">))</span> | 331 | <span·class="g·g-Whitespace">·····</span><span·class="mi">80</span>·········<span·class="n">url</span>·<span·class="o">=</span>·<span·class="s2">"/"</span><span·class="o">.</span><span·class="n">join</span><span·class="p">((</span><span·class="n">github_url</span><span·class="p">,</span>·<span·class="s2">"raw"</span><span·class="p">,</span>·<span·class="n">branch</span><span·class="p">,</span>·<span·class="n">fullname</span><span·class="p">))</span> |
332 | <span·class="ne">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/ | 332 | <span·class="ne">FileNotFoundError</span>:·[Errno·2]·No·such·file·or·directory:·'/nonexistent/second-build/.xarray_tutorial_data' |
333 | <span·class="gp">In·[6]:·</span><span·class="n">airtemps</span> | 333 | <span·class="gp">In·[6]:·</span><span·class="n">airtemps</span> |
334 | <span·class="gt">---------------------------------------------------------------------------</span> | 334 | <span·class="gt">---------------------------------------------------------------------------</span> |
335 | <span·class="ne">NameError</span><span·class="g·g-Whitespace">·································</span>Traceback·(most·recent·call·last) | 335 | <span·class="ne">NameError</span><span·class="g·g-Whitespace">·································</span>Traceback·(most·recent·call·last) |
336 | <span·class="o"><</span><span·class="n">ipython</span><span·class="o">-</span><span·class="nb">input</span><span·class="o">-</span><span·class="mi">6</span><span·class="o">-</span><span·class="n">eb57b540ddce</span><span·class="o">></span>·<span·class="ow">in</span>·<span·class="o"><</span><span·class="n">module</span><span·class="o">></span> | 336 | <span·class="o"><</span><span·class="n">ipython</span><span·class="o">-</span><span·class="nb">input</span><span·class="o">-</span><span·class="mi">6</span><span·class="o">-</span><span·class="n">eb57b540ddce</span><span·class="o">></span>·<span·class="ow">in</span>·<span·class="o"><</span><span·class="n">module</span><span·class="o">></span> |
337 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">airtemps</span> | 337 | <span·class="ne">---->·</span><span·class="mi">1</span>·<span·class="n">airtemps</span> |
Offset 498, 15 lines modified | Offset 498, 15 lines modified | ||
498 | </pre></div> | 498 | </pre></div> |
499 | </div> | 499 | </div> |
500 | </div> | 500 | </div> |
501 | <div·class="section"·id="plotting"> | 501 | <div·class="section"·id="plotting"> |
502 | <h2>Plotting<a·class="headerlink"·href="#plotting"·title="Permalink·to·this·headline">¶</a></h2> | 502 | <h2>Plotting<a·class="headerlink"·href="#plotting"·title="Permalink·to·this·headline">¶</a></h2> |
503 | <p>Visualizing·your·datasets·is·quick·and·convenient:</p> | 503 | <p>Visualizing·your·datasets·is·quick·and·convenient:</p> |
504 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[37]:·</span><span·class="n">data</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 504 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[37]:·</span><span·class="n">data</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
505 | <span·class="gh">Out[37]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xd | 505 | <span·class="gh">Out[37]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xd97b48b0></span> |
506 | </pre></div> | 506 | </pre></div> |
507 | </div> | 507 | </div> |
508 | <img·alt="_images/plotting_quick_overview.png"·src="_images/plotting_quick_overview.png"·/> | 508 | <img·alt="_images/plotting_quick_overview.png"·src="_images/plotting_quick_overview.png"·/> |
509 | <p>Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata·attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see·<a·class="reference·internal"·href="plotting.html#plotting"><span·class="std·std-ref">Plotting</span></a>.</p> | 509 | <p>Note·the·automatic·labeling·with·names·and·units.·Our·effort·in·adding·metadata·attributes·has·paid·off!·Many·aspects·of·these·figures·are·customizable:·see·<a·class="reference·internal"·href="plotting.html#plotting"><span·class="std·std-ref">Plotting</span></a>.</p> |
510 | </div> | 510 | </div> |
511 | <div·class="section"·id="pandas"> | 511 | <div·class="section"·id="pandas"> |
512 | <h2>pandas<a·class="headerlink"·href="#pandas"·title="Permalink·to·this·headline">¶</a></h2> | 512 | <h2>pandas<a·class="headerlink"·href="#pandas"·title="Permalink·to·this·headline">¶</a></h2> |
Offset 151, 70 lines modified | Offset 151, 70 lines modified | ||
151 | ········"0alpha10":·36, | 151 | ········"0alpha10":·36, |
152 | ········"0c0dc80c25a9":·6, | 152 | ········"0c0dc80c25a9":·6, |
153 | ········"0e8985178ccc":·26, | 153 | ········"0e8985178ccc":·26, |
154 | ········"0eb806e38f7f":·[14,·15], | 154 | ········"0eb806e38f7f":·[14,·15], |
155 | ········"0f41191e8013":·28, | 155 | ········"0f41191e8013":·28, |
156 | ········"0th":·[6,·22], | 156 | ········"0th":·[6,·22], |
157 | ········"0x0l":·36, | 157 | ········"0x0l":·36, |
158 | ········"0xd | 158 | ········"0xd8a5e7c0":·36, |
159 | ········"0xd34fe298":·28, | ||
160 | ········"0xd35062f8":·28, | ||
161 | ········"0xd361e4a8":·29, | ||
162 | ········"0xd | 159 | ········"0xd96e6700":·28, |
163 | ········"0xd369b028":·28, | ||
164 | ········"0xd369b088":·28, | ||
165 | ········"0xd369b0e8":·28, | ||
166 | ········"0xd | 160 | ········"0xd97b48b0":·29, |
167 | ········"0xd | 161 | ········"0xd982e430":·28, |
168 | ········"0xd | 162 | ········"0xd982e460":·28, |
169 | ········"0xd | 163 | ········"0xd982e490":·28, |
170 | ········"0xd3855c88":·28, | ||
171 | ········"0xd | 164 | ········"0xd982e4f0":·28, |
172 | ········"0xd | 165 | ········"0xd982e550":·28, |
173 | ········"0xd | 166 | ········"0xd98a72f8":·28, |
167 | ········"0xd98a73b8":·28, | ||
174 | ········"0xd | 168 | ········"0xd98b7be0":·28, |
175 | ········"0xd | 169 | ········"0xd98be238":·28, |
176 | ········"0xd5435280":·28, | ||
177 | ········"0xd5a5f418":·28, | ||
178 | ········"0xd5a7a4c0":·28, | ||
179 | ········"0xd6285ad8":·28, | ||
180 | ········"0xd | 170 | ········"0xd98d2e08":·28, |
181 | ········"0xd6287f28":·28, | ||
182 | ········"0xd6287fa0":·28, | ||
183 | ········"0xd628a5b0":·28, | ||
184 | ········"0xd62c1418":·28, | ||
185 | ········"0xd62c9d78":·28, | ||
186 | ········"0xd6d6f388":·28, | ||
187 | ········"0xd7736940":·28, | ||
188 | ········"0xd7737b50":·28, | ||
189 | ········"0xd7788e38":·28, | ||
190 | ········"0xd778ebc8":·26, | ||
191 | ········"0xd779db38":·26, | ||
192 | ········"0xd779dcb8":·26, | ||
193 | ········"0xd779dd18":·26, | ||
194 | ········"0xd779de98":·26, | ||
195 | ········"0xd779def8":·26, | ||
196 | ········"0xd81acdf0":·25, | ||
197 | ········"0xd81d3778":·24, | ||
198 | ········"0xd8bcb928":·28, | ||
199 | ········"0xd954dbb0":·25, | ||
200 | ········"0xd95b6448":·25, | ||
201 | ········"0xdb3aff28":·28, | ||
202 | ········"0xdefc22c8":·28, | ||
203 | ········"0xdefc7850":·7, | ||
204 | ········"0xdefc7be0":·7, | ||
205 | ········"0xdf9797d8":·28, | ||
206 | ········"0xdf99e0e8":·26, | ||
207 | ········"0xd | 171 | ········"0xd9a3bc70":·28, |
172 | ········"0xd9a49760":·28, | ||
173 | ········"0xd9a4fe38":·28, | ||
174 | ········"0xd9a59ec8":·28, | ||
175 | ········"0xd9a59f40":·28, | ||
176 | ········"0xd9bbb568":·28, | ||
177 | ········"0xd9ed46e8":·28, | ||
178 | ········"0xd9f41b68":·28, | ||
179 | ········"0xd9f41eb0":·28, | ||
180 | ········"0xd9f4a088":·28, | ||
181 | ········"0xda0a2fe8":·28, | ||
182 | ········"0xda0a7d90":·28, | ||
183 | ········"0xda0d91f0":·28, | ||
184 | ········"0xda0df760":·28, | ||
185 | ········"0xda3de0b8":·28, | ||
186 | ········"0xda3de388":·28, | ||
187 | ········"0xda3f57c0":·28, | ||
188 | ········"0xda42fa18":·26, | ||
189 | ········"0xda4458c8":·26, | ||
190 | ········"0xda445a48":·26, | ||
191 | ········"0xda445a78":·26, | ||
192 | ········"0xda445d78":·26, | ||
193 | ········"0xdab96ca0":·28, | ||
194 | ········"0xdab96e20":·25, | ||
208 | ········"0x | 195 | ········"0xdacf5958":·25, |
196 | ········"0xdad5ea00":·28, | ||
197 | ········"0xdcf313a0":·28, | ||
198 | ········"0xdcf31820":·28, | ||
199 | ········"0xdcfc5670":·28, | ||
200 | ········"0xdd0be898":·28, | ||
201 | ········"0xde2fa700":·7, | ||
202 | ········"0xde2faa90":·7, | ||
203 | ········"0xdec5ba48":·26, | ||
204 | ········"0xdec5bdd8":·26, | ||
205 | ········"0xe53f9208":·24, | ||
206 | ········"0xe54bba48":·25, | ||
207 | ········"0xe54bbc70":·25, | ||
208 | ········"0xe54bbdc0":·28, | ||
209 | ········"0xe | 209 | ········"0xe7d5ea48":·16, |
210 | ········"0xe7ac0b08":·28, | ||
211 | ········"0xe | 210 | ········"0xebe1e2c8":·17, |
212 | ········"0xf2 | 211 | ········"0xf2cdd028":·28, |
213 | ········"0xf2 | 212 | ········"0xf2d47e80":·28, |
213 | ········"0xf2dc8190":·28, | ||
214 | ········"100":·[3,·4,·6,·11,·12,·22,·25,·26,·28,·31,·36], | 214 | ········"100":·[3,·4,·6,·11,·12,·22,·25,·26,·28,·31,·36], |
215 | ········"1000":·[6,·36], | 215 | ········"1000":·[6,·36], |
216 | ········"100000":·6, | 216 | ········"100000":·6, |
217 | ········"1000x1000":·6, | 217 | ········"1000x1000":·6, |
218 | ········"1003":·4, | 218 | ········"1003":·4, |
219 | ········"101":·[4,·22,·28,·36], | 219 | ········"101":·[4,·22,·28,·36], |
220 | ········"101985":·26, | 220 | ········"101985":·26, |
Offset 4447, 15 lines modified | Offset 4447, 15 lines modified | ||
4447 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.where</span></code>·method·for·masking·xray·objects·according | 4447 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.where</span></code>·method·for·masking·xray·objects·according |
4448 | to·some·criteria.·This·works·particularly·well·with·multi-dimensional·data:</p> | 4448 | to·some·criteria.·This·works·particularly·well·with·multi-dimensional·data:</p> |
4449 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[44]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xray</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span><span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">),</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">)})</span> | 4449 | <div·class="highlight-ipython·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">In·[44]:·</span><span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">xray</span><span·class="o">.</span><span·class="n">Dataset</span><span·class="p">(</span><span·class="n">coords</span><span·class="o">=</span><span·class="p">{</span><span·class="s2">"x"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">),</span>·<span·class="s2">"y"</span><span·class="p">:</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">100</span><span·class="p">)})</span> |
4450 | <span·class="gp">In·[45]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"distance"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">sqrt</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">x</span>·<span·class="o">**</span>·<span·class="mi">2</span>·<span·class="o">+</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">y</span>·<span·class="o">**</span>·<span·class="mi">2</span><span·class="p">)</span> | 4450 | <span·class="gp">In·[45]:·</span><span·class="n">ds</span><span·class="p">[</span><span·class="s2">"distance"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">np</span><span·class="o">.</span><span·class="n">sqrt</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">x</span>·<span·class="o">**</span>·<span·class="mi">2</span>·<span·class="o">+</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">y</span>·<span·class="o">**</span>·<span·class="mi">2</span><span·class="p">)</span> |
4451 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span><span·class="o">.</span><span·class="n">where</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span>·<span·class="o"><</span>·<span·class="mi">100</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> | 4451 | <span·class="gp">In·[46]:·</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span><span·class="o">.</span><span·class="n">where</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">distance</span>·<span·class="o"><</span>·<span·class="mi">100</span><span·class="p">)</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">()</span> |
4452 | <span·class="gh">Out[46]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xd | 4452 | <span·class="gh">Out[46]:·</span><span·class="go"><matplotlib.collections.QuadMesh·at·0xd8a5e7c0></span> |
4453 | </pre></div> | 4453 | </pre></div> |
4454 | </div> | 4454 | </div> |
4455 | <a·class="reference·internal·image-reference"·href="_images/where_example.png"><img·alt="_images/where_example.png"·src="_images/where_example.png"·style="width:·4in;·height:·4in;"·/></a> | 4455 | <a·class="reference·internal·image-reference"·href="_images/where_example.png"><img·alt="_images/where_example.png"·src="_images/where_example.png"·style="width:·4in;·height:·4in;"·/></a> |
4456 | </li> | 4456 | </li> |
4457 | <li><p>Added·new·methods·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.diff</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.diff</span></code> | 4457 | <li><p>Added·new·methods·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.diff</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">xray.Dataset.diff</span></code> |
4458 | for·finite·difference·calculations·along·a·given·axis.</p></li> | 4458 | for·finite·difference·calculations·along·a·given·axis.</p></li> |
4459 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.to_masked_array</span></code>·convenience·method·for | 4459 | <li><p>New·<code·class="docutils·literal·notranslate"><span·class="pre">xray.DataArray.to_masked_array</span></code>·convenience·method·for |