mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
changed doSubSampling variable name; made shifting of z-coord with redshift optional
This commit is contained in:
parent
d58027b3d3
commit
47f6f88d1e
3 changed files with 14 additions and 5 deletions
|
@ -99,8 +99,10 @@ redshifts = ["0.0"]
|
|||
subSamples = [1.0, 0.5]
|
||||
|
||||
# if True, do the subsampling in preparation (only for sdf and multidark)
|
||||
doSubSampling = True
|
||||
doSubSamplingInPrep = True
|
||||
|
||||
# shift the z-coord of sims with redshift
|
||||
shiftSimZ = False
|
||||
|
||||
###############################################################################
|
||||
# Halos
|
||||
|
|
|
@ -98,10 +98,13 @@ numSubvolumes = 1
|
|||
# prefix to give all outputs
|
||||
prefix = "mt_"
|
||||
|
||||
# shift the z-coord of sims with redshift
|
||||
shiftSimZ = False
|
||||
|
||||
# list of desired subsamples - see subSamplingMode parameter
|
||||
subSamples = [1.0]
|
||||
|
||||
doSubSampling = True # do the subsampling in preparation script?
|
||||
doSubSamplingInPrep = True # do the subsampling in preparation script?
|
||||
# if False, generateMock will do the subsampling
|
||||
|
||||
# if 'absolute', subSamples are given in particles per cubic Mpc/h
|
||||
|
|
|
@ -296,8 +296,12 @@ dataSampleList.append(newSample)
|
|||
sliceMinMpc = sliceMin*LIGHT_SPEED/100.
|
||||
sliceMaxMpc = sliceMax*LIGHT_SPEED/100.
|
||||
else:
|
||||
if shiftSimZ:
|
||||
sliceMinMpc = zBoxMpc + iSlice*lbox/numSlices
|
||||
sliceMaxMpc = zBoxMpc + (iSlice+1)*lbox/numSlices
|
||||
else:
|
||||
sliceMinMpc = iSlice*lbox/numSlices
|
||||
sliceMaxMpc = (iSlice+1)*lbox/numSlices
|
||||
sliceMin = np.interp(sliceMinMpc*100./LIGHT_SPEED, zVsDX, zVsDY)
|
||||
sliceMax = np.interp(sliceMaxMpc*100./LIGHT_SPEED, zVsDX, zVsDY)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue