mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
fix to allow switching on/off cosmological distortions
This commit is contained in:
parent
83073ecf20
commit
053c46e57b
2 changed files with 8 additions and 1 deletions
|
@ -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 "preReShift" - "Reshift the zero of the Z axis" flag off
|
||||||
option "peculiarVelocities" - "Added peculiar velocities distortion" 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
|
option "subsample" - "Subsample the input simulation by the specified amount" double optional
|
||||||
|
|
|
@ -101,6 +101,11 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
|
||||||
else:
|
else:
|
||||||
includePecVelString = ""
|
includePecVelString = ""
|
||||||
|
|
||||||
|
if sample.useLightCone:
|
||||||
|
useLightConeString = "cosmo"
|
||||||
|
else:
|
||||||
|
useLightConeString = ""
|
||||||
|
|
||||||
if sample.dataFormat == "multidark":
|
if sample.dataFormat == "multidark":
|
||||||
dataFileLine = "multidark " + datafile
|
dataFileLine = "multidark " + datafile
|
||||||
elif sample.dataFormat == "gadget":
|
elif sample.dataFormat == "gadget":
|
||||||
|
@ -119,6 +124,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
|
||||||
output %s
|
output %s
|
||||||
outputParameter %s
|
outputParameter %s
|
||||||
%s
|
%s
|
||||||
|
%s
|
||||||
rangeX_min %g
|
rangeX_min %g
|
||||||
rangeX_max %g
|
rangeX_max %g
|
||||||
rangeY_min %g
|
rangeY_min %g
|
||||||
|
@ -129,6 +135,7 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None,
|
||||||
""" % (dataFileLine, zobovDir+"/zobov_slice_"+sampleName,
|
""" % (dataFileLine, zobovDir+"/zobov_slice_"+sampleName,
|
||||||
zobovDir+"/zobov_slice_"+sampleName+".par",
|
zobovDir+"/zobov_slice_"+sampleName+".par",
|
||||||
includePecVelString,
|
includePecVelString,
|
||||||
|
useLightConeString,
|
||||||
xMin, xMax, yMin, yMax,
|
xMin, xMax, yMin, yMax,
|
||||||
sample.zBoundaryMpc[0], sample.zBoundaryMpc[1],
|
sample.zBoundaryMpc[0], sample.zBoundaryMpc[1],
|
||||||
sample.subsample)
|
sample.subsample)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue