Examples for LLSSurvey (v1.0)


In [1]:
# imports
from xastropy.igm.abs_sys.lls_utils import LLSSurvey
import urllib2, urllib
import imp, json

xa_path = imp.find_module('xastropy')[1]

Instantiate

LLS Tree (JXP) -- Likely to Deprecate


In [2]:
lls_survey = LLSSurvey(flist='Lists/lls_metals.lst', tree=os.getenv('LLSTREE'))


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.
Read 165 files from Lists/lls_metals.lst in the tree /u/xavier/LLS/

FITS and JSON files (HD-LLS, DR1)


In [3]:
# Grabs HD-LLS files from the website, as needed
hdlls = LLSSurvey.default_sample()

In [4]:
hdlls


Out[4]:
[AbslineSurvey: nsys=157, type=LLS, ref=]

Simple Attributes


In [5]:
hdlls.nsys


Out[5]:
157

In [6]:
hdlls.NHI[0:10]


Out[6]:
array([ 19.65,  20.05,  17.55,  19.1 ,  20.  ,  19.1 ,  19.05,  19.05,
        19.25,  20.2 ])

In [7]:
hdlls.name[0:5]


Out[7]:
array(['HD-LLS_J000345.00-232346.5_z2.187',
       'HD-LLS_J003454.80+163920.0_z3.754',
       'HD-LLS_J004049.50-402514.0_z2.816',
       'HD-LLS_J010355.30-300946.0_z2.908',
       'HD-LLS_J010516.80-184642.0_z2.927'], 
      dtype='|S33')

In [ ]: