NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 230

Show
Ignore:
Timestamp:
03/29/09 22:28:09
Author:
gdusek
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • DPWavesProc/trunk/DPWavesProc/adcp_matlab/specmultiplot.m

    r229 r230  
    105105end 
    106106 
    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!!! 
    109110newspec2d=zeros(size(spec2d)); 
    110111for i= 1:size(spec2d,1) 
     
    117118    newspec=zeros(size(oldspec)); 
    118119 
    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); 
    121124    end 
    122     for j = 47:180 
    123         newspec(:,j)=oldspec(:,181-(j-46)); 
     125    for j = 137:180 
     126        newspec(:,j)=oldspec(:,181-(j-136)); 
    124127    end 
    125128     
    126     %firstspec=newspec(:,91:180); 
    127     %secondspec=newspec(:,1:90); 
    128     %newspec=cat(2,firstspec,secondspec); 
    129129    if numdimensions == 3 
    130130        newspec2d(i,:,:)=newspec;  
     
    135135 
    136136Winfo.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 
    137145 
    138146%*************************************************************************