Traincentroids: make it a routine, for call through external programs