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

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

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


Revision 1.2 - (show annotations) (download)
Tue Nov 12 20:54:29 2002 UTC (21 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47a_post, checkpoint47
Changes since 1.1: +37 -0 lines
Merging from release1_p8:
o New verification/lab_sea exp. for seaice package
  (cf. README file).
   N.B.: fairly large differences in accuracy occur across
        different platforms/compilers; comparison between
        g77 (Linux) and F77 (SGI Origin 2000/MIPSpro)
        generated output gives:
   T           S           U           V
  C D M    c        m  s        m  s        m  s        m  s
  n p a R  g  m  m  e  .  m  m  e  .  m  m  e  .  m  m  e  .
  f n k u  2  i  a  a  d  i  a  a  d  i  a  a  d  i  a  a  d
  g d e n  d  n  x  n  .  n  x  n  .  n  x  n  .  n  x  n  .

  Y Y Y Y  5  5  7  7  7  8 10  9  6  6  6  6  7  5  7  5  7 FAIL  lab_sea

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='../../../exe/';
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([exp1_path 'AREAtave.0000010950.data'],[20 16 1],1);
14 heff=readbin([exp1_path 'HEFFtave.0000010950.data'],[20 16 1],1);
15 uice=readbin([exp1_path 'UICEtave.0000010950.data'],[20 16 1],1);
16 vice=readbin([exp1_path 'VICEtave.0000010950.data'],[20 16 1],1);
17
18 % compute ice speed and direction
19 udir=0*uice; vdir=0*vice;
20 icespeed=100*sqrt(uice.^2+vice.^2);
21 in=find(icespeed);
22 udir(in)=uice(in)./icespeed(in);
23 vdir(in)=vice(in)./icespeed(in);
24
25 % plot comparison figures
26 clf
27 subplot(221)
28 mypcolor(lon,lat,SSMI(:,:,4)'/100); caxis([0 1]), colorbar
29 title('Observed March sea-ice concentration')
30 subplot(222), mypcolor(lon,lat,area'); caxis([0 1]), colorbar
31 title('Modeled March sea-ice concentration')
32 subplot(223), mypcolor(lon,lat,heff'); caxis([0 1]), colorbar
33 title('Effective thickness in m')
34 subplot(224)
35 mypcolor(Blon,Blat,icespeed'); caxis([0 10]), colorbar
36 hold on,myquiver(Blon,Blat,udir',vdir','k');
37 title('Sea-ice velocity (cm/s)')

  ViewVC Help
Powered by ViewVC 1.1.22