<div dir="ltr"><div><div><div><div>Hi Dave,<br><br></div>You can use the field_cuts keyword for just such a thing.  You can supply multiple strings to be eval'ed in a list.  For example,<br><br></div>proj = pf.h.proj(0, 'Density', field_cuts=['grid["Density"] > 0.1', 'grid["Density"] < 0.2'])<br>
<br></div>Of course, you could also use one long string connected with ands.  This may not be documented, but certainly should be.<br><br></div>Britton<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 6:00 PM, David Collins <span dir="ltr"><<a href="mailto:dcollins4096@gmail.com" target="_blank">dcollins4096@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi, all-- <br><br>Can I hand a cut_region to a projection?  <br><br></div>I want to make a bunch of projections based on parameters, and don't want to have to instantiate 47 different fields.  I'm hoping something like<br>

<br></div>region = pf.h.all_data().cut_region('grid["Density"] > 0.1 and grid["Density"] < 0.2')<br></div>proj = pf.h.proj(0,"Density",region=cut_region)<br><br>or something like that.  Is that possible?  I'm poking around the help and source, but no method immediately popped out at me.<br>

<br>Thanks,<br>d.<br></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>