mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
cleaned up survey volume calculations. now uses correct z range, which corrects mean tracer separation estimation
This commit is contained in:
parent
cee027a759
commit
1b4751958f
4 changed files with 20 additions and 28 deletions
|
@ -80,12 +80,7 @@ def plotNumberFunction(catalogList,
|
|||
|
||||
if sample.dataType == "observation":
|
||||
maskFile = sample.maskFile
|
||||
|
||||
boxVol = sp.getSurveyProps(maskFile,
|
||||
sample.zBoundary[0], sample.zBoundary[1],
|
||||
sample.zRange[0], sample.zRange[1], "all",
|
||||
selectionFuncFile=sample.selFunFile,
|
||||
omegaM=sample.omegaM)[0]
|
||||
boxVol = sp.getSurveyProps(sample)[0]
|
||||
else:
|
||||
boxVol = sample.boxLen*sample.boxLen*(sample.zBoundaryMpc[1] -
|
||||
sample.zBoundaryMpc[0])
|
||||
|
@ -110,7 +105,7 @@ def plotNumberFunction(catalogList,
|
|||
|
||||
lowerbound = hist - sig
|
||||
upperbound = hist + sig
|
||||
|
||||
|
||||
mean = np.log10(hist/boxVol)
|
||||
lowerbound = np.log10(lowerbound/boxVol)
|
||||
upperbound = np.log10(upperbound/boxVol)
|
||||
|
@ -137,8 +132,8 @@ def plotNumberFunction(catalogList,
|
|||
linewidth=3)
|
||||
|
||||
distList.append((binCentersToUse, mean, lower, upper))
|
||||
|
||||
plt.legend(loc = "upper right", fancybox=True, prop={'size':14})
|
||||
|
||||
plt.legend(loc = "lower left", fancybox=True, prop={'size':14})
|
||||
|
||||
plt.savefig(figDir+"/fig_"+plotName+".pdf", bbox_inches="tight")
|
||||
#plt.savefig(figDir+"/fig_"+plotName+".eps", bbox_inches="tight")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue