laplacian is implemented naively and just sums the second derivative across the selected dimensions, which is all of them by default. When given an xarray, we could:
- skip any dimension that doesn't have dimensionality of length.
- skip any dimension that has dimensionality of time (what about pressure?)
Noted in this Stack Overflow question. I'm not sure if there are downsides, but the current failure mode of a DimensionalityError is a bit tricky to decipher.
We should also update the docs to reflect the limitations and added behavior.
laplacianis implemented naively and just sums the second derivative across the selected dimensions, which is all of them by default. When given an xarray, we could:Noted in this Stack Overflow question. I'm not sure if there are downsides, but the current failure mode of a
DimensionalityErroris a bit tricky to decipher.We should also update the docs to reflect the limitations and added behavior.