drizzle_operator

spizzle.drizzle_operator(pixmap, out_shape, pixfrac=1.0, weights=None, weight_scale=1.0, region=None)

Drizzle operator of one exposure, square kernel.

corners, jacobian, overlap_triplets and build_operator in turn. Call those directly to keep the geometry and re-weight it.

With region, only the input pixels in it are drizzled, as with drizzle’s xmin, xmax, ymin and ymax; the others are not visited, which saves their overlap geometry. Their corners still come from the whole pixel map, so the region’s edge pixels are the same as without it. To leave out other pixels, give them zero weight: entries of zero weight are left out of the operator, so their data are never used.

Parameters:
pixmapndarray, shape (ny, nx, 2)

Output x and y coordinates of each input pixel center.

out_shapetuple of int

(ny_out, nx_out).

pixfracfloat

Linear size of the shrunken pixel as a fraction of the input pixel.

weightsndarray, shape (ny, nx), optional

Input pixel weights; all 1 if not given.

weight_scalefloat

Factor applied to the weights, drizzle’s wht_scale.

regiontuple of slice, optional

(slice(y0, y1), slice(x0, x1)) of the input pixels to drizzle; all by default. See overlap_triplets.

Returns:
Operator