


Display fetch relationship from fetch object
function show_fetch(f)
DESCRIPTION:
Display fetch relationship from fetch object
INPUT
f = fetch structure
OUTPUT:
plots
EXAMPLE USAGE
Author(s):
Geoff Cowles (University of Massachusetts Dartmouth)
Revision history
==============================================================================

0001 function show_fetch(f) 0002 % 0003 % Display fetch relationship from fetch object 0004 % 0005 % function show_fetch(f) 0006 % 0007 % DESCRIPTION: 0008 % Display fetch relationship from fetch object 0009 % 0010 % INPUT 0011 % f = fetch structure 0012 % 0013 % OUTPUT: 0014 % plots 0015 % 0016 % EXAMPLE USAGE 0017 % 0018 % Author(s): 0019 % Geoff Cowles (University of Massachusetts Dartmouth) 0020 % 0021 % Revision history 0022 % 0023 %============================================================================== 0024 0025 %------------------------------------------------- 0026 % set dimensions 0027 %------------------------------------------------- 0028 0029 [nTheta,nZeta] = size(f.fetch); 0030 0031 %------------------------------------------------- 0032 % option to plot 0033 %------------------------------------------------- 0034 figure 0035 scatter(f.xmesh,f.ymesh,5,f.hmesh); hold on; 0036 plot(f.xobs,f.yobs,'b+'); hold on; 0037 for i=1:nZeta 0038 plot(f.xobs+f.fetch(:,i)'.*cos(f.theta+pi),f.yobs+f.fetch(:,i)'.*sin(f.theta+pi),'k'); 0039 end; 0040 figure 0041 for i=1:nZeta 0042 plot((180/pi)*f.theta,f.fetch(:,i)/1000.,'k'); hold on; 0043 end; 0044 xlabel('Cartesian wind angle: e.g. pi/2 is south wind'); 0045 ylabel('fetch in km');