Symmetry properties of the dynamo equations for palaeomagnetism and geomagnetism