redshift/doppler_shift conserving the total flux

Aperta
#66 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
julia
Ambito
data

Direzione di ricerca

Read the implementations of redshift and doppler_shift to see how they currently transform the spectral axis. Then decide whether flux conservation belongs in those functions or in a separate cosmological observing API, and what options that API needs. Done means agreeing on the intended behavior and API, including how flux scaling relates to luminosity distance.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I noticed that the redshift and doppler_shift functions only shift the spectral_axis according to the redshift or velocity. However, observed cosmologically redshifted or Doppler shifted spectra should also have their flux axis scaled (conserving the flux, or for a full treatment of cosmological redshift and the observed flux density, this would also depend on luminosity distance).

I think this functionality would be good to have in this package, which is the behavior I will be needing. However, I know there are other use cases where the flux scaling is not wanted (template matching comes to mind here). One option could be to add keyword arguments for conserving the total flux, something like:

redshift(spec, z; conserve_flux=false)
doppler_shift(spec, v; relativistic=false, conserve_flux=false)

For the cosmological treatment of observing a redshifted spectrum, perhaps a new function would be more appropriate? For example named observe, observe_redshift, or cosmological_redshift:

observe_redshift(luminosity_spectrum, z; luminosity_distance)
observe_redshift(luminosity_spectrum, z; c::Cosmology) # this could go in a SpectrumBaseCosmologyExt extension

I thought I would first put out these ideas before implementing something concrete. Any thoughts on the general idea or the possible API?

Lingua principale
Julia
Stelle
5
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaAstro/SpectrumBase.jl

Tutte le issue di JuliaAstro/SpectrumBase.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.