ancvar_put function

Write data to a netCDF file