Roadmap

オープン
#3 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia
領域
data

調査の方向性

この issue は、単一の実装タスクではなく、広範なロードマップです。まず、スペクトル型や操作など、未チェックの領域を 1 つ選択し、次にロードマップで言及されている関連パッケージ(FITSIO.jl、WCS.jl、DustExtinction.jl、または Interpolations.jl など)を確認してください。実装を開始する前に、設計と完了基準について合意する必要があります。

索引モデルが issue の本文から書いたものです。

説明

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:

主要言語
Julia
スター
5
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

JuliaAstro/SpectrumBase.jl のほかの issue

JuliaAstro/SpectrumBase.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。