Changeset 840
- Timestamp:
- 06/08/09 12:10:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/DataProcessing/addtrack.m
r33 r840 2 2 %ADDTRACK - modify a map to take values of a track 3 3 % 4 % This routine modif ya map to improve it with values of tracks.4 % This routine modifies a map to improve it with values of tracks. 5 5 % This output map has more values than the input one so that the values 6 6 % of the tracks are relevant. 7 % x_m1 and y_m1 are two vector containing the coordinates of the matrix7 % x_m1 and y_m1 are two vectors containing the coordinates of the matrix 8 8 % the distance between two points must be the same everywhere 9 9 % values1 is a matrix of size (y_m1-1)*(x_m1-1) … … 52 52 53 53 %Calculate the multiplicate factor for the new values: 54 mult=round((x_m1(2)-x_m1(1))/(1*dist_av)); 54 %mult=round((x_m1(2)-x_m1(1))/(1*dist_av)); 55 mult=3; 55 56 56 57 %Plug the values in the new multiplied matrix … … 101 102 %Loop over the points of the track 102 103 nel=size(track_values,1); 104 fprintf('\n%s',' track processing progress 0.0 % '); 105 disp(''); 103 106 for i=1:nel; 104 107 if mod(i,1000)==0, 105 disp(sprintf('\r%s%.2f%s',' track processing progress ',i/nel*100,' %')); 108 fprintf('\b\b\b\b\b\b\b') 109 fprintf('%5.2f%s',i/nel*100,' %'); 106 110 end 107 111
Note:
See TracChangeset
for help on using the changeset viewer.