save_nc function

Save a tag dataset to a netCDF file.