Roadmap

Aperta
#3 4 commenti 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
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
julia
Ambito
data

Direzione di ricerca

Questa issue è una roadmap generale anziché una singola attività di implementazione. Inizia selezionando un’area non spuntata, ad esempio un tipo di spettro o un’operazione, quindi esamina il package pertinente menzionato nella roadmap, inclusi FITSIO.jl, WCS.jl, DustExtinction.jl o Interpolations.jl. Il design e i criteri di completamento devono essere concordati prima che l’implementazione possa iniziare.

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

Descrizione

planning

Below is a broad-strokes road map of the design of Spectra.jl

Types

General spectrum types

  • AbstractSpectrum (https://github.com/JuliaAstro/SpectrumBase.jl/pull/24)
  • Spectrum <: AbstractSpectrum
    This would be a type very similar to python's SpecUtils.spectrum1d. It contains a spectral axis (wavelength) and flux. This flux could be signified with a standard array or a Measurements.jl array signifying measurement uncertainty. Note that this is a design choice over having an explicit sigma array within the Spectrum type.
  • CountSpectrum <: Spectrum
    Similar to the above but carries an extra array around with the counts such that proper addition between spectra could happen.
  • EchelleSpectrum <: AbstractSpectrum (https://github.com/JuliaAstro/SpectrumBase.jl/commit/04fd312fec1b167f0617d8b0e55ea19b9402b4a6, https://github.com/JuliaAstro/SpectrumBase.jl/pull/24)
    Not sure the best way to implement this. It seems like a natural extension of Spectrum but into two dimensions. Is it appropriate to keep this a separate type, or should Spectrum have an intrinsic dimension and an echelle spectrum would just be a Spectrum{..., 2}

These types should be easy to create and have decent interoperability with FITSIO.jl and WCS.jl.

Operations

I would definitely enjoy some input on these, I have limited experience

  • Extinction
    Use DustExtinction.jl
  • Broadening
    • Instrumental
    • Rotational
      In general, I'm not certain whether it's appropriate to put these explicitly here or put the underlying broadening mechanics in AstroBase and provide the explicit instrumental or rotational broadening ops here (cc @giordano).
  • Doppler Shift (https://github.com/JuliaAstro/SpectrumBase.jl/pull/46)
  • Resampling (https://github.com/JuliaAstro/SpectrumBase.jl/pull/26)
    Currently using Interpolations.jl but running into some problems. May switch to Diereckx.jl. It will be nice to have a function that can resample to a minimum doppler content. The way I've implemented this before is to determine the minimal $\Delta \nu$ and create a subsequent log-lambda spaced grid.
  • Rescale
    A few ideas- rescale to a given integrated flux (as a value) or to another spectrum. Can optionally use a bandpass to only scale in a certain area (see photometry below)
  • Photometry
    This would be similar to what PySynphot offers, where a user specifies a bandpass (either a standard like V or HST-OIII, or a Distributions-like object with a pdf) and we can get the respective integrated flux density. Related: https://github.com/JuliaAstro/PhotometricFilters.jl/issues/32

Spectral Library Interface

I'm not certain if this is appropriate here or in a separate package, but it would be nice to have standardized interfaces to common model libraries (like PHOENIX). My gut says this should be a different package, but I'm not convinced yet. For an example of such an interface take a look at the work I've done here.

Other packages:

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.