interpax_fft.irfft_interp2d
- interpax_fft.irfft_interp2d(c: Num[Array, 'nx ny ...'] | Num[ndarray, 'nx ny ...'] | Num[TypedNdArray, 'nx ny ...'], ny: int, n1: int, n2: int, sx: Num[Array, 's'] | Num[ndarray, 's'] | Num[TypedNdArray, 's'] | None = None, sy: Num[Array, 's'] | Num[ndarray, 's'] | Num[TypedNdArray, 's'] | None = None, dx: float = 1.0, dy: float = 1.0) Inexact[Array, 'n1 n2 ... s']Source
Interpolation of 2D Hermitian Fourier series via FFT.
- Parameters:
c (ndarray, shape(nx, ny // 2 + 1, ...)) – Fourier coefficients
jnp.fft.rfft2(f,axes=(0,1),norm="forward").ny (bool) – Number of sample points in y coordinate, e.g.
f.shape[1].n1 (int) – Number of desired interpolation points in x and y directions.
n2 (int) – Number of desired interpolation points in x and y directions.
sx (ndarray or None) – Shift in x and y to evaluate at. If original data is f(x,y), interpolates to f(x + sx, y + sy). Both must be provided or None.
sy (ndarray or None) – Shift in x and y to evaluate at. If original data is f(x,y), interpolates to f(x + sx, y + sy). Both must be provided or None.
dx (float) – Spacing of source points in x and y.
dy (float) – Spacing of source points in x and y.
- Returns:
fi (ndarray, shape(n1, n2, …, len(sx))) – Interpolated (and possibly shifted) data points.