get_global_i function

Compute global feature positions