build_operator

spizzle.build_operator(triplets, jaco, out_shape, weights=None, weight_scale=1.0)

Drizzle operator of one exposure from its overlap geometry and weights.

Entries whose weight is zero are left out, as drizzle skips them, so a pixel with zero weight contributes nothing even where its data are NaN.

Parameters:
tripletstuple of ndarray

(in_idx, out_idx, area) from overlap_triplets.

jacondarray, shape (ny, nx)

From jacobian.

out_shapetuple of int

(ny_out, nx_out).

weightsndarray, shape (ny, nx), optional

Input pixel weights; all 1 if not given.

weight_scalefloat

Factor applied to the weights, drizzle’s wht_scale.

Returns:
Operator