gbrammer / msaexp

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

Background subtraction with `background` slits #4

Open gbrammer opened 1 year ago

gbrammer commented 1 year ago

Implement option to use background_ slits to subtract a background directly from science slits if the 2D pixels line up.

gbrammer commented 1 year ago

A preliminary implementation of this is provided in https://github.com/gbrammer/msaexp/commit/713d7cf1f33511f5b5cc7fab232574e886a5e46a, which allows you to provide an explicit background array that is subtracted from each slitlet before drizzling.