/[MITgcm]/MITgcm_contrib/bbl/lookat_output.m
ViewVC logotype

Diff of /MITgcm_contrib/bbl/lookat_output.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by dimitri, Thu Nov 18 04:00:04 2010 UTC revision 1.4 by dimitri, Tue Aug 27 21:02:21 2013 UTC
# Line 1  Line 1 
1  % cd ~/mitgcm/bbl/MITgcm  % cd MITgcm
2    lon=0:.48:11.6; lat=-70:.16:-67.7; dpt=72:144:3600;
3    Depth=readbin('run/Depth.data',[25 15]);
4    
5    % find bottom
6    kbot=ones(25,15);
7    s1=35+readbin(['run.bbl/SALTanom.' myint2str(216,10) '.data'],[25 15 25]);
8    for k=2:25
9     kbot(find(s1(:,:,k)>0))=k;
10    end
11    
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
12  % compare baseline, downslope, and bbl  % compare baseline, downslope, and bbl
13  for ts=216:216:21600  colormap(cmap), cx=[29.99 30.1];
14   s1=35+readbin(['run/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);  s1=zeros(25,15,25); s2=s1; s3=s1;
15   s2=35+readbin(['run.down_slope/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);  for ts=216:216:7200
16   s3=35+readbin(['run.bbl/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);   s1(:,:,1:25)=35+readbin(['run/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);
17     s2(:,:,1:25)=35+readbin(['run.down_slope/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);
18     s3(:,:,1:25)=35+readbin(['run.bbl/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);
19   clf, subplot(311)   clf, subplot(311)
20   mypcolor(1:15,25:-1:1,squeeze(s1(10,:,:))');   mypcolor(lat,-dpt/1e3,squeeze(s1(10,:,:))'); caxis(cx), thincolorbar
  caxis([30 30.1]), thincolorbar  
21   title(['baseline salinity section on day ' int2str(ts*1200/60/60/24)])   title(['baseline salinity section on day ' int2str(ts*1200/60/60/24)])
22     ylabel('depth (km)')
23   subplot(312)   subplot(312)
24   mypcolor(1:15,25:-1:1,squeeze(s2(10,:,:))');   mypcolor(lat,-dpt/1e3,squeeze(s2(10,:,:))'); caxis(cx), thincolorbar
  caxis([30 30.1]), thincolorbar  
25   title(['downslope salinity section on day ' int2str(ts*1200/60/60/24)])   title(['downslope salinity section on day ' int2str(ts*1200/60/60/24)])
26     ylabel('depth (km)')
27   subplot(313)   subplot(313)
28   mypcolor(1:15,25:-1:1,squeeze(s3(10,:,:))');   mypcolor(lat,-dpt/1e3,squeeze(s3(10,:,:))'); caxis(cx), thincolorbar
  caxis([30 30.1]), thincolorbar  
29   title(['bbl salinity section on day ' int2str(ts*1200/60/60/24)])   title(['bbl salinity section on day ' int2str(ts*1200/60/60/24)])
30     ylabel('depth (km)'), xlabel('latitude (deg)')
31   pause(.1)   pause(.1)
32  end  end
33    
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
34  % look at some diagnostics from bbl integration  % look at some diagnostics from bbl integration
35  kbot=ones(25,15);  colormap(cmap), cx=[29.998 30.03];
36  s1=35+readbin(['run.bbl/SALTanom.' myint2str(216,10) '.data'],[25 15 25]);  for ts=216:216:7200
37  for k=2:25   clf
38   kbot(find(s1(:,:,k)>0))=k;   subplot(321)
 end  
 for ts=216:216:21600  
39   s1=35+readbin(['run.bbl/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);   s1=35+readbin(['run.bbl/SALTanom.' myint2str(ts,10) '.data'],[25 15 25]);
40   clf, subplot(321), caxis([30 30.1]), mypcolor(1:15,25:-1:1,squeeze(s1(10,:,:))');   mypcolor(lat,-dpt/1e3,squeeze(s1(10,:,:))'); caxis(cx), thincolorbar
  caxis([30 30.1]), thincolorbar  
41   title(['salinity section on day ' int2str(ts*1200/60/60/24)])   title(['salinity section on day ' int2str(ts*1200/60/60/24)])
42     subplot(322)
43   s2=kbot; for i=1:25, for j=1:15, s2(i,j)=s1(i,j,kbot(i,j)); end, end   s2=kbot; for i=1:25, for j=1:15, s2(i,j)=s1(i,j,kbot(i,j)); end, end
44   subplot(322), mypcolor(s2'); caxis([30 30.1]), thincolorbar   mypcolor(s2'); caxis(cx), thincolorbar
45   title('salinity at bottom grid')   title('salinity of bottom grid box')
46     subplot(323)
47     eta=readbin(['run.bbl/BBLeta.' myint2str(ts,10) '.data'],[25 15]);
48     mypcolor(eta'); caxis([0 144]), thincolorbar
49     title('bbl thickness')
50     subplot(324)
51   s3=readbin(['run.bbl/BBLsalt.' myint2str(ts,10) '.data'],[25 15]);   s3=readbin(['run.bbl/BBLsalt.' myint2str(ts,10) '.data'],[25 15]);
52   subplot(323), mypcolor(s3'); caxis([30 30.1]), thincolorbar   mypcolor(s3'); caxis(cx), thincolorbar
53   title('bbl salinity')   title('salinity of bbl')
54   subplot(324), mypcolor(s3'-s2'); thincolorbar   subplot(325)
55   title('bbl salinity minus bottom salinity')   tendS=readbin(['run.bbl/BBLtendS.' myint2str(ts,10) '.data'],[25 15]);
56   ts=readbin(['run.bbl/BBLtendS.' myint2str(ts,10) '.data'],[25 15]);   mypcolor(tendS'); caxis([-1 1]*3e-9), thincolorbar
57   subplot(325), mypcolor(ts'); thincolorbar   title('bottom salinity tendency due to bbl')
58   title('salinity tendency'), pause(.1)   subplot(326)
59     mypcolor(s3'-s2'); thincolorbar
60     title('bbl salinity minus bottom salinity'), pause
61  end  end

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22