blot¶
- spizzle.blot(data, pixmap, fillval=nan, iscale=1.0, out=None)¶
Bilinear interpolation of
dataat the positions inpixmap, as drizzle’sblot_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
xandyof its center indata: the pixel map of the exposure onto the grid ofdata, 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.