<p>Hi John,<br>
On Jul 3, 2012 4:55 PM, "John ZuHone" <<a href="mailto:jzuhone@milkyway.gsfc.nasa.gov">jzuhone@milkyway.gsfc.nasa.gov</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> Does anybody know how exactly projections work with field parameters? Suppose I have a field called "ProjectedVelocity" that takes a field parameter "axis" that chooses between the velocity components depending on the axis of projection.<br>
><br>
> The code goes like this:<br>
><br>
> proj = pf.h.proj(axis, "ProjectedVelocity", weight_field="DensitySquared")<br>
> proj.set_field_parameter("axis", axis)<br>
><br>
> But it looks like this field is being projected before the field parameter is set. Will I get the correct behavior when I do something later with the proj object, like generate an FRB?</p>
<p>As it stands right now, you can specify field parameters through the kwarg interface. Unfortunately that's going to have a collision with the axis argument as is, so you might need to change the field parameter to something like "projection_axis". You can do this with:</p>
<p>proj( ... , projection_axis=axis)</p>
<p>In the future I want this to be more specified, as is done with the PlotCollection, so what works now will look differently in the future. Specifically, I don't like the leftover kwargs being fed to field_parameters, and in the *future* (i.e., 3.0) it will look like:</p>
<p>proj(..., field_parameters = {'projection_axis':0})</p>
<p>for instance.</p>
<p>-Matt</p>
<p>><br>
> Best,<br>
><br>
> John Z<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">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</p>