Modified attribute behaviour for netCDF save.