% prepare nc file, setup all necessary models

transects   = [...
    12001650; ...
    13000454; ...
    13001525; ...
    16000950; ...
    16002870; ...
    17000684  ...
    ];
years       = [2006 2035 2100]; 

% fnv_transects2nc('fname','../data/kzd_2006.xyz', 'id', transects, 'year', 2006)
% fnv_transects2nc('fname','../data/kzd_2035.xyz', 'id', transects, 'year', 2006)
% fnv_transects2nc('fname','../data/kzd_2100.xyz', 'id', transects, 'year', 2006)

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_kzd_' num2str(years(iYear)) '.nc']);
    end
    fnv_create_xbeach_grid('JarkusID',transects(iTransect),'x',mergedX,'z',mergedZ,'years',years)
end