[yt-users] gadget visualization
Matthew Turk
matthewturk at gmail.com
Fri Nov 15 10:45:13 PST 2013
Hi Desika,
On Fri, Nov 15, 2013 at 1:19 PM, Desika Narayanan
<dnarayan at haverford.edu> wrote:
> Hey Team YT,
>
> I have a quick question about basic visualization with yt and gadget, with
> reference to the following simple script:
>
> http://paste.yt-project.org/show/4058/
>
> If I try to SlicePlot the snapshot, I get a series of errors which are
> copied below. Is it not possible to perform these sorts of plotting routines
> on the raw gadget data? (as an addendum, if I project to an octree grid
> using yt, I am able to make slice and projection plots).
The field:
("deposit", "PartType0_density")
rather than "Density", will deposit the particles and give back a
density estimate in an octree form.
-Matt
>
> Thanks,
> Desika
>
> Traceback (most recent call last):
> File "gadget_slice.py", line 14, in <module>
> slc = SlicePlot(pf,'z',('PartType0', 'Density'))
> File
> "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 2148, in SlicePlot
> return AxisAlignedSlicePlot(pf, normal, fields, *args, **kwargs)
> File
> "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 1322, in __init__
> fontsize=fontsize)
> File
> "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 809, in __init__
> PWViewer.__init__(self, *args, **kwargs)
> File
> "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 620, in __init__
> if setup: self._setup_plots()
> File
> "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 915, in _setup_plots
> image = self._frb[f]
> File
> "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/fixed_resolution.py",
> line 128, in __getitem__
> self._period, int(self.periodic),
> _MPL.error: data is of incorrect type (wanted 1D float)
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
More information about the yt-users
mailing list