NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/FCAST_1.2/matlab_cen/contour_fe.m

Revision 495 (checked in by cbc, 11 years ago)

Initial import of Stark code.

Line 
1 %-----------------------------------------------------------------------
2 % [smin,smax,ibw]=contour_fe(in,x,y,bnd,scalar,smin,smax,ibw)
3 % This function creates a color plot of data using
4 % Matlab5.1 commands
5 %-----------------------------------------------------------------------
6 function [smin,smax,ibw]=contour_fe(in,x,y,bnd,scalar,smin,smax,ibw)
7 fprintf(1,'Scalar Range: %f to %f\n',min(min(scalar)),max(max(scalar)))
8 %
9 % Set contour levels (if 5 arguments are sent to function)
10 %
11 if nargin == 5
12    smin=input('Enter min contour level desired: ');
13    smax=input('Enter max contour level desired: ');
14    ibw  =input('Enter the contour interval:      ');
15 end
16 %
17 % Generate Plot
18 %
19 clear cval;
20 cval=smin:ibw:smax;
21 bndo=plotbnd(x,y,bnd);
22 set(bndo,'Color','k')
23 hc=lcontour2(in,x,y,scalar,cval);
24 xlabel([num2str(smin),' to ',num2str(smax),' by ',num2str(ibw)])   
Note: See TracBrowser for help on using the browser.