
FUNCTION level_string, ion, i

;+
; NAME
;
;    LEVEL_STRING()
;
; EXPLANATION
;
;    Creates a string containing the level designation of level I in the
;    ion ION.
;
; INPUTS
;
;    ION   The name of an ion in CHIANTI format. E.g., 'fe_13'.
;
;    I     The level index of a level in the CHIANTI model.
;
; OUTPUTS
;
;    Returns a string giving the level description of the level in the
;    CHIANTI model.
;
; EXAMPLE
;
;    IDL> print,level_string('fe_13',1)
;    3s2.3p2 3P0
;
; CALLS
;
;    CONVERTNAME, ZION2FILENAME, READ_ELVLC
;
; HISTORY
;
;    Ver.1, 28-Jul-2006, Peter Young
;-

convertname,ion, iz, ii

zion2filename,iz,ii, froot

read_elvlc,froot+'.elvlc',l1,term,conf,ss,ll,jj,ecm,eryd,ecmth,erydth,ref

str=trim(term[i-1])

return,str

END
