Testing with the SDSS DR5 dataset of JXP


In [2]:
# imports
from pyigm.surveys.dlasurvey import DLASurvey

Load DR5


In [3]:
sdssdr5 = DLASurvey.load_SDSS_DR5()


SDSS-DR5: Loading DLA file /Users/xavier/local/Python/pyigm/pyigm/data/DLA/SDSS_DR5/dr5_alldla.fits.gz
SDSS-DR5: Loading QSOs file /Users/xavier/local/Python/pyigm/pyigm/data/DLA/SDSS_DR5/dr5_dlagz_s2n4.fits
SDSS-DR5: Performing stats (~60s)
SDSS-DR5: Loaded

In [5]:
sdssdr5.sightlines[0:5]


Out[5]:
<QTable length=5>
PLATEFIBRADECFLG_BALIQSOMAGS2NZ_STARTZ_ENDZEMDX
degdeg
int32int32float64float64int16int32float64float64float64float64float64float64
2665146.93861-0.687011941019.3419990544.945950031282.396646438782.746490001682.82874989511.17426266257
26692146.22601-0.725098750419.08200073248.549805641172.200000047682.257595062262.290499925610.184012498912
270254152.23239-0.971232720919.02300071727.497638225562.306361577143.05562424663.096590042112.56581152274
271391154.149920.1475083801618.065000534118.9826297762.200000047682.255516052252.288399934770.177634457341
271166154.45375-0.5234794901718.965000152610.84097194672.200000047682.250278949742.283109903340.158514320617

Generate the list for Dave


In [8]:
out_fil ='../../data/dr5_test_set.csv'

In [6]:
tbl = sdssdr5.sightlines[['PLATE','FIB','RA','DEC']]

In [9]:
tbl.write(out_fil)

In [ ]: