%function analyze_this(info, dirs)

clear; clc;
info.runs = 'V4';
dirs.output = 'F:/400_Matlab/Testbed/V4/Ouput/nc/';
dirs.data = 'F:/400_Matlab/Testbed/V4/Input/Measurements/';

%% ===Load XBeach output===================================================
dims = xb_read_dims(dirs.output);
xb = xb_read_output(dirs.output, 'vars', {'zb'});

%%---V4--------------------------------------------------------------------
tb_V4Fullpage(dims,[xb.data(1,2).value(1,:,:); xb.data(1,2).value(end,:,:)],dirs);
tb_V4DeltaRMean(dims,xb.data(1,2).value,dirs);
tb_V4AMean(dims,xb.data(1,2).value,dirs);
tb_V4Bottom(dims,xb.data(1,2).value+0.45,dirs);