% main program to make figures of the output, the plotoption also give 
% the difference between the settings
%
% Stef Boersen
% stef.boersen@rhdhv.com 
% 17-11-2017

% disclaimer
% this program is specificially made for the current locations of the grids. 
%% 
clearvars
close all 
%%
plotoption =3   % 1 figure suspended sediment transport + difference 
                % 2 figure bedload load sediment transport + difference
                % 3 figur flow velocities + difference
                % 4 figure total sediment transport + difference
                % 5 figure water depth and difference
                % 6 figure discharge and difference
                % 7 figure bedlevel and difference
                % 8 figure of slope and difference 
%% Settings 
f_sav  = 1; % index om het figuur op te slaan
%f_reeks= 0; % index om een tijdreeks aan figuren op te slaan (indien van toepassing) 
%f_mean = 0; % index to average the results if required 
f_load = 1; % index if you want to reload the data otherwise the last load is used
f_debug= 1; % flag if you want to work in debug mode 
%f_tit  = 1; % index for title

id_time= -1; %361; % the time index  , -1: last on map-file
%id_lay=9; % layer index (10 is top layer, 1 is bottom layer) 
%id_reeks=[1 4];
%id_cross_x= 210; % x index of cross section in y direction
%id_cross_y= 70;  % y index of cross section 

%% names
tit_text='Engelund-Hansen: ';
%% paths 
%data_dir ='../dflowfmoutput/t02_map.nc';
data_dir ='../dflowfmoutput/';
fig_dir  ='../doc/figures/'; 

%% load data 
    Z10_load;
    Z11_load;
    
%% plotoption
if plotoption==1
    P01_plotoption1
elseif plotoption==2
    P02_plotoption2
elseif plotoption==3
    P03_plotoption3
elseif plotoption==4
    P04_plotoption4
elseif plotoption==5
    P05_plotoption5
elseif plotoption==6
    P06_plotoption6
elseif plotoption==7
    P07_plotoption7
elseif plotoption==8
    P08_plotoption8 
end

%% sandbox

