Parent halo of satellite galaxies #414
-
|
Hello, I am working on a project where I am interested to know the total (central+satellite) number of galaxies that are within a halo of a given mass Mh. I'm running galacticus with a halo mass range [10^10-10^14] with 1000 trees per decade. I understand the in the output file this information is inside the 'parentIndex'. Now, my problem is that every halo of each tree has a 'nodeIndex'=1, so when I look at the 'parentIndex' of subhalos (selected using 'nodeIsIsolated'=0) I have a list of ones, and I don't have any other information about the specific halo that the sub halo belongs to. Is there a way I can obtain this information? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You will need to also look at the index of the trees. As you've discovered, the There are a few ways to do this:
This will output a new property
|
Beta Was this translation helpful? Give feedback.
You will need to also look at the index of the trees. As you've discovered, the
nodeIndexvalues are unique only within each tree - so each tree will have anodeIndex=1halo. If you also match nodes and their parents based on their tree index you'll be able to find just the satellites belonging to each parent halo.There are a few ways to do this:
nodePropertyExtractor:This will output a new property
mergerTreeIndexwhich gives the index of each tree. This is the easiest approach.Make use of the tree index information on each
Outputs/OutputNgroup - see the top of page 15 of the documentation.You can use the fact that each tre…