Last change
on this file since 28275 was 24313, checked in by Mathieu Morlighem, 5 years ago |
merged trunk-jpl and trunk for revision 24310
|
File size:
615 bytes
|
Line | |
---|
1 | function clicktoflowline(index,x,y,u,v,filename)
|
---|
2 | %CLICKTOFLOWLINE - create a flowline ARGUS file
|
---|
3 | %
|
---|
4 | % create a flowline contour file (named 'filename') by clicking
|
---|
5 | % on a velocity field once (velocity must be plotted first)
|
---|
6 | %
|
---|
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')
|
---|
12 |
|
---|
13 | %Get click position
|
---|
14 | [x0,y0]=exp_ginput(1,options);
|
---|
15 |
|
---|
16 | %Get flowline
|
---|
17 | line=flowlines(index,x,y,u,v,x0,y0);
|
---|
18 |
|
---|
19 | %plot
|
---|
20 | hold on
|
---|
21 | plot(line.x,line.y,'r-');
|
---|
22 |
|
---|
23 | %Write argus file
|
---|
24 | expwrite(line,filename);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.