Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desi_ztile with pre-existing spectra files #2382

Open
sbailey opened this issue Oct 8, 2024 · 0 comments
Open

desi_ztile with pre-existing spectra files #2382

sbailey opened this issue Oct 8, 2024 · 0 comments

Comments

@sbailey
Copy link
Contributor

sbailey commented Oct 8, 2024

As a followup to the coaddition fixes in PR #2377, we want to run a post-Kibo prod that will start with symlinks to Kibo spectra files and run coadds and everything downstream of that.

However, ztile calls desispec.scripts.group_spectra.main (desi_group_spectra) to write both the spectra and the coadd files in a single call, since normally this is more efficient to avoid re-reading the spectra files with a separate call to desi_coadd_spectra. But the side effect here is that desi_ztile overwrites the spectra link with a re-gathers spectra file, wasting both time and disk space.

Add hooks in ztile to recognize the case where spectra*.fits.gz exists but coadd*.fits does not, and only call desi_coadd_spectra in that case instead of desi_group_spectra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant