I want to find subhalos belong to halos. I didn't find any 'halo IDs' like 'SubhaloIDs' in the group files. I read that the 'GroupFirstSub' parameter is to find the primary subhalo of the halo. Is 'GroupFirstSub' the halo ID?
Best,
Vinu
Dylan Nelson
7 Apr
For a given halo, the list of its subhalo IDs is given by the numbers from GroupFirstSub to GroupFirstSub + GroupNsubs.
Hello,
I want to find subhalos belong to halos. I didn't find any 'halo IDs' like 'SubhaloIDs' in the group files. I read that the 'GroupFirstSub' parameter is to find the primary subhalo of the halo. Is 'GroupFirstSub' the halo ID?
Best,
Vinu
For a given halo, the list of its subhalo IDs is given by the numbers from
GroupFirstSub
toGroupFirstSub + GroupNsubs
.(
GroupFirstSub
is a subhalo ID, not a halo ID).Thank you Dylan.
I have one more doubt.
Halos = il.groupcat.loadHalos(basePath, 99)
I understood that the index of the 'Halos' is the Halo ID.
SubHalos = il.groupcat.loadSubhalos(basePath, 99)
Is Subhalo ID the index of the 'SubHalos' table?
Yes, in both cases, ID means index.
Thanks Dylan.