Roadmap
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
This issue is a broad roadmap rather than a single implementation task. Start by selecting one unchecked area, such as a spectrum type or operation, then review the relevant package mentioned in the roadmap, including FITSIO.jl, WCS.jl, DustExtinction.jl, or Interpolations.jl. The design and completion criteria need to be agreed before implementation can begin.
Written by the indexing model from the issue text.
Description
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'sSpecUtils.spectrum1d. It contains a spectral axis (wavelength) and flux. This flux could be signified with a standard array or aMeasurements.jlarray signifying measurement uncertainty. Note that this is a design choice over having an explicitsigmaarray within theSpectrumtype. -
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 ofSpectrumbut into two dimensions. Is it appropriate to keep this a separate type, or shouldSpectrumhave an intrinsic dimension and an echelle spectrum would just be aSpectrum{..., 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
UseDustExtinction.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 inAstroBaseand 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 usingInterpolations.jlbut running into some problems. May switch toDiereckx.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 whatPySynphotoffers, where a user specifies a bandpass (either a standard likeVorHST-OIII, or aDistributions-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:
- Dominant language
- Julia
- Stars
- 5
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaAstro/SpectrumBase.jl
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaAstro/SpectrumBase.jl#66 · 1 comment ·
-
Spectra algebraOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaAstro/SpectrumBase.jl#43 · 1 comment ·
-
Trim dead codeOpenplanning
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Towards `SpectrumBase.jl`May be free again @KushalTrivedi19032005 claimed this 280 days ago, and no pull request is open. Openplanning
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaAstro/SpectrumBase.jl#41 · 4 comments ·
-
Explore moving out units and/or plottingMay be free again @icweaver claimed this 394 days ago, and no pull request is open. Open
JuliaAstro/SpectrumBase.jl#31 · 2 comments · 1 assignee ·
All issues in JuliaAstro/SpectrumBase.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
brown-ccv/Chamber.jl#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaBayes/Wren.jl#404 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 ·
Maintainers usually reply within 1 day