Commit 6ce6ce18 authored by Pierre Cazenave's avatar Pierre Cazenave

Fix bug in creation of the NetCDF spectide file which was only revealed by...

Fix bug in creation of the NetCDF spectide file which was only revealed by running it on MATLAB 2012. The error lay in setting a two dimensional dimension when a NetCDF dimension is necessarily 1D only. This may or may not have been causing FVCOM v3.1.6 to crash
parent c59195a2
......@@ -91,7 +91,7 @@ netcdf.putAtt(nc,netcdf.getConstant('NC_GLOBAL'),'history','FILE CREATED using w
one_dimid=netcdf.defDim(nc,'one',1);
nobc_dimid=netcdf.defDim(nc,'nobc',nObcs);
tidal_components_dimid=netcdf.defDim(nc,'tidal_components',nComponents);
date_str_len_dimid=netcdf.defDim(nc,'DateStrLen',[26,nComponents]);
date_str_len_dimid=netcdf.defDim(nc,'DateStrLen',26);
% define variables and attributes
nobc_varid=netcdf.defVar(nc,'obc_nodes','NC_INT',nobc_dimid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment