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 · 2 comments · Fixed by #3725
Closed

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

hdsingh opened this issue May 19, 2019 · 2 comments · Fixed by #3725
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@hdsingh
Copy link

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 the type: bug Something isn't correct or isn't working label May 20, 2019
@philippjfr philippjfr added this to the v1.12.3 milestone May 20, 2019
@hdsingh
Copy link
Author

hdsingh commented May 20, 2019

@philippjfr Thank you !!

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants