<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Junhwan,</div><div><br></div><div>The answer to both your questions is yes.</div><div><br></div><div>To plot the density of particles, I'd suggest using the 'particle_density' field, this performs a could in cell interpolation of the particle positions onto a mesh.  Its definition starts on line 987 of $YT_HG/yt/utilities/universal_fields.py.  </div><div><br></div><div>Right now there is only a particle density field, if you'd like to visualize other particle properties (like the particle velocities), I would start by looking at the particle density field and then write a new derived field based on the CICDeposit_3 call it uses.  You can always add new fields to the top of scripts or alternatively place definitions in a my_plugins.py file that can live in a .yt folder in your home directory.</div><div><br></div><div>The comoving units can be accessed following this pattern:</div><div><br></div><div>'kpc' - kiloparsec in physical units (kpc)</div><div>'kpccm' - comoving kiloparsec (kpc / (1+z))</div><div>'kpchcm' - comoving kiloparsec / h (h^-1 kpc / (1+z) )</div><div><br></div><div>There are similarly defined units for all of the length units.</div><div><br></div><div>Unfortunately this isn't documented at the moment and I've opened an issue to do so for the next release.  There is also <a href="https://bitbucket.org/yt_analysis/yt/issue/431">an open issue</a> regarding the way these units are displayed on plot axes labels.</div><div><br></div><div>This will hopefully be more straightforward in future releases as we are planning to completely refactor the way we handle units.</div><div><br></div><div>Cheers,</div><div><br></div><div>Nathan</div><br><div><div>On Apr 22, 2013, at 2:22 PM, Jun-Hwan Choi <<a href="mailto:jhchoi@pa.uky.edu">jhchoi@pa.uky.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi yt user,<br><br>I have run a DM only cosmological simulation.<br>And, I would like to make usual Projection/Slice plots for DM<br>properties (density/ velocity).<br>Is there any way yt compute the dark matter properties and make<br>Projection/Slice plots.<br><br>In addition, when I make a Projection/Slice plots for inner ## kpc, it<br>turns out the length is a physical unit.<br>Is there any yt commend set width of plots as comoving length scale?<br>The comoving length scale could be useful when I make time series<br>Projection/Slice plots for a given region.<br><br>Thank you in advance,<br>Junhwan<br><br><br><br>-- <br>--------------------------------------------------------------<br>Jun-Hwan Choi, Ph.D.<br>Department of Physics and Astronomy, University of Kentucky<br>Tel: (859) 897-6737        Fax: (859) 323-2846<br>Email: <a href="mailto:jhchoi@pa.uky.edu">jhchoi@pa.uky.edu</a>   URL: <a href="http://www.pa.uky.edu/~jhchoi">http://www.pa.uky.edu/~jhchoi</a><br>--------------------------------------------------------------<br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote></div><br></body></html>