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

Last change on this file was 24313, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24310

File size: 615 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
[24313]14[x0,y0]=exp_ginput(1,options);
[5392]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.