lass="string">'grid'</span>,<span class="string">'fvcom_grid'</span>);
0235 netcdf.putAtt(nc,salinity_varid,<span class="string">'coordinates'</span>,<span class="string">'lat lon'</span>);
0236 netcdf.putAtt(nc,salinity_varid,<span class="string">'type'</span>,<span class="string">'data'</span>);
0237 
0238 disp(<span class="string">'writing temperature attributes'</span>);
0239 temperature_varid=netcdf.defVar(nc,<span class="string">'temp'</span>,<span class="string">'NC_FLOAT'</span>,[nobc_dimid,siglay_d