update_pure_parallel_wcs_old¶
- grizli.jwst_utils.update_pure_parallel_wcs_old(file, fix_vtype='PARALLEL_PURE', recenter_footprint=True, verbose=True, fit_kwargs={'method': 'powell', 'tol': 1e-05}, good_threshold=1.0)[source]¶
Update pointing information of pure parallel exposures using the pointing information of the prime exposures from the MAST database and
pysiafDeprecated: use
grizli.jwst_utils.update_pure_parallel_wcsFind the prime exposure from the MAST query that is closest in
EXPSTARTtofileUse the
apername, ra, decvalues of the prime exposure from the MAST query andPA_V3from thefileheader to set the the pointing attitude withpysiafCompute the sky position of the
CRPIXreference pixel offilewithpysiafand put that position in theCRVALkeywords
- Parameters
- filestr
Filename of a pure-parallel exposure (rate.fits)
- fix_vtypestr
Run if
file[0].header['VISITYPE'] == fix_vtype- recenter_footprintbool
Recenter the footprint of the parallel exposure to match the prime exposure.
- verbosebool
Status messaging
- fit_kwargsdict
Arguments to pass to
scipy.optimize.minimize.- good_thresholdfloat
Threshold for the fit to be considered “good” and update the WCS keywords.
- Returns
- statusNone, True
Returns None if some problem is found