m=1;
for n=1:452
    u = u_ccmp_regrid(:,:,n);
    v = v_ccmp_regrid(:,:,n);
    m=m+1;
    
data(62292,5) = zeros;

i=1;
for j=1:174
    for k=1:358
        data(i,1) = id(j,k);
        data(i,2) = XI(j,k);
        data(i,3) = YI(j,k);
        data(i,4) = u(j,k);
        data(i,5) = v(j,k);
        i=i+1;
    end
end

filename = [datestrs(n,:) '.csv'];
csvwrite(filename,data);
end