convert the particle indices in the scale definitions to C convention