Heavy rain is forecast for western and northern parts of New Zealand, with a risk of severe gales down south.