changing the emission line velocity width
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Read the stellarpop_api documentation and run the supplied spectrum example first. Trace how smooth_velocity, smooth_lsf, and nebemlineinspec affect the stellar continuum and emission lines; done means identifying a supported way to narrow the [OII] doublet without smoothing the continuum, or documenting that the behavior requires a separate change.
Written by the indexing model from the issue text.
Description
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')
- Dominant language
- Python
- Stars
- 76
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 dfm/python-fsps
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
dfm/python-fsps#121 ·
-
Performance question Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
dfm/python-fsps#350 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
dfm/python-fsps#217 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
dfm/python-fsps#199 · 4 comments ·
-
dfm/python-fsps#197 · 2 comments · 1 assignee ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100