[yt-users] gadget visualization

Nathan Goldbaum nathan12343 at gmail.com
Fri Nov 15 10:27:01 PST 2013


Hi Desika,

No it's not.  The pixelization routines act on 3D structured data.  Raw
particle data (3D unstructured data) will not work.  In enzo, the same
thing will happen if I try to directly plot a particle dataset that hasn't
been interpolated somehow onto the mesh.

By the time the official yt-3.0 release happens, we will have simple
aliases set up so then one tries to plot a raw SPH particle field as if it
were a volumetric 3D dataset, it will 'just work'.

-Nathan


On Fri, Nov 15, 2013 at 10:19 AM, 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).
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131115/84a95050/attachment.html>


More information about the yt-users mailing list