[yt-users] yt basic visualization for gadget output

Nathan Goldbaum nathan12343 at gmail.com
Sat Dec 13 20:48:22 PST 2014


On Sat, Dec 13, 2014 at 8:46 PM, Junhwan Choi (최준환) <choi.junhwan at gmail.com>
wrote:
>
> 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'))
>

I think it will work if you use ('gas', 'density')

(note the lower-case D)

If that doesn't work, can you pastebin the error you're seeing, along with
the traceback?  We have paste.yt-project.org for this purpose.


> 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
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141214/f5715ae2/attachment.html>


More information about the yt-users mailing list