Changeset 230
- Timestamp:
- 03/29/09 22:28:09
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
DPWavesProc/trunk/DPWavesProc/adcp_matlab/specmultiplot.m
r229 r230 105 105 end 106 106 107 %this changes the coordinates from axis to compass 108 % NEED TO FIX THIS TO ADJUST FOR CHANGE IN DIRSPEC CODE!!!! 107 %this changes the coordinates from axis to compass (and from direction TO, 108 %to direction FROM) 109 % NEED TO ADJUST THIS TO AUTOMATICALLY ACOUNT FOR USER INPUTTED SM.dirs!!! 109 110 newspec2d=zeros(size(spec2d)); 110 111 for i= 1:size(spec2d,1) … … 117 118 newspec=zeros(size(oldspec)); 118 119 119 for j = 1:46 120 newspec(:,j)=oldspec(:,47-j); 120 %this is the NEW way to organize the code for SM.dirs=[0:2:358] (edited 121 %on 3/27/09 122 for j = 1:136 123 newspec(:,j)=oldspec(:,137-j); 121 124 end 122 for j = 47:180123 newspec(:,j)=oldspec(:,181-(j- 46));125 for j = 137:180 126 newspec(:,j)=oldspec(:,181-(j-136)); 124 127 end 125 128 126 %firstspec=newspec(:,91:180);127 %secondspec=newspec(:,1:90);128 %newspec=cat(2,firstspec,secondspec);129 129 if numdimensions == 3 130 130 newspec2d(i,:,:)=newspec; … … 135 135 136 136 Winfo.Spectrum.EMEPradial=newspec2d; 137 138 %Use this to organize spec IF SM.dirs=[-180:2:178] 139 %for j = 1:46 140 % newspec(:,j)=oldspec(:,47-j); 141 %end 142 %for j = 47:180 143 % newspec(:,j)=oldspec(:,181-(j-46)); 144 %end 137 145 138 146 %*************************************************************************