Hi Jared,Try instead:yt.SlicePlot(ds, 'z', ('gas', 'density'), width=(10000., 'kpc'), center ='m')(note the lower-case).('Gas', 'Density') is a particle field, i.e. the Density values associated with each of the Gas particles in your simulation. ('gas', 'density') is a mesh field - for SPH it is the smoothed gas density, taken from the original Gas particles. Particle fields are unstructured, the field is only defined at the positions where particles exist. Mesh fields are defined over the whole simulation domain.Unfortunately there's some name collision here for gadget binary files so I can see how this is confusing. At the very least we should catch that you're trying to create a SlicePlot of a particle field and crash with a nicer, more understandable error.More detail on the difference between particle and mesh fields as well as fields in yt in general here: http://yt-project.org/docs/3.0/analyzing/fields.htmlHope that helps,-NathanOn Thu, Aug 7, 2014 at 2:08 PM, Jared Coughlin <Jared.W.Coughlin.29@nd.edu> wrote:
_______________________________________________Hi Nathan, I pasted the traceback here: http://paste.yt-project.org/show/4998/-JaredOn Thu, Aug 7, 2014 at 4:16 PM, Jared Coughlin <Jared.W.Coughlin.29@nd.edu> wrote:Hello! I have a vanilla gadget snapshot (one from the lcdm sample run that the code comes with) that I was able to plot by following the instructions given here:http://yt-project.org/docs/3.0/cookbook/tipsy_notebook.html#tipsy-notebookI then moved on to the 'Making Smoothed Images' section of that page and tried the SlicePlot command. However, I get the following error:IndexError: index 32767 is out of bounds for axis 0 with size 32767Basically, I'm not really sure what that means. It seems like it's overstepping the bounds of an array, as, for a zero-indexed array of size 32767, index 32767 would be out of bounds by one. I just wanted to see if anyone else has had this problem, and if so, how they fixed it? Thank you very much!-Jared
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org