OpenGeoVis / PVGeo

🌍 Python package of VTK-based algorithms to analyze geoscientific data and models
https://pvgeo.org
BSD 3-Clause "New" or "Revised" License
214 stars 43 forks source link

EsriGridReader returns active_scalars is none ? #103

Closed leminhson closed 2 years ago

leminhson commented 3 years ago

Describe the bug When running the example from the page: (https://pvgeo.org/examples/grids/read-esri.html) I received this error: KeyError: 'Data array (None) not present in this dataset.'

Screenshots After checking the content of dem returned by EsriGridReader function, I notice that: 1) active_scalars is none active_scalar

2) points array did not get z-values. All z-values are zeros points_array

I am afraid that there is something incompatible between pyvista and PVGeo but could not find out the reason.

Desktop (please complete the following information):

leminhson commented 3 years ago

This example can run smoothly with pyvista version 0.31.3 with no error. So the problem should be from pyvista version 0.32.1

banesullivan commented 2 years ago

Thanks for bringing this up. I'll see if I can find time to update this

banesullivan commented 2 years ago

Resolved on the main branch. Will release a patch to pypi soon