function [out] = turb_int(pat, spill, graph_path)
    if spill
        fs = load(strjoin(['/Volumes/home/test/calib/' pat '/clean/tracks/z001_t001.mat'], "")).tracks;
    else
        fs = load(strjoin(['/Volumes/home/test/calib/' pat '/tracks/z001_t001.mat'], "")).tracks;
    end
    U = [fs.u];
    X = [fs.x];
    N = 500;
    n = 0;
    us = [];
    ys = [];
    while N>n
        y = -cos(pi*n/N)*150;
        y1 = -cos(pi*(n+1)/N)*150;
        y2 = -cos(pi*(n-1)/N)*150;
    
    
        slice = (y2 < X(2,:) & X(2,:) < y1);
    
        umean = nanmean(U(1,slice));

        urms = rms(U(1,slice)-umean)/8.34;

    
        us(n+1) = urms;
        ys(n+1) = log((150 - abs(y))*8.34);
        %ys(n+1) = log(y+150);

        n = n+1;

    end
    scatter(ys, us);
    xlabel("$\log y^+$", "Interpreter", "latex")
    ylabel("$u'^{+}_{rms}$", "Interpreter", "latex")
    grid()
    
    filename = "turb_intdirty";
    if spill
        filename = "turb_intclean";
    end

    try
        saveas(gcf, strjoin([graph_path, pat, filename],"/")+".png")
    
        savefig(gcf, strjoin([graph_path, pat, filename], "/"))
        
    catch
        fprintf("couldnt save turb int\n");
    end
end