pandeia_io.find_closest_sed

pandeia_io.find_closest_sed(teff, logg, sed_type='phoenix')

A very simple cost-function to find the closest stellar model within a non-regular Teff-log_g grid.

Since these are not regular grids, the cost function is not an absolute science, it depends on what weights more Teff of logg for a given case. The current formula seems to be a good balance.

Parameters

Name Type Description Default
teff Target effective temperature. required
logg Target log(g). required
sed_type Select from ‘phoenix’ or ‘k93models’ 'phoenix'

Returns

Name Type Description
sed String The SED key that best matches the teff,logg pair.

Examples

>>> import gen_tso.pandeia_io as jwst
>>>
>>> # Kurucz models
>>> sed = jwst.find_closest_sed(
>>>     teff=4143.0, logg=4.66, sed_type='k93models',
>>> )
>>> print(f'SED: {repr(sed)}')
SED: 'k7v'
Back to top