mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 15:51:12 +00:00
Fixed redshit generation
This commit is contained in:
parent
8477cecbee
commit
07a3be4db0
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ void metricTransform(SimuData *data, int axis)
|
||||||
// Distorted redshift
|
// Distorted redshift
|
||||||
z = z_vs_D.compute(reduced_red)*LIGHT_SPEED/100.;
|
z = z_vs_D.compute(reduced_red)*LIGHT_SPEED/100.;
|
||||||
// Add peculiar velocity
|
// Add peculiar velocity
|
||||||
z += v;
|
z += v/100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ void makeBox(SimuData *simu, SimuData *&boxed, generateMock_info& args_info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NcFile f(args_info.outputParameter_arg);
|
NcFile f(args_info.outputParameter_arg, NcFile::Replace);
|
||||||
|
|
||||||
f.add_att("range_x_min", ranges[0][0]);
|
f.add_att("range_x_min", ranges[0][0]);
|
||||||
f.add_att("range_x_max", ranges[0][1]);
|
f.add_att("range_x_max", ranges[0][1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue