[yt-users] yt basic visualization for gadget output

Junhwan Choi (최준환) choi.junhwan at gmail.com
Sat Dec 13 20:46:04 PST 2014


Hi yt users and developers:

I try to use yt to visualize my gadget output (hdf5 format).
I made following simple script:
========================
import matplotlib as matplotlib
matplotlib.use('Agg')
import matplotlib.pylab as pylab
import yt

ds = yt.load("snap_agora_100.hdf5")

print ds.field_list
print ds.derived_field_list

pc = yt.ProjectionPlot(ds, "x", ('gas', 'Density'))
pc.save("gadget")
==========================
But it results in unknown error messages.
And, I have searched some documents for yt for gadget, but there is
also nothing I can find.
Is there any yt gadget documents I can consult ?
I have used yt for my enzo simulation analysis.

Thanks in advance,
Junhwan Choi



More information about the yt-users mailing list