%make a movie of surface Fe in the southern ocean

%define input
 fil = '/Users/hdietze/mom4p1_pubrel_18dec2009/exp/soeddyc_ref/INPUT/salt_sponge.nc'
 x=ncread(fil,'GRID_X_T');
 y=ncread(fil,'GRID_Y_T');
 s=ncread(fil,'SALT');


%plotting details
 xlims=[0 360];
 ylims=[-78.15 -20];
 in=[32:0.1:36];

%some ini
 [X,Y]=meshgrid(x,y); 


 I=find(s<-1e10); s(I)=NaN; 
 s=double(squee(s(:,:,1)));
    figure; drawnow
        % m_proj('Mercator','long',xlims,'lat', ylims);
          m_proj('stereographic','lat',-90,'long',0,'radius',60);
          hold on
          [xxtt,yytt]=m_ll2xy(X,Y);
          flat_pcolor(xxtt,yytt,s'), shading flat;
          amcolormap(jet,in); amcaxis(in);

          [cc]=amcolorbar('horiz',in);
          set(cc,'linewidth',2,'tickdir','out','fontweight','bold', ...
                  'xtick',in([1:4:end]),'xticklabel',in([1:4:end]),'position', ...
                  [0.130+0.15 0.1100+0.1 0.7750-0.3 0.0611/4], ...
                  'fontsize',10)
          m_grid('xtick',12,'tickdir','out','ytick',[-70:20:20],'linest','-', ...
                 'color','k','xticklabels',[],'yticklabels',[]);

          m_coast('patch',[0.7 0.7 0.7])
   print -dtiff ../ps/woasss.tiff


