radis.io.exomol_utils module

Utils to read ExoMol

Borrowed from the Exojax code (which you should also have a look at !), by @HajimeKawahara, under MIT License.

e2s(molname_exact)[source]

convert the exact molname (used in ExoMol) to the simple molname

Args:

molname_exact: the exact molname

Returns:

simple molname

Examples:
>>> print(e2s("12C-1H4"))
>>> CH4
>>> print(e2s("23Na-16O-1H"))
>>> NaOH
>>> print(e2s("HeH_p"))
>>> HeH_p
>>> print(e2s("trans-31P2-1H-2H")) #not working
>>> Warning: Exact molname  trans-31P2-1H-2H cannot be converted to simple molname
>>> trans-31P2-1H-2H