added example on how to write a netCDF file using netCDF4