def __init__(self, dat_file=None, tree=None): # Generate with type AbslineSystem.__init__(self,'DLA') # Over-ride tree? if tree != None: self.tree = tree else: self.tree = '' # Parse .dat file if dat_file != None: self.dat_file = self.tree+dat_file print('dla_utils: Reading {:s}'.format(self.dat_file)) self.parse_dat_file(self.dat_file) # QSO keys self.qso = self.datdict['QSO name'] self.zqso = float(self.datdict['QSO zem']) # Abund self.flg_MH = float(self.datdict['flg_mtl']) self.MH = float(self.datdict['[M/H]']) self.sigMH = float(self.datdict['sig([M/H])']) # Init self.ions = None self.zpeak = None
def __init__(self, dat_file=None, tree=None): # Generate with type AbslineSystem.__init__(self, 'DLA') # Over-ride tree? if tree != None: self.tree = tree else: self.tree = '' # Parse .dat file if dat_file != None: self.dat_file = self.tree + dat_file print('dla_utils: Reading {:s}'.format(self.dat_file)) self.parse_dat_file(self.dat_file) # QSO keys self.qso = self.datdict['QSO name'] self.zqso = float(self.datdict['QSO zem']) # Abund self.flg_MH = float(self.datdict['flg_mtl']) self.MH = float(self.datdict['[M/H]']) self.sigMH = float(self.datdict['sig([M/H])']) # Init self.ions = None self.zpeak = None
def __init__(self, dat_file=None, tree=None, **kwargs): # Generate with type AbslineSystem.__init__(self,'LLS', **kwargs) # Over-ride tree? if tree != None: self.tree = tree else: self.tree = '' # Parse .dat file if dat_file != None: self.parse_dat_file(self.tree+dat_file) self.dat_file = self.tree+dat_file # Set tau_LL self.tau_LL = (10.**self.NHI)*6.3391597e-18 # Should replace with photocross self.ions = None self.zpeak = None
def __init__(self, dat_file=None, tree=None, **kwargs): # Generate with type AbslineSystem.__init__(self, 'LLS', **kwargs) # Over-ride tree? if tree != None: self.tree = tree else: self.tree = '' # Parse .dat file if dat_file != None: self.parse_dat_file(self.tree + dat_file) self.dat_file = self.tree + dat_file # Set tau_LL self.tau_LL = ( 10.**self.NHI) * 6.3391597e-18 # Should replace with photocross self.ions = None self.zpeak = None
def __init__(self): # Generate with type AbslineSystem.__init__(self, 'CGM') # Init self.ions = None
def __init__(self): # Generate with type AbslineSystem.__init__(self,'CGM') # Init self.ions = None