plotting halo merger trees #741
-
Hello! This may be a trivial question, but I am trying to plot a halo merger tree using the output of galacticus. Two things I've been using are the tutorial on generating galaxy merger trees: https://github.com/galacticusorg/galacticus/wiki/Tutorial:-Generating-galaxy-merger-trees and the output from this I ran through this python file: https://github.com/galacticusorg/galacticus/blob/master/scripts/analysis/galaxyMergerTree.py This plotted the graph seen at the end of the Galaxy merger trees just fine. I assumed it would be relatively trivial to swap out the property names at the start of the python file for the corresponding halo related terms, e.g "galaxyMergerTreeNodeIndex" to "nodeIndex", "galaxyMergerTreeMassStellarTotal" to "basicMass" etc. However, this didn't seem to work and also I don't believe I am substituting the correct terms to make the plot I want. I tried for example, looking through the Galacticus Development pdf, and found the "massHalo" to substitute for the stellar mass, however, I think I added it to the xml file incorrectly. I would very much appreciate any assistance you could provide on whether the approach I using is useful, or indeed if there is some far simpler way to create a merger tree plot which is only concerned with showing the merger history of the dark matter halos. Many thanks, Luke Williams |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Luke: Unfortunately it's not that simple! There's a fundamental difference here between the "galaxy merger trees" that are plotted by this script, and a "halo merger tree". The reason for this is that "halo merging" (in Galacticus' definition) means when two halos merge and the smaller one becomes a subhalo in the larger one (but still exists as a distinct object). "Galaxy merging" means when that subhalo (and the galaxy it contains) merges with the central halo (and the galaxies of the two halos merge) - which happens after (often much after) the halo merging. So, probably these galaxy merger trees are just not what you want if your goal is to plot halo merger trees. Two options that might work for you:
to your parameter file. See here for details on the options to this operator. This will output tree data to a file that can be run through the
to your parameter file. See here for options. This will output the merger tree structure to a file |
Beta Was this translation helpful? Give feedback.
-
That's right - the Typically you don't need to be concerned about the parent classes of any of the
In this case, you're asking it to output the time (i.e. the time at which each halo exists), the virial properties (virial radius, velocity, and temperature), and the node indices (which include things like the node index, the index of its host halo, etc.). These are wrapped inside the |
Beta Was this translation helpful? Give feedback.
Hi Luke:
Unfortunately it's not that simple! There's a fundamental difference here between the "galaxy merger trees" that are plotted by this script, and a "halo merger tree". The reason for this is that "halo merging" (in Galacticus' definition) means when two halos merge and the smaller one becomes a subhalo in the larger one (but still exists as a distinct object). "Galaxy merging" means when that subhalo (and the galaxy it contains) merges with the central halo (and the galaxies of the two halos merge) - which happens after (often much after) the halo merging.
So, probably these galaxy merger trees are just not what you want if your goal is to plot halo merger trees.
Two options that …