blot

spizzle.blot(data, pixmap, fillval=nan, iscale=1.0, out=None)

Bilinear interpolation of data at the positions in pixmap, as drizzle’s blot_image.

Positions within half a pixel of an edge, beyond the outermost pixel centers, get the edge values, interpolated along the edge. Unlike drizzle’s, the valid positions are the image’s extent, [-0.5, nx_data - 0.5) x [-0.5, ny_data - 0.5).

Parameters:
datandarray, shape (ny_data, nx_data)

Image to interpolate, such as a mosaic or the median of resampled exposures; float32 or float64.

pixmapndarray, shape (ny, nx, 2)

For each pixel of the blotted image, the x and y of its center in data: the pixel map of the exposure onto the grid of data, as for drizzle_operator.

fillvalfloat

Value of the pixels whose position is NaN or outside the extent of data.

iscalefloat

Factor applied to the interpolated values.

outndarray, shape (ny, nx), optional

float32 or float64 array to write the result to.

Returns:
ndarray, shape (ny, nx)

out, or a new float64 array.