<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div>Hi everyone,<br><br></div>I want to write a new field based on the neighbour cells like this:<br><br>vx = data[ftype, "velocity_x"][sl_right,sl_center,sl_center]<br><br></div>but I got " global name 'ftype' is not defined". I suppose that I have the same problem with sl_left, sl_right , sl_center.<br><br><div>Thanks,</div><div><br></div>Jose<br></div>