ExtendedModelGalaxy#
- class niriss_tools.grism.ExtendedModelGalaxy(model_components, filt_list=None, spec_wavs=None, spec_units='ergscma', phot_units='ergscma', index_list=None)[source]#
Bases:
model_galaxyAn extension of
bagpipes.models.model_galaxy.This class allows a model spectrum to be generated, with one or more nebular emission lines excluded.
- Parameters:
- model_components
dict A dictionary containing information about the model you wish to generate.
- filt_list
list, optional A list of paths to filter curve files, which should contain a column of wavelengths in angstroms followed by a column of transmitted fraction values. Only required if photometric output is desired.
- spec_wavsarray,optional
An array of wavelengths at which spectral fluxes should be returned. Only required of spectroscopic output is desired.
- spec_units
str, optional The units the output spectrum will be returned in. Default is “ergscma” for ergs per second per centimetre squared per angstrom, can also be set to “mujy” for microjanskys.
- phot_units
str, optional The units the output photometry will be returned in. Default is “ergscma” for ergs per second per centimetre squared per angstrom, can also be set to “mujy” for microjanskys.
- index_list
list, optional A list of dicts containining definitions for spectral indices.
- model_components
Methods Summary
air_to_vac(wavelength)Convert air to vacuum wavelengths.
update(model_components[, cont_only, ...])Update the model outputs based on
model_components.Methods Documentation
- static air_to_vac(wavelength)[source]#
Convert air to vacuum wavelengths.
Implements the air to vacuum wavelength conversion described in eqn 65 of Griesen 2006.
TODO: check against most recent specutils conversions.
- Parameters:
- wavelength
ArrayLike The wavelengths in Angstroms.
- wavelength
- update(model_components, cont_only=False, rm_line=None, fast_spec_only=True)[source]#
Update the model outputs based on
model_components.Update the model outputs to reflect new parameter values in the model_components dictionary. Note that only the changing of numerical values is supported.
- Parameters:
- model_components
dict A dictionary containing information about the model to be generated.
- cont_onlybool, optional
Generate only the continuum spectra, with no nebular emission at all. By default
False.- rm_line
list[str] |None, optional The names of one or more lines to exclude from the model spectrum, based on the Cloudy naming convention (see here for more details). By default
None.- fast_spec_onlybool, optional
Only perform the operations necessary to generate a model spectrum (i.e. do not calculate derived quantities). By default False.
- model_components