clear all;close all;clc;

% addpath D:\OpenEarthTools\trunk\matlab\
% oetsettings('quiet');
% wlsettings

addpath p:\delta\wlsettings\;
wlsettings;
addpath p:\mctools\mctools\matlab\;

addpath P:\delta\svn.oss.deltares.nl\openearthtools\matlab\;
oetsettings;
mcsettings;

% [tt,hs,dt,Hm0,Tp] = bc_stormsurge_figure('nwaves',12,'plot',1,'h_max',2.96,'Hm0_max',5.7,'Tp_max',10.29);
[tt,hs,dt,Hm0,Tp] = bc_stormsurge_boundary('nwaves',12,'plot',1,'h_max',2.96,'Hm0_max',5.7,'Tp_max',10.29);


% hs2 = hs+1; %nu hs hoger met 1m, maar hij moet in de tijd verschuiven

% edit bc_stormsurge
%     'Tsim',32, ...
%     'Tpeak',32/2, ...

% edit xb_generate_waves
%     'Tsim',32, ...

% xbm_1d = xb_generate_model('bathy',{'x',xJ1d,'z',zJ1d',...
%                                'xgrid',{'dxmin',5}, ...
                               
% xbm_2d = xb_generate_model('bathy',{'x',xm,'y',ym,'z',zm,'crop',[x1 y1 w h],...
%                                'xgrid',{'dxmin',5}, ...
%                                'ygrid',{'dymin',20,'dymax',40,'area_size',0.8},...

xbtest = xb_generate_model('waves',{'Hm0',Hm0,'Tp',Tp,'mainang',330,'duration',dt},...
                       'tide',{'time' ,tt, 'front',hs, 'back', 0},...
                       'settings',{'tstart',0,'tstop',117000,'tintg',1200,'paulrevere',1}, ...
                       'write', true, ...
                       'path', 'D:\proj\JanJoost\adri\esmf\testXbeach\' ...
                       ); 

% d:\Coupling\stormconditions\
% 'tide',{'time',tt, 'front', hs, 'back', 0},...
% 'tide',{'time',tt, 'front',[hs hs],'back',[0 0]}
