source: Roms_tools/Run/TEST_CASES/plot_overflow.m @ 1

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

import Roms_Agrif

File size: 1.6 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%
3%  Make 1 plot from the results of the OVERFLOW test case
4%
5%  Further Information: 
6%  http://www.brest.ird.fr/Roms_tools/
7
8%  This file is part of ROMSTOOLS
9%
10%  ROMSTOOLS is free software; you can redistribute it and/or modify
11%  it under the terms of the GNU General Public License as published
12%  by the Free Software Foundation; either version 2 of the License,
13%  or (at your option) any later version.
14%
15%  ROMSTOOLS is distributed in the hope that it will be useful, but
16%  WITHOUT ANY WARRANTY; without even the implied warranty of
17%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18%  GNU General Public License for more details.
19%
20%  You should have received a copy of the GNU General Public License
21%  along with this program; if not, write to the Free Software
22%  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23%  MA  02111-1307  USA
24%
25%  Copyright (c) 2002-2006 by Pierrick Penven
26%  e-mail:Pierrick.Penven@ird.fr 
27%
28%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29clear all
30close all
31
32tndx=3;
33%
34% Read data
35%
36nc=netcdf('roms_his.nc');
37h=nc{'h'}(:);
38y=squeeze(nc{'y_rho'}(:,2));
39zeta=squeeze(nc{'zeta'}(tndx,:,:));
40t=squeeze(nc{'temp'}(tndx,:,:,2));
41[N,M]=size(t);
42theta_s=nc.theta_s(:);
43theta_b=nc.theta_b(:);
44hc=nc.hc(:);
45close(nc);
46
47zr = zlevs(h,zeta,theta_s,theta_b,hc,N,'r');
48zr=squeeze(zr(:,:,1));
49yr=reshape(y,1,M);
50yr=repmat(yr,[N 1])/1000;
51
52contourf(yr,zr,t,(-0.1:0.02:1))
53caxis([0 1])
54shading flat
55colorbar
56title('Overflow sigma-t vertical section')
57
58
59
Note: See TracBrowser for help on using the repository browser.