1 |
% need to be in verification/lab_sea/matlab directory |
2 |
% and to specify location of exp1 output |
3 |
cd ../../../verification/lab_sea/matlab |
4 |
exp1_path='../input/exp1/'; |
5 |
|
6 |
% load monthly-mean SMMR-SSM/I data |
7 |
load SSMI |
8 |
|
9 |
% B-grid latitude for uice and vice |
10 |
Blat=lat-1; Blon=lon-1; |
11 |
|
12 |
% load model output |
13 |
area =readbin('../results/AREAtave.0000000010.data' ,[20 16 1],1); |
14 |
heff =readbin('../results/HEFFtave.0000000010.data' ,[20 16 1],1); |
15 |
uice =readbin('../results/UICEtave.0000000010.data' ,[20 16 1],1); |
16 |
vice =readbin('../results/VICEtave.0000000010.data' ,[20 16 1],1); |
17 |
area1=readbin([exp1_path 'AREAtave.0000000010.data'],[20 16 1],1); |
18 |
heff1=readbin([exp1_path 'HEFFtave.0000000010.data'],[20 16 1],1); |
19 |
uice1=readbin([exp1_path 'UICEtave.0000000010.data'],[20 16 1],1); |
20 |
vice1=readbin([exp1_path 'VICEtave.0000000010.data'],[20 16 1],1); |
21 |
|
22 |
% compute ice speed and direction |
23 |
udir=0*uice; vdir=0*vice; |
24 |
udir1=0*uice; vdir1=0*vice; |
25 |
icespeed=100*sqrt(uice.^2+vice.^2); |
26 |
in=find(icespeed); |
27 |
udir(in)=uice(in)./icespeed(in); |
28 |
vdir(in)=vice(in)./icespeed(in); |
29 |
icespeed1=100*sqrt(uice1.^2+vice1.^2); |
30 |
in=find(icespeed1); |
31 |
udir1(in)=uice1(in)./icespeed1(in); |
32 |
vdir1(in)=vice1(in)./icespeed1(in); |
33 |
|
34 |
% plot comparison figures |
35 |
|
36 |
clf, subplot(321) |
37 |
mypcolor(lon,lat,area1'); caxis([0 1]), colorbar |
38 |
title('Sea-ice concentration') |
39 |
set(gca,'xticklabel',[]) |
40 |
|
41 |
subplot(322) |
42 |
mypcolor(lon,lat,area1'-area'); colorbar |
43 |
title('Difference with checkpoint51f') |
44 |
set(gca,'xticklabel',[]) |
45 |
|
46 |
subplot(323) |
47 |
mypcolor(lon,lat,heff1'); caxis([0 .3]), colorbar |
48 |
title('Effective sea-ice thickness (m)') |
49 |
set(gca,'xticklabel',[]) |
50 |
|
51 |
subplot(324) |
52 |
mypcolor(lon,lat,heff1'-heff'); colorbar |
53 |
title('Difference with checkpoint51f') |
54 |
set(gca,'xticklabel',[]) |
55 |
|
56 |
subplot(325) |
57 |
mypcolor(Blon,Blat,icespeed1'); caxis([0 10]), colorbar |
58 |
hold on, myquiver(Blon,Blat,udir1',vdir1','k'); |
59 |
title('Sea-ice velocity (cm/s)') |
60 |
|
61 |
subplot(326) |
62 |
mypcolor(Blon,Blat,icespeed1'-icespeed'); colorbar |
63 |
if mmax(abs(udir1-udir)) | mmax(abs(vdir1-vdir)) |
64 |
hold on, myquiver(Blon,Blat,udir1'-udir',vdir1'-vdir','k'); |
65 |
end |
66 |
title('Difference with checkpoint51f') |