
%cd G:\Wave_experiment\WERA_data\SPEC
for ihr = 00:23
    for imin = 00:20:40
        if ihr== 0
            if imin == 0
                filename = (['20101700000_cdn.SPEC'])
            else
                filename = (['201017000',int2str(imin),'_cdn.SPEC'])
            end
        elseif ihr < 10
            if imin == 0
                filename = (['20101700',int2str(ihr),'00_cdn.SPEC'])
            else
                filename = (['20101700',int2str(ihr),int2str(imin),'_cdn.SPEC'])
            end
        else
            if imin == 0
                filename = (['2010170',int2str(ihr),'00_cdn.SPEC']);
            else
                filename = (['2010170',int2str(ihr),int2str(imin),'_cdn.SPEC'])
            end
          readSpec(filename) 
        end
    end
  end 
