/[MITgcm]/MITgcm/verification/lab_sea/matlab/lookat_exp1.m
ViewVC logotype

Contents of /MITgcm/verification/lab_sea/matlab/lookat_exp1.m

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


Revision 1.4 - (show annotations) (download)
Sat Dec 28 10:11:12 2002 UTC (21 years, 4 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint47j_post, checkpoint48d_pre, checkpoint47i_post, checkpoint47f_post, checkpoint50e_post, checkpoint50c_post, checkpoint48e_post, checkpoint48d_post, checkpoint48f_post, checkpoint48c_post, checkpoint48, checkpoint49, checkpoint48i_post, checkpoint48h_post, checkpoint50d_pre, checkpoint50, checkpoint47h_post, checkpoint50d_post, checkpoint47g_post, checkpoint48a_post, checkpoint50c_pre, checkpoint50b_pre, checkpoint48b_post, checkpoint50b_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint48c_pre, checkpoint50e_pre, checkpoint48g_post
Branch point for: ecco-branch
Changes since 1.3: +3 -3 lines
checkpoint47f_post
Merging from release1_p10:
o modifications for using pkg/exf with pkg/seaice
  - pkg/seaice CPP options SEAICE_EXTERNAL_FORCING
    and SEAICE_EXTERNAL_FLUXES
  - pkg/exf CPP options EXF_READ_EVAP and
    EXF_NO_BULK_COMPUTATIONS
  - usage examples are Experiments 8 and 9 in
    verification/lab_sea/README
  - verification/lab_sea default experiment now uses
    pkg/gmredi, pkg/kpp, pkg/seaice, and pkg/exf

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 release1 patch10')
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 release1 patch10')
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 release1 patch10')

  ViewVC Help
Powered by ViewVC 1.1.22