webbpsf_ext.spectra.BOSZ_spectrum

webbpsf_ext.spectra.BOSZ_spectrum(Teff, metallicity, log_g, res=2000, interpolate=True, carbon=0, alpha=0, **kwargs)[source]

BOSZ stellar atmospheres (Bohlin et al 2017).

Read in a spectrum from the BOSZ stellar atmosphere models database. Returns a Pysynphot spectral object. Wavelength values range between 1000 Angstroms to 32 microns. Teff range from 3500K to 36000K.

This function interpolates the model grid by reading in those models closest in temperature, metallicity, and log g to the desired parameters, then takes the weighted average of these models based on their relative offsets. Can also just read in the closest model by setting interpolate=False.

Different spectral resolutions can also be specified.

Parameters
  • Teff (float) – Effective temperature ranging from 3500K to 30000K.

  • metallicity (float) – Metallicity [Fe/H] value ranging from -2.5 to 0.5.

  • log_g (float) – Surface gravity (log g) from 0 to 5.

Keyword Arguments
  • carbon (float) – Carbon abundance [C/M]. Must be either [-0.75,-0.5,-0.25, 0, 0.25, 0.5].

  • alpha (float) – alpha-element value [alpha/H]. Must be either [-0.25, 0, 0.25, 0.5]

  • res (str) – Spectral resolution to use (instrument broadening). Valid points: [200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 300000]

  • interpolate (bool) – Interpolate spectrum using a weighted average of grid points surrounding the desired input parameters.

References

https://archive.stsci.edu/prepds/bosz/