% program to load the data from the map file 
% Stef Boersen
% stef.boersen@rhdhv.com 
% 01-12-2017
%
%% load data
if f_load==1
    info        = ncinfo([data_dir,'t02_his.nc']);
    time_cross  = ncread([data_dir,'t02_his.nc'],'time');
    
    x_cor_cross = ncread([data_dir,'t02_his.nc'],'cross_section_x_coordinate');
    y_cor_cross = ncread([data_dir,'t02_his.nc'],'cross_section_y_coordinate');
    
    dis_cross = ncread([data_dir,'t02_his.nc'],'cross_section_discharge');
    
end
%%

% size(dis_cross)
% size(x_cor_cross)
% size(y_cor_cross)
% 
% ncread([data_dir,'t02_his.nc'],'cross_section_name')'
% info.Variables.Name
%% sandbox (miauw) 

% size(time_cross)
% size(x_cor_cross)
% size(y_cor_cross)
% size(dis_cross)
% 
% x_cor_cross(3,4)
% 
% stef1  = ncread([data_dir,'t02_his.nc'],'cross_section_name');
% info.Variables.Name
% stef1
% 
% size(time)
% size(time_cross)



