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_galaxy

An 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_componentsdict

A dictionary containing information about the model you wish to generate.

filt_listlist, 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_unitsstr, 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_unitsstr, 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_listlist, optional

A list of dicts containining definitions for spectral indices.

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:
wavelengthArrayLike

The wavelengths in Angstroms.

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_componentsdict

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_linelist[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.