2QZ [v1.1]

Download this notebook.

# imports

Data

Used this website (on Croom recommendation):  http://www.2dfquasar.org/Spec_Cat/2qzsearch2.html
Restricted to zmin>0.05

Catalog

See file:///Users/xavier/Raw_IGMspec/2dF/2df/html/catalogue.html
#catfil = os.getenv('RAW_IGMSPEC')+'/2dF/2df/cat/2QZ_6QZ_pubcat.txt'
catfil = os.getenv('RAW_IGMSPEC')+'/2dF/2QZ393524355693.out'
cat = Table.read(catfil,format='ascii')
cat[0:3]
<Table length=3>
col1col2col3col4col5col6col7col8col9col10col11col12col13col14col15col16col17col18col19col20col21col22col23col24col25col26col27col28col29col30col31col32col33col34col35col36col37col38col39col40col41col42col43col44col45
str16int64int64float64int64int64float64int64str10str25int64int64float64int64int64float64int64float64float64float64float64float64float64float64int64float64int64str9int64float64int64float64float64int64str9float64float64int64float64float64float64float64float64str20str20
J120310.0-02575512310.09-25754.28573TQN178_111N_178_24412036.29-24112.8859-1051.8617295.653.14423174-0.0468950620.224-0.229-0.61230.917411QSO200105242441.01683.890.911311QSO20000624.02441.01670.410.00.00.00.02606--
J120427.0-02544712427.1-25446.78601TQN178_114N_178_179_24412153.29-2385.3859-3200.3116946.833.14983133-0.0459860320.621-0.6341.11230.327611QSO200105242441.01845.970.033??20000624.02441.01900.710.00.00.00.02662--
J120434.3-02503212434.32-25031.38631TQN178_117N_178_179_2441220.51-23349.9859-3402.1216471.43.15035639-0.0447478220.798-0.3190.40630.431211NELG200105242441.01903.490.43111NELG20000624.02441.01890.260.00.00.00.02582--

Rename columns

clms = ['Name', 'RAh00', 'RAm00', 'RAs00', 'DECd00', 'DECm00', 'DECs00',
       'ID','cat_name', 'Sector', 'RAh50', 'RAm50', 'RAs50', 'DECd50', 'DECm50', 'DECs50',
       'UKST', 'XAPM','YAPM','RA50','DEC50','bj','u-b','b-r','Nobs',
       'z1','q1','ID1','date1','fld1','fiber1','SN1',
       'z2','q2','ID2','date2','fld2','fiber2','SN2',
        'zprev','rflux','Xray','EBV','comm1','comm2']
for ii in range(1,46):
    cat.rename_column('col{:d}'.format(ii), clms[ii-1])
cat[0:3]
<Table length=3>
NameRAh00RAm00RAs00DECd00DECm00DECs00IDcat_nameSectorRAh50RAm50RAs50DECd50DECm50DECs50UKSTXAPMYAPMRA50DEC50bju-bb-rNobsz1q1ID1date1fld1fiber1SN1z2q2ID2date2fld2fiber2SN2zprevrfluxXrayEBVcomm1comm2
str16int64int64float64int64int64float64int64str10str25int64int64float64int64int64float64int64float64float64float64float64float64float64float64int64float64int64str9int64float64int64float64float64int64str9float64float64int64float64float64float64float64float64str20str20
J120310.0-02575512310.09-25754.28573TQN178_111N_178_24412036.29-24112.8859-1051.8617295.653.14423174-0.0468950620.224-0.229-0.61230.917411QSO200105242441.01683.890.911311QSO20000624.02441.01670.410.00.00.00.02606--
J120427.0-02544712427.1-25446.78601TQN178_114N_178_179_24412153.29-2385.3859-3200.3116946.833.14983133-0.0459860320.621-0.6341.11230.327611QSO200105242441.01845.970.033??20000624.02441.01900.710.00.00.00.02662--
J120434.3-02503212434.32-25031.38631TQN178_117N_178_179_2441220.51-23349.9859-3402.1216471.43.15035639-0.0447478220.798-0.3190.40630.431211NELG200105242441.01903.490.43111NELG20000624.02441.01890.260.00.00.00.02582--

FITS

Long or short?
Over-wrote CD files with those from the website
tar -xvf 2QZspec393524355693.tar
exfits = os.getenv('RAW_IGMSPEC')+'/2dF/2df/fits/ra12_13/J120310.0-025755a.fits.gz'
hdu = fits.open(exfits)
hdu.info()
Filename: /u/xavier/Raw_IGMspec/2dF/2df/fits/ra12_13/J120310.0-025755a.fits.gz
No.    Name         Type      Cards   Dimensions   Format
0    PRIMARY     PrimaryHDU      70   (1024,)      int16 (rescales to float32)
1    BADPIX      ImageHDU        15   (1024,)      uint8
2    VARIANCE    ImageHDU        17   (1024,)      int16 (rescales to float32)

Resolution

2dF

arXiv:astro-ph/9804079
R = 5000./8.6
R
581.3953488372093

6dF

Dead link:  https://www.aao.gov.au/ukst/6df.html
http://adsabs.harvard.edu/abs/2001MNRAS.322L..29C

Time

from astropy.time import Time
t = Time(['2000-06-24'], format='iso',out_subfmt='date')  # Fixes to YYYY-MM-DD
t.iso
array(['2000-06-24'],
      dtype='|S10')