changed doSubSampling variable name; made shifting of z-coord with redshift optional

This commit is contained in:
P.M. Sutter 2014-05-28 18:43:43 -04:00
parent d58027b3d3
commit 47f6f88d1e
3 changed files with 14 additions and 5 deletions

View file

@ -98,11 +98,14 @@ 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?
# if False, generateMock will do the subsampling
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
# if 'relative', subSamples are given as a fraction of input particles

View file

@ -296,8 +296,12 @@ dataSampleList.append(newSample)
sliceMinMpc = sliceMin*LIGHT_SPEED/100.
sliceMaxMpc = sliceMax*LIGHT_SPEED/100.
else:
sliceMinMpc = zBoxMpc + iSlice*lbox/numSlices
sliceMaxMpc = zBoxMpc + (iSlice+1)*lbox/numSlices
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)