Returns a 3d-array from a conversion-to-double function
a 3d-double-array of [locations][time point][value]
function to transform the type of the array T to Double