Canadian Pacific Railway Ltd has reopened its flooded mainline track running from southern Saskatchewan through North Dakota, five days earlier than it expected, a CP spokesman said.

The track around the city of Minot in north-central North Dakota, was put back in service, Ed Greenberg said, and the first train has ran through the area.

The line linking Western Canada with the U.S. Midwest had been closed since June 20 when the rain-swollen Souris River began to burst its banks. CP, Canada's second biggest railway, said the track could be shut until around July 17.

Greenberg had no estimate available on the cost of the closure but said there was "an expense associated with rerouting and we incurred more miles".

Analysts have cut their earnings estimates for CP's second-quarter in recent weeks because of this and other line closures due to bad weather. CP is scheduled to release its financial results on July 27.

There is "considerable uncertainty" surrounding CP's earnings as the railway experienced service disruption "to a much greater extent that the rest of the Class 1 railroads", RBC Capital Markets analyst Walter Spracklin said in a note to clients. (Reuters)