function [ssta2 index] =three_two(ssta3)
% the points we want are in 'index'
  good_locs = squeeze(~isnan(ssta3(1,:,:)));
  index = find(good_locs ==1);
  N = length(ssta3);
  M = length(index);
  ssta2 = repmat(NaN,[M N]);
  

for ij=1:N
    ssta2(:,ij) = ssta3(ij,index);
end
end
