Changeset 26939
- Timestamp:
- 03/24/22 16:24:13 (3 years ago)
- Location:
- issm/trunk-jpl/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/MITgcm/tools/lookat_4003.m
r26886 r26939 2 2 p1=[pn 'RunUncoupled/']; 3 3 p2=[pn 'run/']; 4 5 for ts=30:34 6 v1=readbin([p2 'R_shelfIce1_' myint2str(ts,10) '.data'],[3 200]); 7 v2=readbin([p2 'R_shelfIce2_' myint2str(ts,10) '.data'],[3 200]); 8 u=readbin([p2 'U.' myint2str(ts,10) '.data'],[3 200 90]); 9 v=readbin([p2 'V.' myint2str(ts,10) '.data'],[3 200 90]); 10 w=readbin([p2 'W.' myint2str(ts,10) '.data'],[3 200 90]); 11 clf, subplot(511), plot(v1(2,:)), title(ts) 12 subplot(512), plot(v2(2,:)-v1(2,:)), title('draft change') 13 subplot(513), mypcolor(1:200,-1:-1:-90,squeeze(u(2,:,:))'); title('U'), colorbar 14 subplot(514), mypcolor(1:200,-1:-1:-90,squeeze(v(2,:,:))'); title('V'), colorbar 15 subplot(515), mypcolor(1:200,-1:-1:-90,squeeze(w(2,:,:))'); title('W'), colorbar 16 pause 17 end 18 19 20 clf 21 subplot(311), mypcolor(v1), title(ts) 22 subplot(312), mypcolor(v2), title(ts) 23 subplot(313), mypcolor(v2-v1) 24 25 for ts=1:10 26 v1=readbin([p2 'SHICE_fwFlux.' myint2str(ts,10) '.data'],[3 200]); 27 clf 28 subplot(311), mypcolor(v1), title(ts), colorbar 29 pause 30 end 31 32 33 v2=readbin([p2 'SHICE_fwFlux.' myint2str(ts,10) '.data'],[3 200]); 34 35 36 clf 37 for ts=5, disp(ts) 38 T=readbin([p2 'T.' myint2str(ts,10) '.data'],[3 200 90]); 39 S=readbin([p2 'S.' myint2str(ts,10) '.data'],[3 200 90]); 40 U=readbin([p2 'U.' myint2str(ts,10) '.data'],[3 200 90]); 41 V=readbin([p2 'V.' myint2str(ts,10) '.data'],[3 200 90]); 42 W=readbin([p2 'W.' myint2str(ts,10) '.data'],[3 200 90]); 43 for k=1:90, disp(k) 44 clf 45 subplot(321), plot(S(2,:,k)), title('S') 46 subplot(322), plot(T(2,:,k)), title('T') 47 subplot(323), plot(U(2,:,k)), title('U') 48 subplot(324), plot(V(2,:,k)), title('V') 49 subplot(325), plot(W(2,:,k)), title('W') 50 pause 51 end 52 end 53 54 55 clf 56 for ts=1:8, disp(ts) 57 T=readbin([p2 'T.' myint2str(ts,10) '.data'],[3 200 90]); 58 S=readbin([p2 'S.' myint2str(ts,10) '.data'],[3 200 90]); 59 U=readbin([p2 'U.' myint2str(ts,10) '.data'],[3 200 90]); 60 V=readbin([p2 'V.' myint2str(ts,10) '.data'],[3 200 90]); 61 W=readbin([p2 'W.' myint2str(ts,10) '.data'],[3 200 90]); 62 clf 63 subplot(321), mypcolor(squeeze(S(2,:,:))'), title('S'), colorbar 64 subplot(322), mypcolor(squeeze(T(2,:,:))'), title('T'), colorbar 65 subplot(323), mypcolor(squeeze(U(2,:,:))'), title('U'), colorbar 66 subplot(324), mypcolor(squeeze(V(2,:,:))'), title('V'), colorbar 67 subplot(325), mypcolor(squeeze(W(2,:,:))'), title('W'), colorbar 68 pause 69 end 70 71 72 73 74 75 76 ts=8; 77 v1=readbin([p2 'R_shelfIce1_' myint2str(ts,10) '.data'],[3 200]); 78 v2=readbin([p2 'R_shelfIce2_' myint2str(ts,10) '.data'],[3 200]); 79 clf 80 subplot(311), mypcolor(v1); title('R_shelfIce1'), colorbar 81 subplot(312), mypcolor(v2); title('R_shelfIce2'), colorbar 82 subplot(313), mypcolor(v2-v1); title('diff'), colorbar 83 84 figure(2) 85 clf 86 plot(1:200,v1(2,:),'o-',1:200,v2(2,:),'o-',1:200,v2(2,:)-v1(2,:),'o-') 4 87 5 88 ts=0;
Note:
See TracChangeset
for help on using the changeset viewer.