pyvista / pyvista-xarray

xarray DataArray accessors for PyVista
Apache License 2.0
100 stars 7 forks source link

Component array ordering flaky behavior #32

Open giswqs opened 2 years ago

giswqs commented 2 years ago

One of the Binder examples is not working as expected.

import rioxarray

da = rioxarray.open_rasterio("bahamas_rgb.tif")
da = da.rio.reproject("EPSG:3857")

# Grab the mesh object for use with PyVista
mesh = da.pyvista.mesh(x="x", y="y", component="band")

# plot in 3D
mesh.plot(rgb=True, cpos="xy")

image

banesullivan commented 2 years ago

This is a known, flaky issue. I'll see what I can do to track it down

banesullivan commented 2 years ago

This test captures it and I currently have it marked as xfail until I figure out what is going awry:

https://github.com/pyvista/pyvista-xarray/blob/4efc9ebf237ab09a9b90caabccc82e9d9fcce9be/tests/test_rectilinear.py#L103-L114

banesullivan commented 2 years ago

For now, I have removed that example from the notebook. - components should be accessed one at a time for now

banesullivan commented 1 year ago

I think this is still an issue -- keeping open

giswqs commented 1 year ago

No problem. I was cleaning up the issues that I opened long time ago on many repos