destagger.m 270 B

1234567891011121314
  1. function zz=destagger(zz)
  2. % function zo=destagger(z)
  3. % Destaggers an Arakawa E field for plotting
  4. % (JvH 12/06)
  5. [nx,ny,nt]=size(zz);
  6. for it=1:nt
  7. for j=1:ny
  8. zz(:,j,it)=circshift(zz(:,j,it),-floor((j-1)/2));
  9. end
  10. end