In [20]:
# imports
import numpy as np
from astropy.table import Table
from specdb.specdb import IgmSpec
from dla_cnn import data_loader as ddl
In [3]:
igmsp = IgmSpec()
In [6]:
sdss_dr7 = igmsp['SDSS_DR7'].meta
In [7]:
sdss_dr7[0:3]
Out[7]:
In [18]:
zlow = 3700./1215.67 - 1.
zlow
Out[18]:
In [21]:
gdq = sdss_dr7['zem_GROUP'] > 2.0
np.sum(gdq)
Out[21]:
In [22]:
sdss_dr7 = sdss_dr7[gdq]
In [23]:
dr7_set = Table()
In [24]:
dr7_set['PLATE'] = sdss_dr7['PLATE']
dr7_set['FIB'] = sdss_dr7['FIBER']
#
dr7_set['RA'] = sdss_dr7['RA_GROUP']
dr7_set['DEC'] = sdss_dr7['DEC_GROUP']
In [26]:
dr7_set.write('dr7_set.csv', format='csv', overwrite=True)
In [ ]: