mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
Optionally added peculiar velocities. New tool to reverse distortions
This commit is contained in:
parent
1eabee4fd5
commit
cfa81cf3f0
2 changed files with 6 additions and 4 deletions
|
@ -100,7 +100,7 @@ Interpolate make_cosmological_redshift(double OM, double OL, double z0, double z
|
||||||
return buildFromVector(pairs);
|
return buildFromVector(pairs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void metricTransform(SimuData *data, int axis, bool reshift)
|
void metricTransform(SimuData *data, int axis, bool reshift, bool pecvel)
|
||||||
{
|
{
|
||||||
int x0, x1, x2;
|
int x0, x1, x2;
|
||||||
|
|
||||||
|
@ -144,7 +144,8 @@ void metricTransform(SimuData *data, int axis, bool reshift)
|
||||||
// Distorted redshift
|
// Distorted redshift
|
||||||
z = (z_vs_D.compute(reduced_red)-z_base)*LIGHT_SPEED/100.;
|
z = (z_vs_D.compute(reduced_red)-z_base)*LIGHT_SPEED/100.;
|
||||||
// Add peculiar velocity
|
// Add peculiar velocity
|
||||||
z += v/100;
|
if (pecvel)
|
||||||
|
z += v/100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,7 +322,7 @@ int main(int argc, char **argv)
|
||||||
cout << "Omega_M = " << simu->Omega_M << endl;
|
cout << "Omega_M = " << simu->Omega_M << endl;
|
||||||
cout << "Omega_Lambda = " << simu->Omega_Lambda << endl;
|
cout << "Omega_Lambda = " << simu->Omega_Lambda << endl;
|
||||||
|
|
||||||
metricTransform(simu, args_info.axis_arg, args_info.preReShift_flag);
|
metricTransform(simu, args_info.axis_arg, args_info.preReShift_flag, args_info.peculiarVelocities_flag);
|
||||||
|
|
||||||
makeBox(simu, simuOut, args_info);
|
makeBox(simu, simuOut, args_info);
|
||||||
delete simu;
|
delete simu;
|
||||||
|
|
|
@ -20,3 +20,4 @@ option "rangeZ_min" - "Minimum range in Z for making the box (after distorti
|
||||||
option "rangeZ_max" - "Maximum range in Z for making the box (after distortion)" double required
|
option "rangeZ_max" - "Maximum range in Z for making the box (after distortion)" double required
|
||||||
|
|
||||||
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
|
Loading…
Add table
Add a link
Reference in a new issue