Prediction of the interplanetary magnetic field strength