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

Attribute 'flags' error on plotting xarray data using hvplot #3724

Closed
hdsingh opened this issue May 19, 2019 · 1 comment · Fixed by #3725
Closed

Attribute 'flags' error on plotting xarray data using hvplot #3724

hdsingh opened this issue May 19, 2019 · 1 comment · Fixed by #3725
Milestone

Comments

@hdsingh
Copy link

@hdsingh hdsingh commented May 19, 2019

The following code gives AttributeError("'Array' object has no attribute 'flags'") :

import hvplot.xarray

grib_thredds_da = xr.open_dataset("http://thredds.ucar.edu/thredds/dodsC/grib/FNMOC/WW3/Global_1p0deg/Best", chunks={})
var = 'wnd_wav_per_surface'
time_dim = grib_thredds_da[var].dims[0]

grib_thredds_da[var].hvplot(x='lon', y='lat', groupby=time_dim, rasterize=True)

We are able to perform all other operations on it using xarray such as:

grib_thredds_da[var].groupby(time_dim).mean()

but using hvplot results in error.
This conda environment has been used.

The same error has been reproduced in hdsingh/Dashboards#1 first three notebooks. Its traceback is also available in this issue.

@philippjfr @martindurant Please help me figure this out.

@philippjfr philippjfr transferred this issue from holoviz/hvplot May 20, 2019
@philippjfr philippjfr added this to the v1.12.3 milestone May 20, 2019
@hdsingh
Copy link
Author

@hdsingh hdsingh commented May 20, 2019

@philippjfr Thank you !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants