Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store velocities in set_rsd #6

Open
florpi opened this issue Feb 25, 2022 · 2 comments
Open

Store velocities in set_rsd #6

florpi opened this issue Feb 25, 2022 · 2 comments

Comments

@florpi
Copy link

florpi commented Feb 25, 2022

It'd be great if the 3-D velocity field could be stored together with the real and redshift space velocity mesh. I'm afraid I don't really understand the code well enough as to extract it (and I guess only the line of sight is being computed here), but that functionality would be useful to generate mocks with velocities

@adematti
Copy link
Member

adematti commented Mar 2, 2022

Hi, sorry for the delay. You mean, in LagrangianLinearMock.set_rsd, here https://github.com/adematti/mockfactory/blob/116610f940f9f553a57daf53c31db8624180c85e/mockfactory/lagrangian_mock.py#L133?
Zeldovich displacements are stored as the disps attribute; I think the conversion to (physical) velocities is just 100 * f * a * E(z) * disps, with E(z) = H(z)/H(0).

@florpi
Copy link
Author

florpi commented Mar 2, 2022

Thanks for your answer! I was looking at the Eulerian mock, and it doesn't seem to have a disps attribute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants