dfm / dfm/python-fsps

changing the emission line velocity width

Abierto
#229 8 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
76
Forks
45
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Lee primero la documentación de stellarpop_api y ejecuta el ejemplo de espectro incluido. Rastrea cómo smooth_velocity, smooth_lsf y nebemlineinspec afectan al continuo estelar y a las líneas de emisión; se considera completado identificar una forma compatible de estrechar el doblete de [OII] sin suavizar el continuo, o documentar que este comportamiento requiere un cambio independiente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
fortran, python
Área
data
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.