Rev | Line | |
---|
[1] | 1 | clear all |
---|
| 2 | close all |
---|
| 3 | |
---|
| 4 | tndx=1; |
---|
| 5 | nc=netcdf('roms_avg.nc'); |
---|
| 6 | h=nc{'h'}(:); |
---|
| 7 | y=squeeze(nc{'y_rho'}(:,2)); |
---|
| 8 | zeta=squeeze(nc{'zeta'}(tndx,:,:)); |
---|
| 9 | t=squeeze(nc{'temp'}(tndx,:,:,2)); |
---|
| 10 | [N,M]=size(t); |
---|
| 11 | theta_s=nc.theta_s(:); |
---|
| 12 | theta_b=nc.theta_b(:); |
---|
| 13 | hc=nc.hc(:); |
---|
| 14 | close(nc); |
---|
| 15 | |
---|
| 16 | zr = zlevs(h,zeta,theta_s,theta_b,hc,N,'r'); |
---|
| 17 | zr=squeeze(zr(:,:,1)); |
---|
| 18 | yr=reshape(y,1,M); |
---|
| 19 | yr=repmat(yr,[N 1])/1000; |
---|
| 20 | |
---|
| 21 | pcolor(yr,zr,t) |
---|
| 22 | shading flat |
---|
| 23 | colorbar |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.