changes to netcdf writer.