drizzle_from_visit

grizli.utils.drizzle_from_visit(visit, output, pixfrac=1.0, kernel='point', clean=True, include_saturated=True, keep_bits=None, dryrun=False, skip=None, extra_wfc3ir_badpix=True, verbose=True, scale_photom=True, niriss_ghost_kwargs={})[source]

Make drizzle mosaic from exposures in a visit dictionary

Parameters:
visitdict

Visit dictionary with ‘product’ and ‘files’ keys

outputWCS, Header, ImageHDU

Output frame definition. Can be a WCS object, header, or FITS HDU

pixfracfloat

Drizzle pixfrac

kernelstr

Drizzle kernel (e.g., ‘point’, ‘square’)

cleanbool

Remove exposure files after adding to the mosaic

include_saturatedbool

Include pixels with saturated DQ flag

keep_bitsint, None

Extra DQ bits to keep as valid

dryrunbool

If True, don’t actually produce the output

skipint

Slice skip to drizzle a subset of exposures

extra_wfc3ir_badpixbool

Apply extra WFC3/IR bad pix to DQ

verbosebool

Some verbose message printing

scale_photombool

For JWST, apply photometry scale corrections from the grizli/data/photom_correction.yml table

niriss_ghost_kwargsdict

Keyword arguments for niriss_ghost_mask

Returns:
outsciarray-like

SCI array

outwhtarray-like

Inverse variance WHT array

headerHeader

Image header

flistlist

List of files that were drizzled to the mosaic

wcs_tabTable

Table of WCS parameters of individual exposures