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
|
Rev | Line | |
---|
[5392] | 1 | function 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] | 17 | line=flowlines(index,x,y,u,v,x0,y0);
|
---|
[5392] | 18 |
|
---|
[11807] | 19 | %plot
|
---|
[5392] | 20 | hold on
|
---|
| 21 | plot(line.x,line.y,'r-');
|
---|
| 22 |
|
---|
[11807] | 23 | %Write argus file
|
---|
[5392] | 24 | expwrite(line,filename);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.