function skill_bars(info,dirs)

ListNames = { ...
    'SkillDuneErosionLabSmall', 
    'SkillDuneErosionLabLarge', 
    'SkillDuneErosionField',
    'SkillRevetments'};

TestList = {{{'Deltaflume_M1263_III', {'Test-1', 'Test-2', 'Test-3', 'Test-4', 'Test-5'}}, ...
    ... {'Deltaflume_M1797', {'T01'}}, ...
    {'Deltaflume2006', {'T01', 'T02', 'T03', 'T04', 'DP01', 'DP02'}}, ...
    {'DeltaflumeLIP11D', {'2E'}}, ...
    {'GWK86', {'T01', 'T02', 'T03', 'T04', 'T05', 'T06'}}, ...
    {'GWK98', {'A9', 'B2', 'C2', 'F1', 'H2'}} ...
    }, ...
    {{'Scheldtflume_H4265', {'T01', 'T02', 'T02a', 'T03', 'T11', 'T12', 'T13'}}, ...
    {'Scheldtflume_M1819_I', {'T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T21', 'T22', 'T23', 'T24', 'T25', 'T26', 'T27', 'T28', 'T29'}}, ...
    ... {'Scheldtflume_M1819_III', {'T01'}}, ...
    {'Deltaflume_M1263_I', {'AT33', 'AT47', 'AT61', 'AT71', 'AT91', 'AT95', 'BT13', 'BT15', 'BT17', 'BT23', 'BT25', 'BT27', 'BT45', 'BT62', 'BT72', 'BT92', 'BT96', 'CT14', 'CT16', 'CT18', 'CT24', 'CT26', 'CT28', 'CT46', 'CT63', 'CT73', 'CT93', 'CT97', 'DT34', 'DT48', 'DT64', 'DT74', 'DT94', 'DT98'}}, ...
    {'Deltaflume_M1263_II', {'101', '105', '111', '115', '121', '122', '123', '124', '125', '126', '127', '128'}} ...
    },...
    {{'1976_storm_surge', {'raai3400', 'raai568', 'raai6050'}}, ...
    ... {'Assateague_Island', {''}} ...
    }, ...
    {{'Deltaflume_H4731', {'T11', 'T12', 'T14'}}, ...
    {'DeltaflumeH298', {'T1', 'T2', 'T3'}}, ...
    {'Deltaflume_M1797', {'T01', 'T02'}}, ...
    {'Scheldtflume_M1819_III', {'T01', 'T02', 'T03', 'T04'}} ...
    } ...
    };

SkillEaster = [...
    0.89
    0.95
    0.87
    0.64
    0.98
    0.95
    0.94
    0.96
    0.8
    0.86
    0.4
    0.84
    zeros(6,1)
    zeros(5,1)
    zeros(7,1)
    zeros(23,1)
    0.88
    0.59
    0.70
    0.74
    0.71
    0.27
    0.73
    0.71
    0.61
    0.73
    0.83
    0.69
    0.68
    0.61
    0.68
    0.61
    0.78
    0.69
    0.75
    0.42
    0.86
    0.78
    -0.17
    -1.53
    0.81
    0.85
    0.71
    0.85
    0.85
    0.64
    0.70
    0.91
    0.70
    -0.67
    0.56
    0.24
    0.54
    0.07
    0.93
    0.84
    0.79
    0.54
    -0.33
    0.72
    0.55
    0.41
    0.72
    0.65
    0.96
    zeros(3,1)
    0.58
    0.54
    0.79
    zeros(2,1)
    zeros(4,1)
    ];

nSkillTable = 1;
for iList = 1:length(TestList)
    nSkill  = 1;
    for iTest = 1:length(TestList{iList})
        [testName, testNrs] = TestList{iList}{iTest}{:};
        
        for iNrs = 1:length(testNrs)
       	    if iNrs == length(testNrs)
                SkillLabels{nSkill} = [testName];
            else
                SkillLabels{nSkill} = '';
            end
            %load(['P:\1002266-xbeach\Testbed\STORAGE\DATA\SKILL\netcdf\custom\zb\' testName '_' testNrs{iNrs} '.mat']);

            SkillBars(nSkill)   = bss(end);
            
            SkillCurrent(nSkillTable)     = bss(end);
            
            if iNrs == 1
                RowLabels{nSkillTable}  = [testName ' ' testNrs{iNrs}];
            else
                RowLabels{nSkillTable}  = testNrs{iNrs};
            end
            
            nSkill              = nSkill + 1;
            nSkillTable         = nSkillTable + 1;
            clear bss file r2 relbias revision sci
        end
    end
    
    figure; barh(SkillBars);
    xlim([-1 1])
    set(gca, 'YTick', 1:length(SkillBars), 'YTickLabel', SkillLabels);
    
    xb_write_plot(gcf, dirs.output, ListNames{iList});
    close
    clear nSkill SkillLabels SkillBars
end

SkillTable  = [SkillEaster SkillCurrent' SkillCurrent'-SkillEaster];

SkillTable(SkillTable(:,1)==0,3) = 0; 

RowLabels   = strrep(RowLabels,'_', ' ');

matrix2latex_skilltable(SkillTable, 'rowlabel', RowLabels, ...
    'collabel',{'Test name', 'BSS Easter release', 'Current BSS', 'Difference'}, ...
    'caption', 'Brier Skill Score comparison between WTI2017 and previous Easter release.',...
    'rowjustification', 'c', 'rowlabeljustification', 'r', 'environment', 'longtable', ...
    'format', '%.2f', 'filename', [dirs.output '\skill_comparison_table.tex'])
end
