Changes between Version 6 and Version 7 of udg/ecoms/dataserver/interfaces/matlab


Ignore:
Timestamp:
Apr 22, 2013 7:15:01 PM (9 years ago)
Author:
rodri
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/dataserver/interfaces/matlab

    v6 v7  
    4242
    4343{{{
    44 lon = lon{1}; 
     44lon = lon{1};
    4545lat = lat{1};
     46[nx,ny] = meshgrid(lon,lat);
     47nod = [nx(:)';ny(:)']';
    4648
    47 [nx,ny] = meshgrid(lon,lat);
    48 nod = [nx(:)';ny(:)']'; 
    49  
    5049datay1 = nan(1,size(nod,1));
    5150for ilat = 1:length(lat)
    52 inod = find(ismember(nod,[lon,repmat(lat(ilat),length(lon),1)],'rows') == 1);               
    53 datay1(:,inod) = nanmean(squeeze(data{1}(1,1,:,ilat,:)) - 273.15);
    54 end 
    55  
     51    inod = find(ismember(nod,[lon,repmat(lat(ilat),length(lon),1)],'rows') == 1);
     52    datay1(:,inod) = nanmean(squeeze(data{1}(1,1,:,ilat,:)) - 273.15);
     53end
     54
    5655drawStationsValue(datay1,nod,'marker','t','size',0.75,'colorbar','true','clim',[20 40],'resolution','high')
    5756colormap(jet)