Gradient of 2D splines on irregular grid

Thomas_Mikaelsen
Wed, 21 Sep 2022 14:12:24 +0000
General Usage

Hello.

I’m looking to (1) interpolate data where the x-axis is a log-spaced grid, the y-axis is a regular spaced grid and there is an array A(x,y) recording the function values in each point; and (2) take the gradient of the resulting interpolated function.

I’ve been looking at different packages, e.g. Dierckx and Interpolations. But Dierckx doesn’t support gradients above 1 dimension and Interpolations only support linear interpolations for irregular grids, and hence the derivatives will not be well-defined.

Is there a different package that will let me do the above?

Thanks alot.

3 posts - 3 participants