desihub / desispec

DESI spectral pipeline
BSD 3-Clause "New" or "Revised" License
36 stars 24 forks source link

coadds: add options to filter targets while coadding #888

Open sbailey opened 4 years ago

sbailey commented 4 years ago

Add options to filter by target bits while coadding, e.g. to produce separate coadd files for QSO targets vs. LRG targets. Syntax would be something like:

desi_coadd_spectra \
    --target-column CMX_TARGET \
    --target-mask SV0_QSO,MINI_SV_QSO ... \
    {input cframe or spectra files to be coadded...}

If --target-column isn't specified, use desitarget.targets.main_cmx_or_sv to derive what flavor this likely is from the input fibermap (which inherited columns from the input targets so this should work).

sbailey commented 4 years ago

Moving this from the minisv2 project to the Development-2020 project since it isn't critical to have for minisv2 and we'd like to launch today.