A northbound Canadian Pacific Railway Ltd train derailed near Windermere, British Columbia, sending 16 cars loaded with coal off the tracks, a spokesman for the rail company said.

All the cars were upright, no coal was spilled and there were no injuries.

The Transportation Safety Board of Canada, which previously said 19 cars had derailed, has sent an investigator to the scene.

CP spokesman Ed Greenberg said no environmental or public safety issues had been identified following the derailment. He said crews were carrying out full track repairs and inspection.

Rail safety has come under heavy scrutiny in Canada following a disastrous accident this summer when a runaway train carrying crude oil derailed and exploded in the heart of Lac Megantic, Quebec, killing 47 people. (Reuters)