mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +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
|
@ -30,11 +30,17 @@ from backend.cosmologyTools import *
|
|||
__all__=['getSurveyProps', 'getNside', 'figureOutMask', 'findEdgeGalaxies']
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# returns the volume and galaxy density for a given redshit slice
|
||||
def getSurveyProps(maskFile, zmin, zmax, selFunMin, selFunMax, portion,
|
||||
omegaM, selectionFuncFile=None, useComoving=False):
|
||||
# returns the survey volume and scaled galaxy density for a given redshit slice
|
||||
def getSurveyProps(sample):
|
||||
|
||||
#LIGHT_SPEED = 299792.458
|
||||
maskFile = sample.maskFile
|
||||
zmin = sample.zBoundary[0]
|
||||
zmax = sample.zBoundary[1]
|
||||
selFunMin = sample.zBoundary[0]
|
||||
selFunMax = sample.zBoundary[1]
|
||||
omegaM = sample.omegaM
|
||||
selectionFuncFile = sample.selFunFile
|
||||
useComoving = sample.useComoving
|
||||
|
||||
mask = healpy.read_map(maskFile)
|
||||
area = (1.*np.size(np.where(mask > 0)) / np.size(mask)) * 4.*np.pi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue