Function adas.spectroscopic2atomic
def spectroscopic2atomic(ion)
-
Return the
Parameters
ion
:str
, optionalarray
- ionisation degree I is neutral, II singly ionised etc.
Returns
iz
:integer, may be an array
- ionisation degree in atomic convention 0 for neutral, 1 for singly charged etc. -1 is returned for invalid input.
Notes
Limited to 0-92 so not a general purpose roman to arabic conversion routine.
Lower case Roman numerals are not considered as these are not correct for spectroscopic notation.
Version History
- Martin O'Mullane, 05-04-2021
- First version
Example
>>> import adas as adas >>> adas.spectroscopic2atomic(['I', 'XI', 'L']) array([ 0, 10, 49]) >>> adas.spectroscopic2atomic('II') 1