<div dir="ltr">Hi Juan,<div><br></div><div>You can do this in a few steps with the following:</div><div>First, you can make a projection of your dataset and have it only use the data in the sphere.  To make a projection, you can use (assuming your dataset is called "data") data.proj.  To see what the options are, type "help(data.proj)".  You can have it only project data within the sphere with the data_source keyword.</div><div>Next, you can pixelize this projection to a constant resolution by creating a fixed resolution buffer and giving it the projection you just made.  For more information on that, have a look here:</div><div><a href="http://yt-project.org/doc/analyzing/generating_processed_data.html">http://yt-project.org/doc/analyzing/generating_processed_data.html</a><br></div><div><br></div><div>Let us know if you have any more questions.  Good luck!</div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 11:18 PM, Juan Camilo Ibanez Mejia <span dir="ltr"><<a href="mailto:jibanezmejia@amnh.org" target="_blank">jibanezmejia@amnh.org</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">
Dear yt users,
<div><br>
</div>
<div>I have a simulation from which I selected a region using:</div>
<div><span style="white-space:pre-wrap"></span><b>sph = data.sphere(center, (radius,"pc"))</b></div>
<div><b><br>
</b></div>
<div>Now I want to integrate the density and velocity along the z axis and do some</div>
<div>analysis on the projected field.</div>
<div><br>
</div>
<div>like: I have some points in the projection I am interested in and I want to know the </div>
<div>radial surface density profile or the divergence of the projected velocity.</div>
<div><br>
</div>
<div>thanks in advance for your help,</div>
<div><br>
</div>
<div>Juan</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div style="word-wrap:break-word">
<div>_____________________________</div>
<div>Juan Camilo Ibañez Mejia</div>
<div>Department of Astrophysics</div>
<div>American Museum of Natural History</div>
<div><a href="tel:%2B1-212-313-7435" value="+12123137435" target="_blank">+1-212-313-7435</a></div>
<div><a href="mailto:jibanezmejia@amnh.org" target="_blank">jibanezmejia@amnh.org</a></div>
<div>_____________________________</div>
</div>
<br>
<br>
</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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>