<div dir="ltr">Yes, I misunderstood what Kern was looking for. I'm trying to do the mapping in "real-time" on the video card. Mimicking something similar to yt's covering grid. </div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 7:50 AM, j s oishi <span dir="ltr"><<a href="mailto:jsoishi@gmail.com" target="_blank">jsoishi@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">As a quick follow up, Alex, the covering grid does *exactly* what you want.<span class="HOEnZb"><font color="#888888"><div><br></div><div>j</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 10:48 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kearn,<br>
<div><br>
On Mon, Dec 16, 2013 at 10:23 AM,  <<a href="mailto:k.grisdale@surrey.ac.uk" target="_blank">k.grisdale@surrey.ac.uk</a>> wrote:<br>
> Dear yt-users<br>
><br>
> I am attempting to make a tool that will sample the properties of a RAMSES galactic disk simulation. The tools needs to be able to work on different scales going from very large (10kpc) to the very small (2x the size of the smallest cell ~140pc). So far I have achieved this using data objects and calling required property/Quantities that I need. On large scales this works very well, however on small scales I have run into the issue that only part of cells are within in my data object. While this is to be expected it is presenting so interesting results. From what I can tell if the centre of the cell is in my data object yt treats the cell as if the whole cell is within my data object but if the centre is missed it treats it as if the whole cell is absent from the data object, I’m looking for a median between these extremes.<br>


<br>
</div>You're right, the cell centers are used for selecting data points in yt.<br>
<div><br>
><br>
> My question is is there a way to get yt to only take into account the proportion of the cell in side my data object?<br>
<br>
</div>Usually they're taken into account via CellVolume weighting or<br>
something along those lines.<br>
<div><br>
><br>
> Also if the cell only has small corner in my data object is there away to get yt to fetch the properties of that cell (say the density and cell volume) and then multiply these values by the proportion of the cell that is in my object?<br>


<br>
</div>The data selection won't find the cell, unfortunately, so it might be<br>
somewhat tricky to do it using the standard setup.  I'd say you might<br>
be interested in using a covering grid, which will expand all of the<br>
cells into some higher resolution; this will enable them to be cut up<br>
and subselected.  The format for this is:<br>
<br>
cg = pf.h.covering_grid(some_level, left_edge, dimensions)<br>
<br>
This will use "some_level" to determine the dx (with respect to level<br>
0) and dimensions and left edge to describe the extent.  No<br>
interpolation will be conducted.  You can then select it and operate<br>
on it as you like, and it will have the dict-like querying that other<br>
objects do.<br>
<br>
-Matt<br>
<div><div><br>
><br>
> Thank you in advance for you help<br>
><br>
> Kearn<br>
> _______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div>
</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>