Accessing data¶
The molecular PAH data is accessed through their associated unique identifiers (UIDs). However, a search-interface is available that allows retrieval of these UIDs through simplified queries. The syntax is identical to that used on the NASA Ames PAH IR Spectroscopic Database website.
uids = pahdb->Search("c<=20 neutral n=2 neutral")
uids = pahdb.search("c<=20 neutral n=2 neutral")
The molecular PAH data contained in the database XML-files consists of four main components:
Properties, .e.g, molecular weight, zero point energy, total energy, etc.
Vibrational transitions
Geometric data
Laboratory spectra
The following illustrates how to access these components.
pahdb = OBJ_NEW('AmesPAHdbIDLSuite')
uids = pahdb->Search("c<=20 neutral n=2 neutral")
pahs = pahdb->getSpeciesByUID(uids)
transitions = pahdb->getTransitionsByUID(uids)
geometries = pahdb->getGeometryByUID(uids)
laboratory = pahdb->getLaboratoryByUID(uids)
;; work ...
OBJ_DESTROY,[laboratory, $
geometries, $
transitions, $
pahs, $
pahdb]
pahdb = Amespahdbpythonsuite()
uids = pahdb.search("c<=20 neutral n=2 neutral")
pahs = pahdb.getspeciesbyuid(uids)
transitions = pahdb.gettransitionsbyuid(uids)
geometry = pahdb.getgeometrybyuid(uids)
laboratory = pahdb.getlaboratorybyuid(uids)
# work ...
Alternatively, one can access these components through the ‘species’-instance.
pahdb = OBJ_NEW('AmesPAHdbIDLSuite')
pahs = pahdb->getSpeciesByUID( $
pahdb->Search("c<=20 neutral n=2 neutral"))
transitions = pahs->transitions()
geometries = pahs->geometry()
laboratory = pahs->laboratory()
;; work ...
OBJ_DESTROY,[laboratory, $
geometries, $
transitions, $
pahs, $
pahdb]
pahdb = Amespahdbpythonsuite()
pahs = pahdb.getspeciesbyuid( \
pahdb.search("c<=20 neutral n=2 neutral"))
transitions = pahs.transitions()
geometry = pahs.geometry()
laboratory = pahs.laboratory()
# work ...