tweak_align¶
- grizli.prep.tweak_align(direct_group={}, grism_group={}, max_dist=1.0, n_min=10, key=' ', threshold=3, drizzle=False, fit_order=-1, ref_exp=0, flux_radius=[0.5, 5], min_nexp=2, master_radec=None, make_figures=True)[source]¶
Intra-visit shift alignment
- Parameters
- direct_groupdict
Visit info (
product
,files
) for direct images- grism_groupdict
Visit info (
product
,files
) for grism images- max_dist, thresholdfloat
Passed to
tweak_flt
- n_minint
Minimum number of sources for a valid fit.
- drizzlebool
Run
AstroDrizzle
after performing the alignment- fit_orderint
If > 0, then fit a polynomial to the derived shifts rather than using the shifts themselves, e.g., for DASH imaging
- ref_expint
Index of the exposure to use as the reference for the tweak shifts. If < 0, then use the exposure with the longest exposure time.
- flux_radius, master_radec, make_figuresfloat, str, bool
See
tweak_flt
- Returns
- Nothing, but updates WCS of direct and (optionally) grism exposures