changing the emission line velocity width

未关闭
#229 8 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
fortran, python
领域
data

调研方向

首先阅读 stellarpop_api 文档,并运行随附的光谱示例。跟踪 smooth_velocity、smooth_lsf 和 nebemlineinspec 如何影响恒星连续谱和发射线;完成的标准是确定一种受支持的方法,在不平滑连续谱的情况下缩窄 [OII] 双线,或记录说明该行为需要单独的更改。

由索引模型根据 Issue 内容生成。

描述

Apologies if this information is in the documentation or in previously closed tickets, but I'd like to change (reduce) the velocity width of the emission lines without smoothing the stellar continuum. E.g., in the example below I would like to change the velocity width so the [OII] doublet is well-resolved.

According to the docs, smooth_velocity=True but smooth_lsf=False, by default, so there shouldn't be any supplemental smoothing. But clearly the lines are pretty broad (hard to tell, but I would guess >>100 km/s).

Any advice or guidance would be much-appreciated!

import fsps
import matplotlib.pyplot as plt

sp = fsps.StellarPopulation(compute_vega_mags=False, 
                            add_dust_emission=True,
                            add_neb_emission=True,
                            nebemlineinspec=True,
                            imf_type=1, # Chabrier
                            dust_type=0,
                            dust_index=-0.7,
                            sfh=0,
                            zcontinuous=1)
wave, flux = sp.get_spectrum(tage=1e-3, peraa=True)

I = (wave > 3697.) * (wave < 3757.)
fig, ax = plt.subplots()
ax.plot(wave[I], flux[I])
ax.set_xlabel('Wavelength (Angstrom)')
ax.set_ylabel('Flux')
fig.savefig('fsps-linewidth.png')

Screenshot 2023-08-29 at 2 29 40 PM

主要语言
Python
星标
76
派生
45
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dfm/python-fsps 的其他 Issue

查看 dfm/python-fsps 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。