changing the emission line velocity width
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 76
- Forks
- 45
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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')
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Lies zuerst die Dokumentation von stellarpop_api und führe das mitgelieferte Spektrum-Beispiel aus. Verfolge, wie sich smooth_velocity, smooth_lsf und nebemlineinspec auf das stellare Kontinuum und die Emissionslinien auswirken; als erledigt gilt, einen unterstützten Weg zu identifizieren, das [OII]-Duplett einzuengen, ohne das Kontinuum zu glätten, oder zu dokumentieren, dass dieses Verhalten eine separate Änderung erfordert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- fortran, python
- Bereich
- data
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100