Stellar Kurucz Model

A complete example of using a stellar Kurucz model to generate an emission spectrum is shown below. It is an adaption of ‘stellar_kurucz_model’ found in the examples-directory of the software tools, and is followed by a detailed, line-by-line, explanation of the code.

 1pahdb = OBJ_NEW('AmesPAHdbIDLSuite')
 2
 3uid = 18
 4
 5transitions = pahdb->getTransitionsByUID(uid)
 6
 7FTAB_EXT,'ckp00_17000.fits',[1,10],angstroms,flem,EXT=1
 8
 9e = !EXCEPT
10
11!EXCEPT = 0
12
13transitions->Cascade, $
14   AMESPAHDBIDLSUITE_CREATE_KURUCZ_STELLARMODEL_S(angstroms, flem), $
15   /Star, $
16   /StellarModel, $
17   /Convolved
18
19transitions->Shift,-15D
20
21spectrum = transitions->Convolve(FWHM=15D)
22
23spectrum->Plot
24
25OBJ_DESTROY,[spectrum, transitions, pahdb]
26
27!EXCEPT = e

A line-by-line explanation of the code follows.

line 1: The default NASA Ames PAH IR Spectroscopic Database XML-file is loaded.

line 3: Selecting UID 18 for coronene.

line 5: Retrieving the fundamental vibrational transitions for coronene.

line 7: Use astrolib’s FTAB_EXT to load in the Kurucz model from FITS file.

lines 9-11: Surpress under/overflow reporting.

lines 13-17: A Cascade emission model is applied that takes the Kurucz model as input using the AMESPAHDBIDLSUITE_CREATE_KURUCZ_STELLARMODEL_S convenience function to convert to expected units and convolves it with the entire spectrum.

line 19: The fundamental vibrational transitions are redshifted 15 cm-1.

line 21: The fundamental vibrational transitions are convolved with Lorentzian profiles having a full-width-at-half-maximum of 15 cm-1.

line 23: Display the resulting spectrum.

line 25: Cleanup.

line 27: Restore suppressing under/overflow reporting.

Below the generated output.

_images/14.png

Result of using a stellar Kurucz model to compute the emission spectrum of coronene.