<gh_stars>1-10
#!/usr/bin/python
import sys
import numpy
import math

f = open(sys.argv[1], 'rb') # opens the csv file
matrix = numpy.loadtxt(open(sys.argv[1],"rb"),delimiter=", ",skiprows=0)

sqrt = math.sqrt(matrix.shape[0])
matrix = matrix.reshape([sqrt,sqrt])

for i in range(matrix.shape[0]):
    for j in range(matrix.shape[1]):
        print "{} {} {}".format(i, j, float(matrix[i][j])/2500)
    print

#!/usr/bin/python
import sys
import numpy
import math

f = open(sys.argv[1], 'rb') # opens the csv file
matrix = numpy.loadtxt(open(sys.argv[1],"rb"),delimiter=", ",skiprows=0)

sqrt = math.sqrt(matrix.shape[0])
matrix = matrix.reshape([sqrt,sqrt])

for i in range(matrix.shape[0]):
    for j in range(matrix.shape[1]):
        print "{} {} {}".format(i, j, float(matrix[i][j])/2500)
    print
#!/usr/bin/python # opens the csv file