Heavy rain has sparked chaos on roads and railways for the second time in recent days.

Traffic Scotland confirmed the A77 in Ayrshire was shut southbound at Bellfield and drivers were being asked to take an alternative route.

And the agency said that the A9 was closed in both directions for at least 45 minutes near Dunkeld in Perthshire.

Police Scotland warned all motorists in west central Scotland to take care.

Fire crews were alerted just before 4pm on Wednesday to reports of flooding affecting the Dundonald, Ayr, Stewarton and Prestwick areas.

A spokeswoman said: "Firefighters worked alongside emergency service and local authority partners to remove water affecting residential properties and are no longer in attendance at any of the locations."

Traffic Scotland also warned motorists in Glasgow to be wary of surface water across the city.

For a time, ScotRail closed the line between  Barrhead and Kilmarnock has closed the line.

It tweeted: "Train services between Glasgow Central and Barrhead will be cancelled, delayed or revised as a result of this. Staff are en route to review the situation."

The company later tweeted that it had re-started services.

The disruption comes after the weather caused similar problems in the area on Sunday, forcing residents to be evacuated from their homes. 

Rain had been ferocious in Kilmaurs, just outside Kilmarnock.