Airlines have their own guidelines but ours are to avoid yellow and worse returns on the weather radar by at least 20nm.
This is, of course, almost impossible in many parts of the world unless you leave the aircraft in the hangar. The area around where the Air Asia was lost is one of them.