| nist_lines | R Documentation |
Retrieves the lines of an atom or ion in a wavelength range from the NIST
Atomic Spectra Database (ASD): wavelengths, transition probabilities,
level energies and statistical weights, as needed by boltzmann()
and saha_boltzmann(). The data are downloaded on demand; they are
not distributed with specProc.
nist_lines(species, wavelength, with_aki = TRUE, timeout = 120)
species |
A character vector of emitters in spectroscopic notation,
such as |
wavelength |
A numeric vector of length 2: the wavelength range, in nm. |
with_aki |
A logical: keep only the lines with a transition
probability ( |
timeout |
The download timeout, in seconds. Default is 120. |
Wavelengths are in air between 200 and 2000 nm, and in vacuum outside
this range, as in the ASD. The observed wavelength is used when there is
one, the Ritz wavelength otherwise. Energies in brackets or with other
qualifiers are returned as they can be read as numbers; check the ASD
for such levels. The accuracy grade of the transition probability
(accuracy: AAA, AA, A+, A, B+, B, C+, C, D+, D, E) matters for plasma
diagnostics: prefer lines of grade B or better.
The results of a query are cached for the R session, and between sessions
with the persistent cache (see download_cache()). Cite the database
when you use these data:
Kramida, A., Ralchenko, Yu., Reader, J., and NIST ASD Team. NIST Atomic Spectra Database, https://physics.nist.gov/asd. National Institute of Standards and Technology, Gaithersburg, MD.
A tibble with one row per line and columns species,
wavelength (nm), Aki (s^{-1}), fik (oscillator strength),
accuracy, Ei and Ek (lower and upper level energies, eV), gi
and gk (statistical weights), lower and upper (configuration,
term and J of the levels) and intensity (the relative intensity
listed by the ASD, as text).
Christian L. Goueguel
nist_ionization_energy(), boltzmann(),
saha_boltzmann(), starkb_lines()
# needs an internet connection; gives up after 20 s if NIST does not answer
ca <- try(nist_lines(c("Ca I", "Ca II"), wavelength = c(390, 400), timeout = 20))
if (!inherits(ca, "try-error")) ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.