source: altifloat/matlab_toolbox/script_plot.m @ 160

Last change on this file since 160 was 140, checked in by jbrlod, 9 years ago

modify matlab function to prepare exp model

File size: 548 bytes
Line 
1if ~exist('uvb')
2uvb=load(['../exp_forw_dan/uv_bck_dan.dat']);
3end
4filelonlat='../../data/data/MODEL_CYCO/uveta_cyco1_2013090112.nc';
5lon=ncread(filelonlat,'lon');
6lat=ncread(filelonlat,'lat');
7[Lon,Lat]=meshgrid(lon,lat);
8it=1:2:25
9nlon=length(unique(uvb(:,2)));
10nlat=length(unique(uvb(:,3)));
11ntime=length(unique(uvb(:,1)));
12Ub=reshape(uvb(:,end-1),nlat,nlon,ntime);
13Vb=reshape(uvb(:,end),nlat,nlon,ntime);
14
15for i=it
16Hb=quiver(Lon,Lat,squeeze(Ub(:,:,i)),squeeze(Vb(:,:,i)),'b');
17axis([35.5 36 34.5 35.5])
18title(['it=' int2str(i)]);
19pause(0.2)
20end
Note: See TracBrowser for help on using the repository browser.