drizzle_array_groups

grizli.utils.drizzle_array_groups(sci_list, wht_list, wcs_list, var_list=None, median_weight=False, outputwcs=None, scale=0.1, kernel='point', pixfrac=1.0, calc_wcsmap=False, verbose=True, data=None, first_uniqid=1, with_slices=False, **kwargs)[source]

Drizzle array data with associated wcs

Parameters
sci_list, wht_listlist

List of science and weight ndarray objects.

wcs_listlist

List of WCS objects for each input array

var_listlist

List of separate variance arrays, if distinct from wht_list. The variance images are combined as Vfinal = Sum(wht_i**2 * var_i) / Sum(wht_i)**2, which reduces to Vfinal = 1 / Sum(wht_i) for inverse-variance weights wht_i = 1 / var_i typically used with drizzle.

median_weightbool

Use median of wht_list for weights and var_list = [1 / wht_list_i], e.g., for appropriate Poisson weighting

scalefloat

Output pixel scale in arcsec.

kernel, pixfracstr, float

Drizzle parameters

verbosebool

Print status messages

outputwcsWCS, optional

Output WCS for the drizzled image.

calc_wcsmapint, optional

Flag to indicate whether to calculate the full WCS map. If calc_wcsmap=0, the internal WCS map is not required. If calc_wcsmap=1, the internal WCS map is required. If calc_wcsmap=2, the internal WCS map is required and the output WCS requires calc_wcsmap=2.

datatuple, optional

Tuple containing the previously-drizzled images. Either data = outsci, outwht, outctx or data = outsci, outwht, outctx, varnum, where varnum = outvar * outwht

If not provided, new arrays will be created.

first_uniqidint, optional

First uniqid value to use for the drizzle for contex maps

with_slicesbool

Compute slices of the overlap with each exposure before drizzling to the output array

Returns
outsci, outwht, outctxndarray

Output drizzled science, weight, and context images

outvarndarray, None

Output variance if var_list provided or if median_weight

headerHeader

Drizzled image header.

outputwcsWCS

Drizzled image WCS.