GFM_Metals is not available except snapNum=99 (z=0)

Guan-Fu Liu
  • 1
  • 9 Oct '23

Just wanna know whether GFM_Metals is available when snapNum < 99 (z>0).
Here is my code:
import illustris_python as il
basePath = '../sims.TNG/TNG50-1/output/'
fields = ['Coordinates', 'Masses', 'GFM_Metals', 'GFM_Metallicity', 'InternalEnergy', 'ElectronAbundance',
'NeutralHydrogenAbundance', 'Density', 'Velocities']
snapNum = 96
subhaloID = 364100
gas = il.snapshot.loadSubhalo(basePath, snapNum, subhaloID, 'gas', fields=fields)

Here is the error:
Particle type [0] does not have field [GFM_Metals]

I notice that if I do not specify the field, i.e.,
gas = il.snapshot.loadSubhalo(basePath, snapNum, subhaloID, 'gas')

Only keys marked blue in the following website
https://www.tng-project.org/data/docs/specifications/
are avaiable.

Guan-Fu Liu
  • 10 Oct '23

The problem is solved. It is because #96 snapshot is not a main snapshot and is a mini snapshot actually.

Guan-Fu Liu
  • 1
  • 10 Oct '23

I hope this question can be deleted. However, I don't know how.

  • Page 1 of 1