Added ability to write global NetCDF attributes.