<div dir="ltr">Hi Alex, Desika<div><br></div><div>I think the issue is that add_deposited_particle_field doesn't support vector fields.</div><div><br></div><div>FWIW, there are already deposited velocity fields for each of the velocity components defined for that dataset.</div><div><br></div><div>See: <a href="https://bpaste.net/show/3f6d25193a2b">https://bpaste.net/show/3f6d25193a2b</a></div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 10:57 AM, Alex Hill <span dir="ltr"><<a href="mailto:ashill@haverford.edu" target="_blank">ashill@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 style="word-wrap:break-word">This email went to my junk folder, and it seems that may have been true for others, so Desika asked me to forward it back to the list.<div><br></div><div>Cheers,</div><div> Alex<br>
<div><br><blockquote type="cite"><div>Begin forwarded message:</div><br><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>From: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">Desika Narayanan <<a href="mailto:desika.narayanan@gmail.com" target="_blank">desika.narayanan@gmail.com</a>><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Subject: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><b>[yt-users] smoothed particle velocities onto unigrid</b><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Date: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">March 23, 2016 at 11:04:28 EDT<br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">yt-users <<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(0,0,0,1.0)"><b>Reply-To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><a href="mailto:desika.narayanan@gmail.com" target="_blank">desika.narayanan@gmail.com</a>, Discussion of the yt analysis package <<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>><br></span></div><br><div><div dir="ltr">Hey All,<div><br></div><div>I'm having some trouble smoothing particle velocities onto a uniform (arbitrary_grid) grid.  The basic idea is that I create an arbitrary grid, then want to access the particle quantities smoothed onto that grid.  Some are relatively easy, like:</div><div><br></div><div><div>mass =  obj[('deposit','PartType0_mass')].in_units('Msun')</div></div><div><br></div><div><br></div><div>and for others, where deposited fields don't already exist, I can create those fields and it all works well:</div><div><br></div><div><div>ds.add_deposited_particle_field(('PartType0', 'Temperature'),'sum')</div><div>temp = obj[('deposit', 'PartType0_sum_Temperature')]</div></div><div><br></div><div>but when either trying to access a deposited particle field, or creating one with the velocities, errors are abound.  I'm sure I'm just doing something foolish, but could use a little nudge in the right direction.  I created a self-contained script using the gadget zoom data set on the yt datsets to show the problem, with two different error messages pastebinned (links in the script) here:</div><div><br></div><div><a href="http://paste.yt-project.org/show/6352/" target="_blank">http://paste.yt-project.org/show/6352/</a><br></div><div><br></div><div>any help would be greatly appreciated!</div><div><br></div><div>thanks,</div><div>desika</div></div>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></div></blockquote></div><br></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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>