pypeit / PypeIt

The Python Spectroscopic Data Reduction Pipeline
BSD 3-Clause "New" or "Revised" License
164 stars 105 forks source link

Specifying the highest S/N object in core.datacube.compute_weights() #1683

Open rremigio opened 1 year ago

rremigio commented 1 year ago

As of right now, the core.datacube.compute_weights() routine that is called during the creation of a datacube computes weights by extracting a spectrum from the single brightest pixel from the white light image.

Requesting that an option to specify the source location (perhaps in RA, DEC) as well as a spatial extraction window (in arcseconds?) for core.datacube.compute_weights().

rcooke-ast commented 9 months ago

This may be possible soon. I am working on spectral extractions in datacubes. So, we could compute_weights based on spec1d extractions, or possibly just a better automated location to select compute_weights to avoid outliers. If you're interested @rremigio, the branch I'm currently developing on is kcwi_cube_updates