<p dir="ltr">Good deal, thanks for the guidance.<br>
Nick</p>
<div class="gmail_quote">On Apr 4, 2013 4:51 PM, "Stephen Skory" <<a href="mailto:s@skory.us">s@skory.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Nick,<br>
<br>
Sam is correct that porting over find_field_value_at_point should be<br>
pretty simple to get working, here's how I would do it:<br>
<br>
- use pf.h.find_points() to find the most-refined grid at your point(s).<br>
- use that grid's size (left edge/right edge/size) to figure out the<br>
index of the cell in the grid that contains your point(s), which is<br>
straightforward algebra.<br>
- use that index to select out the values from the field arrays<br>
(grid[field][index])<br>
<br>
This is basically how find_field_value_at_point works and you can look<br>
at that in 2.x as a guide. If you get it working, you are encouraged<br>
to issue a pull request for it!<br>
<br>
Good luck!<br>
<br>
On Thu, Apr 4, 2013 at 8:45 AM, Sam Skillman <<a href="mailto:samskillman@gmail.com">samskillman@gmail.com</a>> wrote:<br>
> Hi Nick,<br>
><br>
> There's actually a current issue on the issue tracker for this:<br>
> <a href="https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions" target="_blank">https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions</a><br>
><br>
> They should be pretty simple to port over to 3.0, but I'm not sure when I'll<br>
> be able to get to it.  Perhaps someone else more familiar with 3.0 could<br>
> give it a shot.<br>
><br>
> Sam<br>
><br>
><br>
> On Thu, Apr 4, 2013 at 8:30 AM, nick moeckel <<a href="mailto:nickolas1@gmail.com">nickolas1@gmail.com</a>> wrote:<br>
>><br>
>> Hi there,<br>
>><br>
>> I've been working with yt-3.0 and Ramses over the past few days. One thing<br>
>> that seems to not be working (or rather, to not be existing) is<br>
>> pf.h.find_field_value_at_point()<br>
>><br>
>> I'm not sure if this is a problem or a design choice for 3.0- if the<br>
>> latter, is there a new way to do the same thing?<br>
>><br>
>> best,<br>
>> Nick<br>
>><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>
><br>
><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>
<br>
<br>
<br>
--<br>
Stephen Skory<br>
<a href="mailto:s@skory.us">s@skory.us</a><br>
<a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br>
510.621.3687 (google voice)<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>
</blockquote></div>