iterate_tweak_align

grizli.prep.iterate_tweak_align(direct, grism, cat_threshold=7, cleanup=True, niter=3, tweak_kwargs={}, max_ref_sources=150, verbose=True)[source]

Iterate tweak_align aligning exposures to a mosaic created from those exposures

Parameters
directdict

Visit dictionary

grismdict

Grism dictionary

cat_thresholdfloat

Detection threshold for SEP catalog in the mosaic image.

cleanupbool

Remove backup files after completion.

niterint

Number of iterations.

tweak_kwargsdict

Keyword arguments for tweak_align.

max_ref_sourcesint

Maximum number of reference sources to use for alignment.

verbosebool

Print verbose output.

Returns
Nothing, but updates WCS of direct and (optionally) grism exposures.