Skip to content

TNG units#185

Merged
aphearin merged 1 commit into
mainfrom
fix_tng_units
May 5, 2026
Merged

TNG units#185
aphearin merged 1 commit into
mainfrom
fix_tng_units

Conversation

@alexalar
Copy link
Copy Markdown
Collaborator

@alexalar alexalar commented May 4, 2026

Correcting the units of mass of halo MAHs for TNG, so that the output MAHs are in Msun.

The documentation in TNG specifies that the Subfind Subhalos SubhaloMass column is in units $[10^{10} M_\odot/h]$, while SubhaloSFR is in units $[M_\odot/\text{yr}]$.

The current loader assumes that our TNG halo masses are already in $[M_\odot]$. However, when comparing the SFR-$M_0$ relation using TNG data corrected to the desired units of $[M_\odot]$, we find a systematic bias along the x-axis. This indicates that our saved halo masses are still in $[M_\odot/h]$, rather than $[M_\odot]$.

Therefore, the loader should convert saved TNG halo masses to physical solar masses using: $M[M_\odot] = M_{\rm saved}[M_\odot/h] / h$. This PR makes this change.

tng_units

Copy link
Copy Markdown
Contributor

@aphearin aphearin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clear explanation. LGTM!

@aphearin aphearin merged commit cc81ada into main May 5, 2026
5 checks passed
@aphearin aphearin deleted the fix_tng_units branch May 5, 2026 18:43
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.

2 participants