/[MITgcm]/MITgcm_contrib/enderton/Diagnostics/DiagUtility/draw_coast.m
ViewVC logotype

Annotation of /MITgcm_contrib/enderton/Diagnostics/DiagUtility/draw_coast.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue May 17 15:54:25 2005 UTC (20 years, 2 months ago) by molod
Branch: MAIN
CVS Tags: HEAD
Alternative coastline drawing script

1 molod 1.1 function [L] = draw_coast(fac)
2    
3     %load('/home/jmc/matlab/MATLAB/m_coasts.mat');
4     load('/u/u2/jmc/MATLAB/m_coasts.mat');
5    
6     X=ncst(:,1); Y=ncst(:,2);
7     for i=1:length(k)-1,
8     xl=X(k(i)+1:k(i+1)-1);
9     fk=finite(xl);
10     if any(fk),
11     yl=Y(k(i)+1:k(i+1)-1);
12     nx=length(xl);
13     L(i)=line(fac*xl,fac*yl);
14     end
15     end
16     set(L,'Color',[0 0 0],'LineWidth',2);
17     % set(L,'LineStyle','-');
18     return

  ViewVC Help
Powered by ViewVC 1.1.22