How the level of ripening of grapes is established before the harvest