<div dir="ltr">Hi Nathan,<br><br>This is exactly what I was looking for. <br><br>Thank you! <br><br>Jose</div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-18 15:59 GMT-03:00 Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jose,<div><br></div><div>You are going to need to create a new deposited particle field using ds.add_deposited_particle_<wbr>field:</div><div><br></div><div><a href="http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.StreamDataset.add_deposited_particle_field.html#yt.frontends.stream.data_structures.StreamDataset.add_deposited_particle_field" target="_blank">http://yt-project.org/doc/<wbr>reference/api/generated/yt.<wbr>frontends.stream.data_<wbr>structures.StreamDataset.add_<wbr>deposited_particle_field.html#<wbr>yt.frontends.stream.data_<wbr>structures.StreamDataset.add_<wbr>deposited_particle_field</a><br></div><div><br></div><div>Alternatively you might find ParticlePlot to be useful, it will let you directly visualize the particle field without creating a deposit field:</div><div><br></div><div><a href="http://yt-project.org/doc/visualizing/plots.html#particle-plots" target="_blank">http://yt-project.org/doc/<wbr>visualizing/plots.html#<wbr>particle-plots</a><br></div><div><a href="http://yt-project.org/doc/cookbook/simple_plots.html?highlight=particleplot#simple-particle-plot" target="_blank">http://yt-project.org/doc/<wbr>cookbook/simple_plots.html?<wbr>highlight=particleplot#simple-<wbr>particle-plot</a><br></div><div><a href="http://yt-project.org/doc/reference/api/generated/yt.visualization.particle_plots.ParticlePlot.html" target="_blank">http://yt-project.org/doc/<wbr>reference/api/generated/yt.<wbr>visualization.particle_plots.<wbr>ParticlePlot.html</a><br></div><div><br></div><div>Best,</div><div><br></div><div>Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Apr 18, 2017 at 1:13 PM, José Mauricio Utreras <span dir="ltr"><<a href="mailto:jutreras@ug.uchile.cl" target="_blank">jutreras@ug.uchile.cl</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi yt users!<br><br>Does anybody know how to create a projection for particles using another field rather than "particle_mass"?<br><br>I was using this:<br><br><div>proj = ds.proj('density', 2,data_source=disk_dd,method='<wbr>sum')</div><div>frb = proj.to_frb(width, res, center=[0.5,0.5,0.5])<br></div><div>M_star=frb[('deposit', 'young_stars_mass')].in_units(<wbr>'Msun')<br><br>But now I would like to do this with a particle mass field that depends on the characteristic timescales of the particles rather than the default field. <br>Cheers!<span class="m_-6960429823680199389HOEnZb"><font color="#888888"><br><br>José Utreras</font></span></div></div>
<br></div></div>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>