pandeia_io.make_scene

pandeia_io.make_scene(sed_type, sed_model, norm_band=None, norm_magnitude=None)

Create a stellar point-source scene dictionary for use in Pandeia.

Parameters

Name Type Description Default
sed_type Type of model: ‘phoenix’, ‘k93models’, ‘blackbody’, or ‘flat’ required
sed_model The SED model required for each sed_type: - phoenix or k93models: the model key (see load_sed_list) - blackbody: the effective temperature (K) - flat: the unit (‘flam’ or ‘fnu’) required
norm_band Band over which to normalize the spectrum. None
norm_magnitude Magnitude of the star at norm_band. None

Examples

>>> import gen_tso.pandeia_io as jwst
>>> sed_type = 'phoenix'
>>> sed_model = 'k5v'
>>> norm_band = '2mass,ks'
>>> norm_magnitude = 8.637
>>> scene = jwst.make_scene(sed_type, sed_model, norm_band, norm_magnitude)
>>> print(scene)
{'spectrum': {'sed': {'sed_type': 'phoenix', 'key': 'k5v'},
  'normalization': {'type': 'photsys',
   'bandpass': '2mass,ks',
   'norm_flux': 8.637,
   'norm_fluxunit': 'vegamag'},
  'extinction': {'bandpass': 'j',
   'law': 'mw_rv_31',
   'unit': 'mag',
   'value': 0},
  'lines': [],
  'redshift': 0},
 'position': {'orientation': 0.0, 'x_offset': 0.0, 'y_offset': 0.0},
 'shape': {'geometry': 'point'}}
>>> sed_type = 'blackbody'
>>> sed_model = 4250.0
>>> norm_band = '2mass,ks'
>>> norm_magnitude = 8.637
>>> scene = jwst.make_scene(sed_type, sed_model, norm_band, norm_magnitude)
Back to top