gbrammer / msaexp

Manual extraction of JWST NIRSpec spectra
MIT License
26 stars 28 forks source link

Function to center drizzle WCS on target or slit #22

Closed gbrammer closed 1 year ago

gbrammer commented 1 year ago

The centering of the drizzled 2D wcs still doesn't always come out right, so this update includes a function msaexp.utils.build_slit_centered_wcs to realign the output WCS on the target. The script drizzles a dummy 2D gaussian centered on the source_ypos and calculates a shift between the result and the array center.