pandeia_io.find_closest_sed
='phoenix') pandeia_io.find_closest_sed(teff, logg, sed_type
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)}')
'k7v' SED: