Scientists help wine vintners cope with a finicky grape.