Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add facility to patch trees where halos (esp subhalos) get 'lost' by halo finder #192

Merged
merged 9 commits into from
Jul 26, 2022

Conversation

apontzen
Copy link
Member

@apontzen apontzen commented May 14, 2022

A common problem, especially when dealing with subhalos, is that on some steps even the best halo finder will 'lose' the halo. This completely messes up the merger tree, as things stand.

I am adding here a tool that can start to address this issue. For instance I have tried it with Halo685_AHF.db (@Martin-Rey @gandhalij) and, bearing in mind how simple it is, it does seem to help a little bit.

The first step is to remove suspect links (e.g. where the major progenitor of a subhalo is identified as the parent halo, because the subhalo was temporarily lost):
tangos --db-filename Halo685_AHF.db prune-trees

Having done this, you can then try to find sensible links for cases where no progenitor has been identified
tangos --db-filename Halo685_AHF.db patch-trees --include-only 'NStar()>100' 'NDM()>100' 'contamination_fraction<0.01'

Parameters to play with here:

  • --relative-match currently NStar() and NDM(), meaning the changes in these quantities are checked
  • --max-for-match currently 0.1, meaning a 10% change in these key quantities are allowed to qualify for a match
  • --max-position-offset currently 100, meaning a 100kpc comoving offset allowed to qualify for a match
  • --max-timesteps currently 6, meaning how many steps back in time a possible progenitor is sought

Feedback would be much appreciated...

apontzen added 2 commits May 14, 2022 20:42
…instabilities,

a little like a simple version of Behroozi's consistent-trees
@apontzen apontzen marked this pull request as draft May 14, 2022 19:53
@apontzen
Copy link
Member Author

pre-commit.ci autofix

pre-commit-ci bot and others added 7 commits May 14, 2022 21:18
 * prune-trees: Add minimum (as well as maximum) bound on NDM of a progenitor
 * prune-trees: Improve clarity of query
 * patch-trees: Make position offset sphere a comoving radius, to improve identifications at high redshift
 * patch-trees: Search over more timesteps by default
 * patch-trees: Cache gathered information about halos in timestep to improve performance
@apontzen apontzen marked this pull request as ready for review July 26, 2022 08:53
@apontzen apontzen merged commit 4e3a789 into master Jul 26, 2022
@apontzen apontzen deleted the patch-trees branch July 26, 2022 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant