% prepare nc file, setup all necessary models

transects   = [2000180 3000140 3000580 4000400 5004844];% 6003101]; %6003101; %
years       = 2100;%[2035 2100]; 

% fnv_transects2nc('fname','../data/wadsea_2012.xyz', 'id', transects, 'year', 2012)
% fnv_transects2nc('fname','../data/wadsea_2035.xyz', 'id', transects, 'year', 2012)
% fnv_transects2nc('fname','../data/wadsea_2100.xyz', 'id', transects, 'year', 2012)

for iTransect = 1:numel(transects)
    mergedX = {};
    mergedZ = {};
    XRange  = {};
    for iYear = 1:numel(years)
        [mergedX{iYear}, mergedZ{iYear}, XRange{iYear}] = fnv_merge_jarkus_model_data('JarkusID',transects(iTransect),'JarkusURL',['transects_' num2str(years(iYear)) '.nc']);
    end
    fnv_create_xbeach_grid('JarkusID',transects(iTransect),'x',mergedX,'z',mergedZ,'years',years)
end