function get_ij,v,nx on_error,1 if n_params() lt 2 then message,'syntax --> ij=get_ij(v,nx)' return,transpose([[v mod long(nx)], [v/long(nx)]]) & end