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)[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 asVfinal = Sum(wht_i**2 * var_i) / Sum(wht_i)**2
, which reduces toVfinal = 1 / Sum(wht_i)
for inverse-variance weightswht_i = 1 / var_i
typically used with drizzle.- median_weightbool
Use median of
wht_list
for weights andvar_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
- outputwcs
WCS
, 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. Ifcalc_wcsmap=1
, the internal WCS map is required. Ifcalc_wcsmap=2
, the internal WCS map is required and the output WCS requirescalc_wcsmap=2
.- datatuple, optional
Tuple containing the previously-drizzled images. Either
data = outsci, outwht, outctx
ordata = outsci, outwht, outctx, varnum
, wherevarnum = outvar * outwht
If not provided, new arrays will be created.
- first_uniqidint, optional
First
uniqid
value to use for the drizzle for contex maps
- Returns