[yt-users] ARTIO and find_field_value_at_point

Alexander A. Kaurov akaurov at gmail.com
Wed May 21 11:42:17 PDT 2014


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​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140521/1f7c4a2a/attachment.htm>


More information about the yt-users mailing list