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

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

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


Revision 1.2 - (hide annotations) (download)
Tue Nov 12 20:54:29 2002 UTC (21 years, 6 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47a_post, checkpoint47
Changes since 1.1: +57 -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 heimbach 1.2 % 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/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     clf
36     subplot(321)
37     mypcolor(lon,lat,area1'); caxis([0 1]), colorbar
38     title('Sea-ice concentration')
39     subplot(322)
40     mypcolor(lon,lat,area1'-area'); colorbar
41     title('Difference with release1 beta1')
42     subplot(323)
43     mypcolor(lon,lat,heff1'); caxis([0 .3]), colorbar
44     title('Effective sea-ice thickness (m)')
45     subplot(324)
46     mypcolor(lon,lat,heff1'-heff'); colorbar
47     title('Difference with release1 beta1')
48     subplot(325)
49     mypcolor(Blon,Blat,icespeed1'); caxis([0 10]), colorbar
50     hold on,myquiver(Blon,Blat,udir1',vdir1','k');
51     title('Sea-ice velocity (cm/s)')
52     subplot(326)
53     mypcolor(Blon,Blat,icespeed1'-icespeed'); colorbar
54     if mmax(abs(udir1-udir)) | mmax(abs(vdir1-vdir))
55     hold on,myquiver(Blon,Blat,udir1'-udir',vdir1'-vdir','k');
56     end
57     title('Difference with release1 beta1')

  ViewVC Help
Powered by ViewVC 1.1.22