Class: SpectroApi

SpectroApi()

Object querying the spectroscopy service

Constructor

new SpectroApi()

Source:

Methods

getDataset(db, sourcefile, callback)

Get a complete dataset with all its transitions
Parameters:
Name Type Description
db string name of selected database
sourcefile string data file name in source database
callback function callback function called on returned transitions
Source:

getMetadata(callback)

Get metadata from spectroscopy database ( species by source database )
Parameters:
Name Type Description
callback function function applied to returned data
Source:

getStatuses(callback)

Get status of dbs from spectroscopy database
Parameters:
Name Type Description
callback function function applied to returned data
Source:

getTransitions(db, frequencies, atomcount, energyup, species, intensity, callback)

Get a list of transitions
Parameters:
Name Type Description
db string selected database
frequencies array min/max frequencies
atomcount array min/max number of atoms
energyup number maximum value of upper energy (float)
species array list of species
intensity number maximum intensity value (float)
callback function callback function called on found transitions
Source: