[yt-users] ARTIO and find_field_value_at_point

Matthew Turk matthewturk at gmail.com
Wed May 21 12:03:08 PDT 2014


Hi Sasha,

Yup, looks like it's not.  You should be able to use the derived
quantity min_location, however.

dd = pf.all_data()
dd.quantities.min_location("HVAR_GAS_DENSITY")

On Wed, May 21, 2014 at 2:42 PM, Alexander A. Kaurov <akaurov at gmail.com> wrote:
> Hi all,
>
> I'm trying to access field value in a given point in ARTIO file (sample data
> file: sizmbhloz-clref04SNth-rs9_a0.9011
> ). The function '
> find_field_value_at_point
> ' seems to be not working. May be I'm using it wrong?
>
> Here is the code:
>
> from yt.mods import *
> pf=load('test-data/sizmbhloz-clref04SNth-rs9_a0.9011/sizmbhloz-clref04SNth-rs9_a0.9011.art')
> pf.h.
> find_field_value_at_point(('artio', 'HVAR_GAS_DENSITY'),[0.1,0.1,0.1])
>
> And the error:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/lustre/kaurov/anaconda/lib/python2.7/site-packages/yt-3.0dev-py2.7-linux-x86_64.egg/yt/data_objects/static_output.py",
> line 84, in __getattr__
>     raise AttributeError
> AttributeError
>
> Thanks!
>
> Sasha
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list