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

Spectra coaddition #805

Merged
merged 24 commits into from Aug 9, 2019
Merged

Spectra coaddition #805

merged 24 commits into from Aug 9, 2019

Conversation

julienguy
Copy link
Contributor

Add functions and a script to coadd spectra. The intention is to add this as a pipeline task.
This inherits from the work of N. Busca, D. Kirkby and others, with large improvements on CPU time when resampling to another wavelength grid using 1D spectro-perfectionism and the divide and conquer method.

desi_coadd_spectra --help
usage: Coadd all spectra per target, and optionally resample on linear or logarithmic wavelength grid
       [-h] [-i INFILE] [-o OUTFILE] [--nsig NSIG] [--lin-step LIN_STEP]
       [--log10-step LOG10_STEP] [--wave-min WAVE_MIN] [--wave-max WAVE_MAX]
       [--fast]

optional arguments:
  -h, --help            show this help message and exit
  -i INFILE, --infile INFILE
                        input spectra file
  -o OUTFILE, --outfile OUTFILE
                        output spectra file
  --nsig NSIG           nsigma rejection threshold for cosmic rays
  --lin-step LIN_STEP   resampling to single linear wave array of given step
                        in A
  --log10-step LOG10_STEP
                        resampling to single log10 wave array of given step in
                        units of log10
  --wave-min WAVE_MIN   specify the min wavelength in A (default is the min
                        wavelength in the input spectra), used only with
                        option --lin-step or --log10-step
  --wave-max WAVE_MAX   specify the max wavelength in A (default is the max
                        wavelength in the input spectra, approximate), used
                        only with option --lin-step or --log10-step)
  --fast                fast resampling, at the cost of correlated pixels and
                        no resolution matrix (used only with option --lin-step
                        or --log10-step)

@sbailey sbailey merged commit 660e7a8 into master Aug 9, 2019
@sbailey sbailey deleted the coadd branch August 9, 2019 21:40
@sbailey sbailey mentioned this pull request Aug 9, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants