Changeset 11807
- Timestamp:
- 03/29/12 11:02:00 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/utils/Exp
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/utils/Exp/clicktoflowline.m
r9734 r11807 1 1 function clicktoflowline(index,x,y,u,v,filename) 2 %CLICKTOFLOWLINE create a flowline contour file (named 'filename') by clicking on a velocity field once.2 %CLICKTOFLOWLINE - create a flowline ARGUS file 3 3 % 4 % Usage: clicktoflowline(index,x,y,u,v,x0,y0,filename) 4 % create a flowline contour file (named 'filename') by clicking 5 % on a velocity field once (velocity must be plotted first) 5 6 % 6 % Ex: clicktoflowline(md.mesh.elements,md.mesh.x,md.mesh.y,md.inversion.vx_obs,md.inversion.vy_obs,'flowline1.exp') 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') 7 12 8 13 %Get click position 9 14 [x0,y0]=ginput(1); 10 15 16 %Get flowline 11 17 line=flowlines(index,x,y,u,v,x0,y0,200); 12 18 19 %plot 13 20 hold on 14 21 plot(line.x,line.y,'r-'); 15 22 23 %Write argus file 16 24 expwrite(line,filename);
Note:
See TracChangeset
for help on using the changeset viewer.