update_pure_parallel_wcs

grizli.jwst_utils.update_pure_parallel_wcs(file, fix_vtype='PARALLEL_PURE', verbose=True)[source]

Update pointing information of pure parallel exposures using the pointing information of the prime exposures from the MAST database and pysiaf

  1. Find the FGS log from a MAST query that is closest in EXPSTART to file

  2. Use the ra_v1, dec_v1, pa_v3 values of the FGS log to set 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

verbosebool

Status messaging

Returns
statusNone, True

Returns None if some problem is found