%function analyze_this(info, dirs)

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

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

%%---V2--------------------------------------------------------------------
tb_V2Fullpage(dims,[xb.data(1,2).value(1,:,:); xb.data(1,2).value(end,:,:)],dirs);
tb_V2DeltaRMean(dims,xb.data(1,2).value,dirs);
tb_V2AMean(dims,xb.data(1,2).value,dirs);
tb_V2Bottom(dims,xb.data(1,2).value+0.45,dirs);