source: issm/trunk/src/m/exp/clicktoflowline.m@ 23189

Last change on this file since 23189 was 23189, checked in by Mathieu Morlighem, 7 years ago

merged trunk-jpl and trunk for revision 23187

File size: 603 bytes
RevLine 
[5392]1function clicktoflowline(index,x,y,u,v,filename)
[11807]2%CLICKTOFLOWLINE - create a flowline ARGUS file
[5392]3%
[11807]4% create a flowline contour file (named 'filename') by clicking
5% on a velocity field once (velocity must be plotted first)
[5392]6%
[11807]7% Usage:
8% clicktoflowline(index,x,y,u,v,x0,y0,filename)
9%
10% Example:
11% clicktoflowline(md.mesh.elements,md.mesh.x,md.mesh.y,md.inversion.vx_obs,md.inversion.vy_obs,'flowline.exp')
[5392]12
[11807]13%Get click position
[5392]14[x0,y0]=ginput(1);
15
[11807]16%Get flowline
[23189]17line=flowlines(index,x,y,u,v,x0,y0);
[5392]18
[11807]19%plot
[5392]20hold on
21plot(line.x,line.y,'r-');
22
[11807]23%Write argus file
[5392]24expwrite(line,filename);
Note: See TracBrowser for help on using the repository browser.