Plotting GroupPos for a halo in a snapshot

Arjun Chawla
  • 26 Oct

Hello, So i want to see where my Halo is, in a snapshot.

So for TNG50-4 for example,
if i print the header['BoxSize'], the output is 35000.0

And i print the GroupPos for my halo, (halo 3 in snapshot 99), i have [22915.957], [43356.055],[38362.676] .
i understand that its a periodic boundary and a comoving volume. But since the y and the z coordinates lie outside of it, i don't understand how i can plot them on my snapshot. I want to do this correctly therefore i ask for your help.

Thanks in advance.

Dylan Nelson
  • 27 Oct

Perhaps double-check your code? There are no GroupPos values ever larger than BoxSize.

Halo ID 3 for TNG50-4 at snapshot 99 has GroupPos [15523.27 , 29369.39 , 25986.875].

Arjun Chawla
  • 28 Oct

Thanks Dylan. I was multiplying it by the headers of Hubble parameter and time. Which i suppose is needed for my other codes, but not here. Sorry for the confusion.

  • Page 1 of 1