fix to allow switching on/off cosmological distortions

This commit is contained in:
P.M. Sutter 2012-11-07 11:51:51 -06:00
parent 83073ecf20
commit 053c46e57b
2 changed files with 8 additions and 1 deletions

View file

@ -26,6 +26,6 @@ option "rangeZ_max" - "Maximum range in Z for making the box (after distorti
option "preReShift" - "Reshift the zero of the Z axis" flag off
option "peculiarVelocities" - "Added peculiar velocities distortion" flag off
option "cosmo" - "Apply cosmological redshift" flag on
option "cosmo" - "Apply cosmological redshift" flag off
option "subsample" - "Subsample the input simulation by the specified amount" double optional

View file

@ -101,6 +101,11 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
else:
includePecVelString = ""
if sample.useLightCone:
useLightConeString = "cosmo"
else:
useLightConeString = ""
if sample.dataFormat == "multidark":
dataFileLine = "multidark " + datafile
elif sample.dataFormat == "gadget":
@ -119,6 +124,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
output %s
outputParameter %s
%s
%s
rangeX_min %g
rangeX_max %g
rangeY_min %g
@ -129,6 +135,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
""" % (dataFileLine, zobovDir+"/zobov_slice_"+sampleName,
zobovDir+"/zobov_slice_"+sampleName+".par",
includePecVelString,
useLightConeString,
xMin, xMax, yMin, yMax,
sample.zBoundaryMpc[0], sample.zBoundaryMpc[1],
sample.subsample)