index_to_coord-methods function

convert 1d indices to n-dimensional real world coordinates