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')
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.
The problem is solved. It is because #96 snapshot is not a main snapshot and is a mini snapshot actually.
I hope this question can be deleted. However, I don't know how.