fiterpolate

sofia_redux.toolkit.image.smooth.fiterpolate(image, nx, ny)[source]

Fits a smooth surface to data using J. Tonry’s fiterpolate routine

Breaks the image up into shape[0] rows and shape[1] columns. Determines values and derivatives at the boundary points by fitting quadratic surfaces to the subimages. Uses bicubic interpolation to create a smoothed version of the image.

Parameters:
imagearray_like of float (nrow, ncol)

The 2D data to be fit

nxint

Number of column grid cells.

nyint

Number of row grid cells.

Returns:
numpy.ndarray of float (shape)

Smooth version of image