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]
|
subSamples = [1.0, 0.5]
|
||||||
|
|
||||||
# if True, do the subsampling in preparation (only for sdf and multidark)
|
# 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
|
# Halos
|
||||||
|
|
|
@ -98,11 +98,14 @@ numSubvolumes = 1
|
||||||
# prefix to give all outputs
|
# prefix to give all outputs
|
||||||
prefix = "mt_"
|
prefix = "mt_"
|
||||||
|
|
||||||
|
# shift the z-coord of sims with redshift
|
||||||
|
shiftSimZ = False
|
||||||
|
|
||||||
# list of desired subsamples - see subSamplingMode parameter
|
# list of desired subsamples - see subSamplingMode parameter
|
||||||
subSamples = [1.0]
|
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 False, generateMock will do the subsampling
|
||||||
|
|
||||||
# if 'absolute', subSamples are given in particles per cubic Mpc/h
|
# if 'absolute', subSamples are given in particles per cubic Mpc/h
|
||||||
# if 'relative', subSamples are given as a fraction of input particles
|
# if 'relative', subSamples are given as a fraction of input particles
|
||||||
|
|
|
@ -296,8 +296,12 @@ dataSampleList.append(newSample)
|
||||||
sliceMinMpc = sliceMin*LIGHT_SPEED/100.
|
sliceMinMpc = sliceMin*LIGHT_SPEED/100.
|
||||||
sliceMaxMpc = sliceMax*LIGHT_SPEED/100.
|
sliceMaxMpc = sliceMax*LIGHT_SPEED/100.
|
||||||
else:
|
else:
|
||||||
sliceMinMpc = zBoxMpc + iSlice*lbox/numSlices
|
if shiftSimZ:
|
||||||
sliceMaxMpc = zBoxMpc + (iSlice+1)*lbox/numSlices
|
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)
|
sliceMin = np.interp(sliceMinMpc*100./LIGHT_SPEED, zVsDX, zVsDY)
|
||||||
sliceMax = np.interp(sliceMaxMpc*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