Working with laboratory data

The ‘laboratory’-instance exposes available raw laboratory spectra when an experimental database XML-file is loaded.

uids = pahdb->Search("c<=20 neutral n=2 neutral")

laboratory = pahdb->getLaboratoryByUID(uids)

The ‘laboratory’-instance’s ‘Plot’-method will display the raw laboratory spectra. The spectrum of each PAH species will be presented in a different color.

laboratory->Plot

Optionally, the ‘Wavelength’, ‘Oplot’, and ‘Color’-keywords can be given to the ‘Plot’-method to control the abscissa, overplotting, and color, respectively. In the IDL case additional keywords accepted by IDL’s ‘PLOT’-procedure can be passed via the keyword inheritance mechanism.

laboratory->Plot,/Wavelength,Color=5,XRANGE=[2.5,15],/XSTYLE

The ‘laboratory’-instance’s ‘Write’-method will write the raw laboratory spectrum to file. The spectrum of each PAH species will be written to an IPAC table (.tbl). Optionally, a filename can be provided.

laboratory->Write,'myFile'