extract i and j parameters from file name and scale them to integers in 0..end