Progenitor Tracking

Zach Lewis
  • 3 Apr

Perhaps I'm misunderstanding something about the merger tree, but I'm trying to track metallicities for the same objects across redshift, and failing to find matches. For example, in the image below, df1, df2, and df3 refer to dataframes containing subhalo IDs (ID), LastProgenitorIDs (DID), and physical parameters at different (contiguous) redshifts. Attempting to match dataframes based on Progenitor IDs and Subhalo IDs yields matches for any two of the dataframes, but not three. I assume there's something I'm missing, as surely there are some galaxies that exist for more than two snapshots.

Screen Shot 2025-04-03 at 9.38.26 AM.png

Dylan Nelson
  • 4 Apr

I'm not sure about the context of the code you are posting.

As a starting point, you could look at the "Merger Trees" section in the Getting Started guide. There a plot tracking mass vs time is made. If you replace SubhaloMass with SubhaloGasMetallicity, this would be one way to track metallicity.

  • Page 1 of 1