Examples for the LLSSystem Class (v1.0)


In [1]:
# imports
from xastropy.igm.abs_sys import lls_utils as xlu

Simple Instantiate


In [5]:
reload(xlu)
lls = xlu.LLSSystem(NHI=17.9)
lls


Out[5]:
[LLSSystem: 00:00:00 +00:00:00, z=0, NHI=17.9, tau=5.03537, [M/H]=0dex]

From a JXP .dat file (to be Deprecated)


In [2]:
reload(xlu)
datfil = 'Data/UM184.z2929.dat'
lls = xlu.LLSSystem(dat_file=datfil, tree=os.getenv('LLSTREE'))
lls


WARNING: AstropyDeprecationWarning: Passing a frame as a positional argument is now deprecated, use the frame= keyword argument instead. [astropy.coordinates.sky_coordinate]
WARNING:astropy:AstropyDeprecationWarning: Passing a frame as a positional argument is now deprecated, use the frame= keyword argument instead.
Out[2]:
[LLSSystem: 23:50:57.87 -00:52:09.9, z=2.93012, NHI=18.5, tau=20.0462, [M/H]=0dex]

Load up ions


In [4]:
lls.get_ions()


WARNING: Using 1560.6820 Angstrom for your input 1560.3092 Angstrom
WARNING: Using 1560.6820 Angstrom for your input 1560.3092 Angstrom
read_ion_file: Removing line 1560.68 Angstrom
WARNING: Using 1657.0081 Angstrom for your input 1656.9283 Angstrom
WARNING: Using 1657.0081 Angstrom for your input 1656.9283 Angstrom
read_ion_file: Removing line 1657.01 Angstrom
read_ion_file: Removing line 1334.53 Angstrom
read_ion_file: Removing line 1548.19 Angstrom
read_ion_file: Removing line 1550.77 Angstrom
read_ion_file: Removing line 1302.17 Angstrom
read_ion_file: Removing line 1670.79 Angstrom
read_ion_file: Removing line 1854.72 Angstrom
read_ion_file: Removing line 1862.79 Angstrom
read_ion_file: Removing line 1304.37 Angstrom
read_ion_file: Removing line 1526.71 Angstrom
read_ion_file: Removing line 1808.01 Angstrom
read_ion_file: Removing line 1393.76 Angstrom
read_ion_file: Removing line 1402.77 Angstrom
WARNING: Using 1250.5780 Angstrom for your input 1250.5840 Angstrom
WARNING: Using 1250.5780 Angstrom for your input 1250.5840 Angstrom
read_ion_file: Removing line 1250.58 Angstrom
WARNING: Using 1253.8050 Angstrom for your input 1253.8110 Angstrom
WARNING: Using 1253.8050 Angstrom for your input 1253.8110 Angstrom
read_ion_file: Removing line 1253.81 Angstrom
read_ion_file: Removing line 1259.52 Angstrom
read_ion_file: Removing line 2056.25 Angstrom
read_ion_file: Removing line 1608.45 Angstrom
read_ion_file: Removing line 1317.22 Angstrom
read_ion_file: Removing line 1370.13 Angstrom
read_ion_file: Removing line 1454.84 Angstrom
read_ion_file: Removing line 1741.55 Angstrom
read_ion_file: Removing line 2026.14 Angstrom

In [5]:
lls.lines


Out[5]:
[[AbsLine: CI* 1560, wrest=1560.6820 Angstrom],
 [AbsLine: CI** 1657, wrest=1657.0081 Angstrom],
 [AbsLine: CII 1334, wrest=1334.5323 Angstrom],
 [AbsLine: CIV 1548, wrest=1548.1950 Angstrom],
 [AbsLine: CIV 1550, wrest=1550.7700 Angstrom],
 [AbsLine: OI 1302, wrest=1302.1685 Angstrom],
 [AbsLine: AlII 1670, wrest=1670.7874 Angstrom],
 [AbsLine: AlIII 1854, wrest=1854.7164 Angstrom],
 [AbsLine: AlIII 1862, wrest=1862.7895 Angstrom],
 [AbsLine: SiII 1304, wrest=1304.3702 Angstrom],
 [AbsLine: SiII 1526, wrest=1526.7070 Angstrom],
 [AbsLine: SiII 1808, wrest=1808.0129 Angstrom],
 [AbsLine: SiIV 1393, wrest=1393.7550 Angstrom],
 [AbsLine: SiIV 1402, wrest=1402.7700 Angstrom],
 [AbsLine: SII 1250, wrest=1250.5780 Angstrom],
 [AbsLine: SII 1253, wrest=1253.8050 Angstrom],
 [AbsLine: SII 1259, wrest=1259.5180 Angstrom],
 [AbsLine: CrII 2056, wrest=2056.2540 Angstrom],
 [AbsLine: FeII 1608, wrest=1608.4511 Angstrom],
 [AbsLine: NiII 1317, wrest=1317.2170 Angstrom],
 [AbsLine: NiII 1370, wrest=1370.1320 Angstrom],
 [AbsLine: NiII 1454, wrest=1454.8420 Angstrom],
 [AbsLine: NiII 1741, wrest=1741.5531 Angstrom],
 [AbsLine: ZnII 2026, wrest=2026.1370 Angstrom]]

In [ ]: