UXARRAY / uxarray

Xarray-styled package for reading and directly operating on unstructured grid datasets following UGRID conventions
https://uxarray.readthedocs.io/
Apache License 2.0
139 stars 30 forks source link

Optimize `UxDataArray.gradient()` #824

Open philipc2 opened 1 week ago

philipc2 commented 1 week ago

Currently, we are excplicitly converting our data array into Numpy with the .values method.

https://github.com/UXARRAY/uxarray/blob/778e05e27af90a27e4ea81d84e137a33b6064a7a/uxarray/core/dataarray.py#L896

To support Dask, we should avoid this.