/[MITgcm]/MITgcm/verification/natl_box/input/lookat.m
ViewVC logotype

Annotation of /MITgcm/verification/natl_box/input/lookat.m

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


Revision 1.1 - (hide annotations) (download)
Fri Apr 29 18:47:03 2005 UTC (19 years ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint57t_post, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint58u_post, checkpoint58w_post, checkpoint57m_post, checkpoint57s_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint57i_post, checkpoint57y_post, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint57y_pre, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57h_done, checkpoint58f_post, checkpoint57x_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, HEAD
o added diagnostics to pkg/kpp, including computation of mixed layer
  depth based on a temperature/density criterion
o updated verification/natl_box to test the new pkg/kpp diagnostics

1 dimitri 1.1 nx=20; ny=16; nz=23;
2    
3     fld1=readbin('KPPviscA.0000000010.data',[nx ny]);
4     fld2=readbin('KPPviscAz.0000000011.data',[nx ny]);
5     clf, subplot(311),mypcolor(fld1');colorbar
6     subplot(312),mypcolor(fld2');colorbar
7     subplot(313),mypcolor(fld2'-fld1');colorbar
8    
9     fld1=readbin('KPPdiffS.0000000010.data',[nx ny]);
10     fld2=readbin('KPPdiffKzS.0000000011.data',[nx ny]);
11     clf, subplot(311),mypcolor(fld1');colorbar
12     subplot(312),mypcolor(fld2');colorbar
13     subplot(313),mypcolor(fld2'-fld1');colorbar
14    
15     fld1=readbin('KPPdiffT.0000000010.data',[nx ny]);
16     fld2=readbin('KPPdiffKzT.0000000011.data',[nx ny]);
17     clf, subplot(311),mypcolor(fld1');colorbar
18     subplot(312),mypcolor(fld2');colorbar
19     subplot(313),mypcolor(fld2'-fld1');colorbar
20    
21     fld1=readbin('KPP_ghat.0000000010.data',[nx ny]);
22     fld2=readbin('KPPghat.0000000011.data',[nx ny]);
23     clf, subplot(311),mypcolor(fld1');colorbar
24     subplot(312),mypcolor(fld2');colorbar
25     subplot(313),mypcolor(fld2'-fld1');colorbar
26    
27     fld1=readbin('KPP_hbl.0000000010.data',[nx ny]);
28     fld2=readbin('KPPhbl.0000000011.data',[nx ny]);
29     fld3=readbin('KPPmld.0000000010.data',[nx ny]);
30     clf, subplot(311),mypcolor(fld1');colorbar
31     subplot(312),mypcolor(fld2');colorbar
32     subplot(313),mypcolor(fld3');colorbar
33    
34     fld1=readbin('KPPfrac.0000000010.data',[nx ny]);
35     mypcolor(fld1');colorbar
36    
37     %%%%%%%%%%%%%%%
38     delZ=[0 10 10 15 20 20 25 35 50 75 100 150 200 ...
39     275 350 415 450 500 500 500 500 500 500 500];
40     top=cumsum(delZ(1:23));
41     bot=cumsum(delZ(2:24));
42     dpt=-(top+bot)/2;
43     MLD=readbin('KPPmld.0000000010.data',[nx ny]);
44     T=readbin('T.0000000011.data',[nx ny nz]);
45     S=readbin('S.0000000011.data',[nx ny nz]);
46     R=rho(S,T,0*T);
47     DR=rho(S(:,:,1),T(:,:,1)-.8,0)-R(:,:,1);
48     mld=0*MLD;
49     for i=1:nx
50     for j=1:ny
51     if DR(i,j)>0
52     tmp=squeeze(R(i,j,:)-R(i,j,1));
53     in=closest(DR(i,j),tmp,0);
54     mld(i,j)=(dpt(in(1))*abs(tmp(in(2))-DR(i,j)) + ...
55     dpt(in(2))*abs(tmp(in(1))-DR(i,j))) / ...
56     abs(R(i,j,in(2))-R(i,j,in(1)));
57     end
58     end
59     end
60     clf, subplot(311),mypcolor(fld3');caxis([0 70]),colorbar
61     subplot(312),mypcolor(-mld');caxis([0 70]),colorbar
62     subplot(313),mypcolor(-mld'-fld3');colorbar
63    
64     %%%%%%%%%%%%%%%%%%%%%%%
65     ix=10; iy=8;
66     s=squeeze(S(ix,iy,:));
67     t=squeeze(T(ix,iy,:));
68     p=pressure(abs(dpt),26);
69     r=rho(s,t,0);
70     dr=
71     clf, plot(s,dpt,t,dpt,r-r(1),dpt,it,dpt,dr+dpt*0,dpt,'linewidth',3)
72     legend('S','T','\sigma','dr',4)
73     axis([0 37 -5450 0]), grid
74     title(MLD(ix,iy))

  ViewVC Help
Powered by ViewVC 1.1.22