In [41]:
# imports
from xastropy.sdss import quasars as sdssq
from xastropy.sdss import qso as sdssqso
In [37]:
reload(sdssq)
sdss_dr7 = sdssq.SdssQuasars()
In [38]:
sdss_dr7
Out[38]:
In [35]:
row = sdss_dr7.get_qso((287,264))
row
Out[35]:
In [36]:
## By name
row = sdss_dr7.get_qso('J000009.42-102751.9')
row
Out[36]:
In [80]:
## Simple
reload(sdssqso)
qso = sdssqso.SdssQso()
qso
Out[80]:
In [82]:
## From the Database Class
reload(sdssq)
reload(sdssqso)
sdss_dr7 = sdssq.SdssQuasars()
qso = sdss_dr7[(287,264)]
qso
Out[82]:
In [73]:
qso.load_spec()
#qso.spec.plot()
In [70]:
In [3]:
path = os.getenv('SDSSPATH')+'/DR7_QSO/'
summf = path+'dr7_qso.fits.gz'
datdir = path+'spectro/1d_26/'
sdss = QTable.read(summf)
sdss[0:3]
Out[3]:
In [5]:
tmp = 'DR7'
tmp.lower()
Out[5]:
In [ ]: