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 pysiaf

Deprecated: use grizli.jwst_utils.update_pure_parallel_wcs

  1. Find the prime exposure from the MAST query that is closest in EXPSTART to file

  2. Use the apername, ra, dec values of the prime exposure from the MAST query and PA_V3 from the file header to set the the pointing attitude with pysiaf

  3. Compute the sky position of the CRPIX reference pixel of file with pysiaf and put that position in the CRVAL keywords

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