Problems passing an array to a function for 2d interpolation

Nice one. that bit is now fixed....

seems I have matlab in my head......