![](https://secure.gravatar.com/avatar/082bd653ecfa897540212641a3288617.jpg?s=120&d=mm&r=g)
Hi, Is the field such as DivV (or any field that uses the scheme sl_left = slice(None,-2,None) sl_right = slice(1,-1,None) f = data["x-velocity"][sl_right,1:-1,1:-1]/ds f -= data["x-velocity"][sl_left ,1:-1,1:-1]/ds to average between adjoining cells) valid for objects such as regions, where the cells might not necessarily be adjoining? I'm thinking no... Elizabeth
![](https://secure.gravatar.com/avatar/082bd653ecfa897540212641a3288617.jpg?s=120&d=mm&r=g)
Oops, sorry -- ignore that. ValidateSpatial ensures the data is 3d, so it's fine. I forgot. Elizabeth On 27 June 2012 15:36, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi,
Is the field such as DivV
(or any field that uses the scheme
sl_left = slice(None,-2,None) sl_right = slice(1,-1,None)
f = data["x-velocity"][sl_right,1:-1,1:-1]/ds f -= data["x-velocity"][sl_left ,1:-1,1:-1]/ds
to average between adjoining cells)
valid for objects such as regions, where the cells might not necessarily be adjoining?
I'm thinking no...
Elizabeth
participants (1)
-
Elizabeth Tasker