Previous Next

Usage

This is the example contained in example.pro located in the examples-directory and shows how the AmesPAHdbIDLSuite is used to display the ('stick') absorption spectrum of coronene (UID=18), apply an emission model and generate an emission spectrum.

; read in the default database defined by the environement variable
; !AMESPAHDEFAULTDB or the system variable AMESPAHDEFAULTDB.  use
; the keyword FILENAME if these have not been set
pahdb = OBJ_NEW('AmesPAHdbIDLSuite')

; get the integrated cross-sections for coronene
transitions = pahdb->getTransitionsByUID(18)

; plot the 'stick' spectrum
transitions->Plot

key = ''
read,key,prompt="Press  to continue..."

; calculate the emission spectrum at the temperature reached after
; absorbing a 4 eV (CGS units) photon
transitions->CalculatedTemperature,4D * 1.603D-12

; plot the emission 'stick' spectrum at that temperature
transitions->Plot

read,key,prompt="Press  to continue..."

; convolve the bands with a Lorentzian with
; FWHM of 30 /cm
convolved = transitions->Convolve(FWHM=30D)

; plot the convolved spectrum
convolved->Plot

; clean up
OBJ_DESTROY,[convolved, transitions, pahdb]

In addition, the PAHdb cookbook provides a collection of recipes for data analysis.