
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\vaklodingen\'; % absolute
 OPT.ncfile                  = '*.nc';
 OPT.relativepath            = 'rijkswaterstaat\vaklodingen\'; % relative after OPT.basepath_local
 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://dtvirt5.deltares.nl/kml/rijkswaterstaat/vaklodingen/';
 OPT.make_kmz                = false;
 OPT.lowestLevel             = 17; % 16?
 OPT.tiledim                 = 256;
 OPT.clim                    = [-50 25];
 OPT.colorMap                = @(m)colormap_cpt('bathymetry_vaklodingen',m);
 OPT.colorSteps              = 500;
 OPT.colorbar                = true;
%OPT.datatype                = 'multibeam';
 OPT.description             = 'Rijkswaterstaat 20 m resolution vaklodingen (www.rws.nl)';
 OPT.descriptivename         = 'vaklodingen';
 OPT.lightAdjust             = [];
 OPT.serverURL               = [];
 OPT.quiet                   = true;
 OPT.calculate_latlon_local  = true;
 OPT.EPSGcode                = 28992;

nc_multibeam_to_kml_tiled_png(OPT);
