Researchers can now predict the conditions that precede a bolt of lightning out of the blue.