source: Roms_tools/Roms_Agrif/upwelling.m @ 1

Last change on this file since 1 was 1, checked in by cholod, 13 years ago

import Roms_Agrif

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