pseudo_drizzle

msaexp.slit_combine.pseudo_drizzle(xpix, ypix, data, var, wht, xbin, ybin, arrays=None, oversample=4, pixfrac=1, sample_axes='y')[source]

2D histogram analogous to drizzle. Oversamples along cross-dispersion axis to approximate pixfrac and smooth over pixel aliasing of curved traces.

Parameters
xpixarray-like

X pixel positions.

ypixarray-like

Y pixel positions.

dataarray-like

Data values.

whtarray-like

Weight values.

xbinarray-like

X bin edges.

ybinarray-like

Y bin edges.

arraystuple, optional

Tuple containing the four output arrays that will be updated in place

oversampleint, optional

Oversampling factor. Default is 4.

pixfracfloat, optional

Pixel fraction. Default is 1.

sample_axesstr, ‘x’,’y’,’xy’

Axes to sample

Returns
numarray-like

Weighted data numerator. The full weighted data result is num / den.

vnumarray-like

Weighted variance numerator. The full weighted variance is vnum / den**2.

denarray-like

Weighted denominator

ntotarray-like

Number of exposures that contribute to each output pixel