Problems passing an array to a function for 2d interpolation

Why are you storing 10 rows and 10 columns of data in your 9 x 9 array? Does that comment really add anything useful? Or even correct?

Why are the arrays declared in loop()? Are you planning on changing them?

Why is tpso, containing byte sized values, an int array?

Why are the arrays not const?