<div dir="ltr">Hi Desika,<div><br></div><div>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.</div>
<div><br></div><div>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'.</div>
<div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 10:19 AM, Desika Narayanan <span dir="ltr"><<a href="mailto:dnarayan@haverford.edu" target="_blank">dnarayan@haverford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Team YT,<div><br></div><div>I have a quick question about basic visualization with yt and gadget, with reference to the following simple script:</div>
<div><br></div><div><a href="http://paste.yt-project.org/show/4058/" target="_blank">http://paste.yt-project.org/show/4058/</a><br>
</div><div><br></div><div>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).</div>
<div><br></div><div>Thanks,</div><div>Desika</div><div><br></div><div><div>Traceback (most recent call last):</div><div> File "gadget_slice.py", line 14, in <module></div><div>
slc = SlicePlot(pf,'z',('PartType0', 'Density'))</div><div> File "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 2148, in SlicePlot</div><div> return AxisAlignedSlicePlot(pf, normal, fields, *args, **kwargs)</div>
<div> File "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 1322, in __init__</div><div> fontsize=fontsize)</div><div> File "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 809, in __init__</div>
<div> PWViewer.__init__(self, *args, **kwargs)</div><div> File "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 620, in __init__</div><div> if setup: self._setup_plots()</div>
<div> File "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 915, in _setup_plots</div><div> image = self._frb[f]</div><div> File "/Users/desika/yt-3.0/yt-x86_64/src/yt-hg/yt/visualization/fixed_resolution.py", line 128, in __getitem__</div>
<div> self._period, int(self.periodic),</div><div>_MPL.error: data is of incorrect type (wanted 1D float)</div><div><br></div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>