Forecasting the weather isn’t easy — but understanding how it works helps us prepare for the future.