[yt-users] Pressure/temperature gradient field

Yuan Li yuan at astro.columbia.edu
Sun Jul 19 14:52:48 PDT 2015


Dear all,

I am using yt2.6. I was trying to define a field of the temperature
gradient like gradPressureX, but I got an error message:
...
new_field[1:-1,1:-1,1:-1]  = data["Temperature"][sl_right,1:-1,1:-1]/ds
ValueError: could not broadcast input array from shape (62,62,64) into
shape (62,62,62)

I then tried to re-define gradPressureX by copying the original definition (
http://yt-project.org/docs/2.6/reference/field_list.html#gradpressurex) and
giving it a different name, and I got the same error. The original
gradPressureX works fine.

Is it because I did not load some specific module or something?


Thank you!
Yuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150719/b9236804/attachment.htm>


More information about the yt-users mailing list