Ingesting Prochaska+11 CGM dataset [v1.0] ========================================= .. code:: python # imports from astropy.table import Table from astropy.coordinates import SkyCoord import pyigm from pyigm.cgm.cgmsurvey import CGMAbsSurvey Summary ------- .. code:: python ovi_file = pyigm.__path__[0]+'/data/CGM/P11/lowovidat.fits' .. code:: python ovidat = Table.read(ovi_file) .. code:: python ovidat[0:3] .. raw:: html <Table length=3>
QSOQSO_RAQSO_DECQSO_ZEMQSO_VMAGQSO_UVFLG_GALGAL_FILR_LIMITN_GAL [4]COMPLETE [2,4]FLG_FUSEFUSE_EXPFUSE_SNRFLG_STISSTIS_COMM [4]FLG_GHRSGHRS_COMM [4]
str15str15str15float32float32float32int16str58float32int32int32int16float32float32int16str60int16str60
Q0026+125900:29:13.8+13:16:040.14214.7820.01/u/xavier/LCO/OVI/FUSE/data/Q0026+1259/Q0026+1259_gal.fits20.0131 .. 4722 .. 85120000.07.00..1G270M 5222s ..
TONS18000:57:20.0-22:22:560.0619816.630.01/u/xavier/LCO/OVI/FUSE/data/TONS180/TONS180_gal.fits19.7110 .. 415 .. 921132453.015.02G140M 7000s 15. ..0..
TONS21001:21:51.5-28:20:570.11614.770.01/u/xavier/LCO/OVI/FUSE/data/TONS210/TONS210_gal.fits20.071 .. 56 .. 87156500.020.02E140M 22000s ..0..
.. code:: python qso_radec = SkyCoord(ra=ovidat['QSO_RA'], dec=ovidat['QSO_DEC'], unit=(u.hourangle, u.deg)) Dwarfs ------ .. code:: python cgm_dwarf_file = pyigm.__path__[0]+'/data/CGM/P11/dwarf_galabs_strct.fits' .. code:: python cgm_dwarfs = Table.read(cgm_dwarf_file) .. code:: python cgm_dwarfs[0:3] .. raw:: html <Table length=3>
FIELDIDOBJ_IDFLG_ANLYFLG_SURVEYOBJ_TYPEMAG [10]MAGERR [10]FILTER [10]IMG_FIL [10]XYPIX [2]RADECAREASTARGALGAL_TYPEGAL_COEFF [10]ZVCIRCFSPEC_FIL [10]DRADDEC
str11int32str1int16int16int16float32float32str1str27float32float64float64float32float32str5float32float64float32str29float64float64
Q0026+12591303a71019.733 .. 0.00.125 .. 9.99B ..Images/Q0026+1259XB.fits ..1014.76 .. 1034.297.2888649915513.274602162910.430.18Late0.331349 .. 0.00.03294513374570.0..45.69909479510.0191390593786
TONS1802295a71018.923 .. 1.00.088 .. 0.05B ..Images/TONS180XB.fits ..1318.89 .. 607.1814.2667432785-22.4475599110.920.19Late-0.0115093 .. 0.00.02336439117790.0..154.073906260.0207054292147
PKS0405-12390033a7100.0 .. 0.440.0 .. 0.06....61.9512 .. -12.183961.9512481689-12.18388843540.00.0Late0.0 .. 0.00.1671.0..97.77607193830.0877822129587
Funny columns -- Renaming ~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python cgm_dwarfs.rename_column('DRA', 'rho(kpc)') cgm_dwarfs.rename_column('DDEC', 'L(L*)') MAG has HI ^^^^^^^^^^ :: 2 == Ref 3 == z 4 == Lya EW 5 == sigEW Lya 8 == NHI 9 == sigNHI .. code:: python cgm_dwarfs[1]['MAG'] .. parsed-literal:: array([ 1.89230003e+01, 1.80701466e+01, 5.00000000e+00, 2.34109219e-02, 2.22000000e+02, 2.90000000e+01, 5.60000000e+01, 4.00000000e+00, 1.38000002e+01, 1.00000000e+00], dtype=float32) MAGERR has OVI ^^^^^^^^^^^^^^ :: 2 == Ref 3 == z 4 == EW 1031 5 == sigEW 1031 8 == NOVI 9 == sigNOVI .. code:: python cgm_dwarfs[1]['MAGERR'] .. parsed-literal:: array([ 8.79999995e-02, 6.49999976e-02, 4.00000000e+00, 2.33999994e-02, 4.30000000e+01, 1.50000000e+01, 3.00000000e+01, 0.00000000e+00, 1.34799995e+01, 5.00000007e-02], dtype=float32) Refs ^^^^ .. code:: python refdict = {1: 'tripp08', 2: 'tc08a', 3: 'ds08', 4: 'dsr+06', 5: 'pss04', 6: 'cm09', 9: 'p+11'} Ingest ------ :: python ingest_lit.py Read ---- .. code:: python p11_tarfile = pyigm.__path__[0]+'/data/CGM/P11/P11_sys.tar' .. code:: python p11 = CGMAbsSurvey.from_tarball(p11_tarfile, chk_lowz=False) .. parsed-literal:: WARNING: UnitsWarning: The unit 'Angstrom' has been deprecated in the FITS standard. Suggested: 10**-1 nm. [astropy.units.format.utils] /Users/xavier/local/Python/linetools/linetools/lists/linelist.py:374: RuntimeWarning: divide by zero encountered in log10 self._data['log(w*f)'] = np.log10(qm_strength) /Users/xavier/anaconda/lib/python2.7/site-packages/numpy/ma/core.py:824: RuntimeWarning: invalid value encountered in less_equal return umath.less_equal(x, self.critical_value) .. parsed-literal:: Loading abundances from Asplund2009 Abundances are relative by number on a logarithmic scale with H=12 Skipping a likely folder: CGM_JSON .. parsed-literal:: /Users/xavier/local/Python/linetools/linetools/isgm/abssystem.py:288: UserWarning: Input AbsComponent with Zion=(8, 6) does not match AbsSystem rules. Not appending warnings.warn('Input AbsComponent with Zion={} does not match AbsSystem rules. Not appending'.format(abscomp.Zion)) /Users/xavier/local/Python/linetools/linetools/isgm/abssystem.py:294: UserWarning: Failed velocity overlap warnings.warn('Failed velocity overlap') /Users/xavier/local/Python/linetools/linetools/isgm/abssystem.py:288: UserWarning: Input AbsComponent with Zion=(1, 1) does not match AbsSystem rules. Not appending warnings.warn('Input AbsComponent with Zion={} does not match AbsSystem rules. Not appending'.format(abscomp.Zion)) .. code:: python p11 .. parsed-literal:: .. code:: python p11.rho .. math:: [46.32007,~231.08717,~153.91919,~281.05024,~34.785816,~241.08236,~271.56657,~263.85542,~170.30404,~193.11905,~277.85574,~228.92416,~101.21597,~122.3351,~181.21741,~78.670472,~306.79467,~159.32049,~133.01256,~221.58367,~137.97841,~151.94839,~72.602911,~182.7867,~138.10197,~94.401827,~106.07147,~92.907301,~37.14687,~85.547486,~41.258645,~260.27253,~120.93128,~243.45857,~225.98147,~69.865838,~227.78876,~88.463791,~99.493909,~274.85217,~162.60742,~309.02131,~176.70156,~282.59707,~293.98086,~184.38542,~228.32783,~305.40178,~266.93147,~292.71387,~236.98361,~35.061178,~271.77462,~108.99879] \; \mathrm{kpc}