ModelData¶
- class measure_extinction.modeldata.ModelData(modelfiles, path='./', band_names=['U', 'B', 'V', 'J', 'H', 'K'], spectra_names=['BAND', 'STIS'])[source]¶
Bases:
object
Provide stellar atmosphere model “observed” data given input stellar, gas, and dust extinction parameters.
- Parameters:
- modelfiles: string array
set of model files to use
- pathstring, optional
path for model files
- band_namesstring array, optional
bands to use default = [‘U’, ‘B’, ‘V’, ‘J’, ‘H’, ‘K’]
- spectra_namesstring array, optional
origin of the spectra to use default = [‘STIS’]
- Attributes:
- n_modelsint
number of stellar atmosphere models
- model_filesstring array
filenames for the models
- tempsfloat array
log10(effective temperatures)
- gravsfloat array
log10(surface gravities)
- metsfloat array
log10(metallicities)
- vturbsfloat array
microturbulance values [km/s]
- n_bandsint
number of photometric bands
- band_namesstring array
names of the photometric bands
- n_spectraint
number of different types of spectra
- spectra_namesstring array
identifications for the spectra data (includes band data)
- wavesn_spectra dict
wavelengths for the spectra
- fluxesn_spectra dict
fluxes in the bands
- flux_uncsn_spectra list
flux uncertainties in the bands
Methods Summary
SED_to_StarData
(sed)Convert the model created SED into a StarData object.
dust_extinguished_sed
(params, sed[, velocity])Dust extinguished sed given the extinction parameters
dust_extinguished_sed_FM90_G23
(params, sed)Dust extinguished sed given the extinction parameters
hi_abs_sed
(params, hi_velocities, sed)HI abs sed given the HI columns
stellar_sed
(params[, velocity])Compute the stellar SED given model parameters
Methods Documentation
- SED_to_StarData(sed)[source]¶
Convert the model created SED into a StarData object. Needed to plug into generating an ExtData object.
- Parameters:
- sedobject
SED of each component
- dust_extinguished_sed(params, sed, velocity=0.0)[source]¶
Dust extinguished sed given the extinction parameters
- Parameters:
- paramsfloat array
dust extinction parameters [Av, Rv, c2, c3, c4, gamma, x0]
- seddict
fluxes for each spectral piece
- velocityfloat, optional
velocity of dust
- Returns:
- extinguished seddict
SED with {‘bands’: band_sed, ‘spec’: spec_sed, …}
- dust_extinguished_sed_FM90_G23(params, sed, velocity=0.0)[source]¶
Dust extinguished sed given the extinction parameters
- Parameters:
- paramsfloat array
dust extinction parameters [Av, Rv, c2, c3, c4, gamma, x0]
- seddict
fluxes for each spectral piece
- velocityfloat, optional
velocity of dust
- Returns:
- extinguished seddict
SED with {‘bands’: band_sed, ‘spec’: spec_sed, …}
- hi_abs_sed(params, hi_velocities, sed)[source]¶
HI abs sed given the HI columns
- Parameters:
- paramsfloat array
hi columns [log(HI_MW), log(HI_gal)]
- hi_velocitiesfloat array
hi velocities in km/sec [vel_MW, vel_gal]
- seddict
fluxes for each spectral piece
- Returns:
- hi absorbed seddict
SED with {‘bands’: band_sed, ‘spec’: spec_sed, …}