/[MITgcm]/MITgcm/verification/fizhi-cs-aqualev20/scripts/get_new_TUV.m
ViewVC logotype

Contents of /MITgcm/verification/fizhi-cs-aqualev20/scripts/get_new_TUV.m

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


Revision 1.1 - (show annotations) (download)
Mon Apr 3 20:55:29 2006 UTC (18 years, 1 month ago) by molod
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint58u_post, checkpoint58w_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58d_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58m_post, HEAD
New check-in for fizhi aquaplanet experiment to match the APE control (will replace fizhi-cs-aqualev10)

1 % load COS & SIN of rotation angle:
2 fid=fopen('proj_cs32_2uEvN.bin','r','b');
3 nx = 192;
4 ny = 32;
5 uvEN=fread(fid,nx*ny*2,'real*8'); fclose(fid);
6 uvEN=reshape(uvEN,[prod(size(uvEN))/2 2]);
7 AngleCS=uvEN(:,1);
8 AngleSN=uvEN(:,2);
9 CS = reshape(AngleCS,[nx ny]);
10 SN = reshape(AngleSN,[nx ny]);
11 for fi = 1:6
12 is = (fi - 1)*32;
13 nTUu(:,:,fi) = CS(is+[1:32],1:32);
14 nTUv(:,:,fi) = -SN(is+[1:32],1:32);
15 nTVu(:,:,fi) = SN(is+[1:32],1:32);
16 nTVv(:,:,fi) = CS(is+[1:32],1:32);
17 end
18
19 load ../set_001/TUV.mat
20
21 oTUu = TUu;
22 oTUv = TUv;
23 oTVu = TVu;
24 oTVv = TVv;
25
26 clear TUu TUv TVu TVv
27
28 figure(1)
29 subplot(1,1,1)
30 for fi = 1:6
31
32 iif = (fi-1)*4;
33 subplot(6,4,iif+1), surf(oTUu(:,:,fi)), view(2), shading flat
34 subplot(6,4,iif+2), surf(oTUv(:,:,fi)), view(2), shading flat
35 subplot(6,4,iif+3), surf(oTVu(:,:,fi)), view(2), shading flat
36 subplot(6,4,iif+4), surf(oTVv(:,:,fi)), view(2), shading flat
37
38 end
39
40 figure(2)
41 subplot(1,1,1)
42 for fi = 1:6
43
44 iif = (fi-1)*4;
45 subplot(6,4,iif+1), surf(nTUu(:,:,fi)), view(2), shading flat
46 subplot(6,4,iif+2), surf(nTUv(:,:,fi)), view(2), shading flat
47 subplot(6,4,iif+3), surf(nTVu(:,:,fi)), view(2), shading flat
48 subplot(6,4,iif+4), surf(nTVv(:,:,fi)), view(2), shading flat
49
50 end
51
52 TUu = nTUu;
53 TUv = nTUv;
54 TVu = nTVu;
55 TVv = nTVv;
56
57 save TUV_from_proj_cs32_2uEvN TUu TUv TVu TVv
58
59
60

  ViewVC Help
Powered by ViewVC 1.1.22