rid=netcdf.defVar(nc,<span class="string">'yc'</span>,<span class="string">'NC_FLOAT'</span>,nele_dimid);
0149 netcdf.putAtt(nc,yc_varid,<span class="string">'long_name'</span>,<span class="string">'zonal y-coordinate'</span>);
0150 netcdf.putAtt(nc,yc_varid,<span class="string">'units'</span>,<span class="string">'meters'</span>);
0151 
0152 disp(<span class="string">'writing lonc attributes'</span>);
0153 lonc_varid=netcdf.defVar(nc,<span class="string">'lonc'</span>,<span class="string">'NC_FLOAT'</span>