prepared for magnitude-limited samples

This commit is contained in:
P.M. Sutter 2014-05-21 19:07:57 -05:00
parent 24e62450a8
commit 56b837899b
5 changed files with 18 additions and 15 deletions

View file

@ -68,7 +68,6 @@ class Sample:
zobovDir = ""
maskFile = "rast_window_512.fits"
selFunFile = "czselfunc.all.dr72dim.dat"
skyFraction = 0.19
zBoundary = (0.0, 0.1)
zBoundaryMpc = (0., 300)
zRange = (0.0, 0.1)
@ -101,7 +100,7 @@ class Sample:
minVoidRadius=-1, fakeDensity=0.01, volumeLimited=True,
numAPSlices=1,
includeInHubble=True, partOfCombo=False, isCombo=False,
comboList=(), profileBinSize=2.0, skyFraction=0.19,
comboList=(), profileBinSize=2.0,
boxLen=1024, usePecVel=False, omegaM=0.27,
numSubvolumes=1, mySubvolume=1, dataFormat="sdss",
useComoving=True,
@ -126,7 +125,6 @@ class Sample:
self.numAPSlices = numAPSlices
self.zobovDir = None
self.profileBinSize = profileBinSize
self.skyFraction = skyFraction
self.dataType = dataType
self.boxLen = boxLen
self.usePecVel = usePecVel

View file

@ -269,7 +269,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
numTracers = int(open(zobovDir+"/mask_index.txt", "r").read())
numTotal = int(open(zobovDir+"/total_particles.txt", "r").read())
meanSep = (1.*numTracers/boxVol)**(-1/3.)
meanSep = (1.*numTracers/boxVol/nbar)**(-1/3.)
# save this sample's information
with open(zobovDir+"/sample_info.dat", 'w') as output: