Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in xarray-data.ipynb ? #3

Closed
Carreau opened this issue Jul 16, 2018 · 0 comments · Fixed by #6
Closed

error in xarray-data.ipynb ? #3

Carreau opened this issue Jul 16, 2018 · 0 comments · Fixed by #6

Comments

@Carreau
Copy link

Carreau commented Jul 16, 2018

running the notebook, on the line

elevation = ds['elevation'].isel(ensemble=0).persist()

It seem like .isel(ensemble=0) is unnecessary as ds['elevation'] does not seem to have the ensemble dimension (and thus raise an error, at least for me and pangeo.pydata.org.

>>> ds['elevation']
<xarray.DataArray 'elevation' (lat: 224, lon: 464)>
dask.array<shape=(224, 464), dtype=float64, chunksize=(224, 464)>
Coordinates:
  * lat      (lat) float64 25.06 25.19 25.31 25.44 25.56 25.69 25.81 25.94 ...
  * lon      (lon) float64 -124.9 -124.8 -124.7 -124.6 -124.4 -124.3 -124.2 ...
Attributes:
    long_name:      Terrain Elevation
    standard_name:  elevation
    units:          meters
@Carreau Carreau changed the title error in xarray-data ? error in xarray-data.ipynb ? Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant