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

Selecting halos with specific mass/position #707

Open
milanq14 opened this issue Feb 16, 2023 · 0 comments
Open

Selecting halos with specific mass/position #707

milanq14 opened this issue Feb 16, 2023 · 0 comments

Comments

@milanq14
Copy link

Hey!

I am trying to select only certain halos in my simulation, which satisfy certain conditions like having a mass greater than some M or being at a distance less than certain distance d, something like:

h=s.halos()
satellites = h[(h['pos'][0][0]**2+h['pos'][0][1]**2+h['pos'][0][2]2<Rvir2) ]

Reading the tutorial I am not able to find a way to do this with pynbody... anyone wanting to help me with this?

Thanks!

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

1 participant