The physics of weather forecasting