Hi everyone,

I want to write a new field based on the neighbour cells like this:

vx = data[ftype, "velocity_x"][sl_right,sl_center,sl_center]

but I got " global name 'ftype' is not defined". I suppose that I have the same problem with sl_left, sl_right , sl_center.

Thanks,

Jose