e_dimid = netcdf.defDim(nc, <span class="string">'nele'</span>, nElems);
0083 
0084 <span class="comment">% variables and attributes</span>
0085 z0b_varid = netcdf.defVar(nc, <span class="string">'z0b'</span>, <span class="string">'NC_FLOAT'</span>, nele_dimid);
0086 netcdf.putAtt(nc, z0b_varid, <span class="string">'long_name'</span>, <span class="string">'bottom roughness'</span>);
0087 netcdf.putAtt(nc, z0b_varid, <span class="string">'units'</span>, <span class="string">'m'</span>);
0088 netcdf.putAtt(n