Beispiel #1
0
    def __init__(self, data_type, bin_type, redz, jack = False):
        Info = Info_model(data_type, bin_type, redz, jackknife=jack)

        self.data_type  = data_type
        self.bin_type   = bin_type
        self.redz       = redz
        self.jackknife  = jack
        self.fname      = Info.files_name()

	self.real_data  = True
        self.data_dir   = Info.data_dir()        
        self.dir_in     = 'data_upsilon/' + self.data_dir
        self.dir_data   = 'lrgdata-final/mocks_lrg/sim_reshaped/'
        self.dir_stats  = 'stats/'
        self.dir_bf     = 'bestfit/'
        self.dir_chains = 'chains/' + Info.chain_dir()

	#in
	self.name_ups   = '_ups.dat'
	self.name_gg    = '_upsgg_cov.dat'
	self.name_gm    = '_DS_gm_cov_cut.dat'	

	#out        
	self.name_root  = '_ups' if not self.real_data else '_ups_real'
	
        self.name_cov   = '_cov.dat'
        self.name_dist  = 'distparams'
        self.name_jk    = '_jk_stats.dat'

        self.aver       = 0.0
        self.first_point= 1
        self.last_point = 70
        self.first_line = 1
        self.z_mean     = Info.z_mean()            

	self.full_cov   = 'log'                                
        self.R0         = Info.R0_files()
        self.npoints    = Info.number_of_points()
        if len(self.R0)!= len(self.npoints):  sys.exit("Error: check number of files")
        self.R0_points  = zip(self.R0, self.npoints)
        
        
        self.write_pars = ['sigma8', 'LRGa', 'LRGb']
Beispiel #2
0
 def __init__(self, data_type, bin_type, redzz):
     Info = Info_model(data_type, bin_type, redz)
     self.data_type= data_type
     self.bin_type = bin_type
     self.redzz     = redzz
     self.fname      = Info.files_name()