def __init__(self, cdir=None, nmax=None, load=True, from_dict=True, **kwargs): CGMAbsSurvey.__init__(self) self.survey = 'QPQ6' self.ref = 'Prochaska+13' # if cdir is None: self.cdir = pyigm.__path__[0] + '/data/CGM/QPQ/' else: self.cdir = cdir if from_dict: self.data_file = self.cdir + 'jsons/qpq6.json' else: self.data_file = self.cdir + 'qpq6_final_cut_2015nov16.fits' self.nmax = nmax self.from_dict = from_dict # Init? if load: self.load_data(**kwargs)
def __init__(self, cdir=None, nmax=None, load=True, from_dict=True, **kwargs): CGMAbsSurvey.__init__(self) self.survey = 'QPQ7' self.ref = 'Prochaska+14' # if cdir is None: self.cdir = pyigm.__path__[0] + '/data/CGM/QPQ/' else: self.cdir = cdir #self.data_file = pyigm.__path__[0] + '/data/CGM/QPQ/'+'qpq7_pairs.fits.gz' if from_dict: self.data_file = self.cdir + 'jsons/qpq7.json' else: self.data_file = self.cdir + 'qpq7_pairs.fits.gz' self.nmax = nmax self.from_dict = from_dict # Init? if load: self.load_data(**kwargs)
def __init__(self, cdir=None, nmax=None, load=True, from_dict=True, **kwargs): CGMAbsSurvey.__init__(self) self.survey = 'QPQ8' self.ref = 'Lau+16' # if cdir is None: self.cdir = pyigm.__path__[0] + '/data/CGM/QPQ/' else: self.cdir = cdir #self.data_file = pyigm.__path__[0] + '/data/CGM/QPQ/'+'qpq8_pairs.fits' if from_dict: self.data_file = self.cdir + 'jsons/qpq8.json' else: self.data_file = self.cdir + 'qpq8_all_measured.dat' self.nmax = nmax self.from_dict = from_dict # Init? if load: self.load_data(**kwargs)
def __init__(self, cdir=None, fits_path=None, load=True, **kwargs): CGMAbsSurvey.__init__(self) self.survey = 'COS-Halos' self.ref = 'Tumlinson+11; Werk+12; Tumlinson+13; Werk+13; Werk+14' # if cdir is None: self.cdir = pyigm.__path__[0] + '/data/CGM/COS_Halos/' else: self.cdir = cdir # Spectra dir self.data_dir = os.getenv('COSHALOS_DATA') # Summary Tables if fits_path is None: self.fits_path = self.cdir + '/Summary/' else: self.fits_path = fits_path try: self.werk14_cldy = Table.read(self.fits_path + 'coshaloscloudysol_newphi.fits') except IOError: self.werk14_cldy = None # Kinematics self.kin_init_file = self.cdir + '/Kin/coshalo_kin_driver.dat' # Init? if load: self.load_sys(**kwargs) # Metallicity flag self.flag_mtlpdf = False
def __init__(self, tree=None, fits_path=None, kin_init_file=None, cdir=None): # Generate with type CGMAbsSurvey.__init__(self) self.survey = 'COS-Dwarfs' self.ref = 'Bordoloi+14' if cdir is None: self.cdir = os.environ.get('COSHALOS_DATA') #self.cdir = os.environ.get('DROPBOX_DIR')+'/COS-Dwarfs/' else: self.cdir = cdir ### need to define cdir if fits_path is None: self.fits_path = os.path.abspath( os.environ.get('DROPBOX_DIR') + '/COS-Dwarfs/Targets/FITS') else: self.fits_path = fits_path # Kinematics if kin_init_file is None: #self.kin_init_file = os.path.abspath(os.environ.get('DROPBOX_DIR')+'/COS-Dwarfs/Kin/cosdwarfs_kin_driver.dat') self.kin_init_file = self.cdir + '/Kin/cosdwarfs_kin_driver.dat' else: self.kin_init_file = kin_init_file # Load self.load_sys()
def __init__(self, cdir=None, fits_path=None, load=True, **kwargs): CGMAbsSurvey.__init__(self) self.survey = 'COS-Halos' self.ref = 'Tumlinson+11; Werk+12; Tumlinson+13; Werk+13; Werk+14' # if cdir is None: if os.environ.get('COSHALOS_DATA') is None: raise ValueError("Need to set COSHALOS_DATA variable") self.cdir = os.environ.get('COSHALOS_DATA') else: self.cdir = cdir # Summary Tables if fits_path is None: self.fits_path = self.cdir+'/Summary/' else: self.fits_path = fits_path try: self.werk14_cldy = Table.read(self.fits_path+'coshaloscloudysol_newphi.fits') except IOError: self.werk14_cldy = None # Kinematics self.kin_init_file = self.cdir+'/Kin/coshalo_kin_driver.dat' # Init? if load: self.load_sys(**kwargs)
def __init__(self, load=True, from_dict=True, **kwargs): CGMAbsSurvey.__init__(self) self.survey = 'QPQ7' self.ref = 'Prochaska+13' # self.cdir = pyigm.__path__[0] + '/data/CGM/QPQ/' if from_dict: self.data_file = self.cdir + 'jsons/qpq5.json' else: self.data_file = self.cdir + 'qpq7_pairs.fits.gz' self.from_dict = from_dict # Init? if load: self.load_data(**kwargs)
def __init__(self, tree=None, fits_path=None, kin_init_file=None, cdir=None): # Generate with type CGMAbsSurvey.__init__(self) self.survey = 'COS-Dwarfs' self.ref = 'Bordoloi+14' if cdir is None: self.cdir = os.environ.get('DROPBOX_DIR')+'/COS-Dwarfs/' if fits_path is None: self.fits_path = os.path.abspath(os.environ.get('DROPBOX_DIR')+'/COS-Dwarfs/Targets/FITS') else: self.fits_path = fits_path # Kinematics if kin_init_file is None: self.kin_init_file = os.path.abspath(os.environ.get('DROPBOX_DIR')+'/COS-Dwarfs/Kin/cosdwarfs_kin_driver.dat') else: self.kin_init_file = kin_init_file