
allclear

 OPT.make                    = true;
 OPT.copy2server             = false;
 % OPT.ncpath                  = 'http://opendap.deltares.nl/thredds/catalog/opendap/rijkswaterstaat/vaklodingen/catalog.html'; % absolute
 OPT.ncpath                  = 'F:\opendap\thredds\rijkswaterstaat\DienstZeeland\'; % absolute
 OPT.ncfile                  = '*.nc';
 OPT.referencedate           = '01-Jan-1964'; 
 % OPT.relativepath            = ['rijkswaterstaat\western_scheldt\DZ_EroSed_withRespectTo_',OPT.referencedate]; % vaklodingen;
 OPT.relativepath            = ['rijkswaterstaat\dienstzeeland\western_scheldt\DZ_EroSed_withRespectTo_',OPT.referencedate]; % DienstZeeland;
 OPT.referencepath           = ''; % determines name of top kml, doe snot work yet, only suffix _server or _local_machine works.
 OPT.basepath_local          = 'F:\_KML\';
 OPT.basepath_network        = [];
 OPT.basepath_www            = 'http://kml.deltares.nl/kml';
 OPT.make_kmz                = false;
 OPT.lowestLevel             = 17; % 16?
 OPT.tiledim                 = 256;
 OPT.clim                    = [-10 10];
 OPT.colorMap                = @(m) colormap_cpt('GMT_polar',m);
 OPT.colorSteps              = 500;
 OPT.colorbar                = true;
 OPT.templateVer             = 'KML_colorbar_template_vertical_Deltares.png'; 
 OPT.datatype                = 'multibeam';
 OPT.description             = ['Rijkswaterstaat 20 m resolution. Erosion/Sedimentation with respect to ',OPT.referencedate,' (www.rws.nl)' ];
 % OPT.descriptivename         = 'Vaklodingen: Western Scheldt';
 OPT.descriptivename         = 'DienstZeeland: Western Scheldt'; % DienstZeeland
 OPT.lightAdjust             = [];
 OPT.serverURL               = [];
 OPT.quiet                   = true;
 OPT.calculate_latlon_local  = true;
 OPT.EPSGcode                = 28992;

nc_multibeam_to_kml_tiled_png_WS_erosed_ref(OPT);
