I want to extract only the z evolution of the stars in SubhaloMassInRadType using the merger tree in TNG300. I tried to extract it with the following code, but I could only extract a one-dimensional array.
====================================================== trace_mtree(subhalo12[1], snap_in=12, if_prog=False, only_main=True, fields_in=['SubhaloSFRinRad', 'SubhaloBHMdot', 'SubhaloMass', 'SubhaloMassInRadType']) =======================================================
The example scripts walkthrough includes an example of plotting "Total Subhalo Mass" vs snapshot number.
I believe you want to change SubhaloMass to SubhaloMassInRadType[4], to obtain what you want.
SubhaloMass
SubhaloMassInRadType[4]
It worked perfectly. Thank you!
I want to extract only the z evolution of the stars in SubhaloMassInRadType using the merger tree in TNG300.
I tried to extract it with the following code, but I could only extract a one-dimensional array.
The example scripts walkthrough includes an example of plotting "Total Subhalo Mass" vs snapshot number.
I believe you want to change
SubhaloMass
toSubhaloMassInRadType[4]
, to obtain what you want.It worked perfectly. Thank you!