Finding halo/subhalo for star particles

Farhanul Hasan
  • 6 Jul '22

Hi, I was working with the star particle data (PartType 4) and had a question about these particles.

Is there any way to identify the halo or subhalo in which a given Part Type 4 particle resides? Unfortunately the only ID of a PartType 4 particle I see is the particle ID, but no information about the specific halo it belongs to.

Thanks,
Farhan

Dylan Nelson
  • 6 Jul '22

Hi Farhan,

Each particle/cell does not explicitly store which [sub]halo it belongs to, but this information is implicitly there, since particles/cells are ordered according to their [sub]halo membership.

This was discussed, with a code snippet, in this thread.

Farhanul Hasan
  • 6 Jul '22

Fantastic, thank you!

  • Page 1 of 1