Given a set of coordination and values like
coors=np.array([[0,0],[1,1],[2,2]])
heat_values=[3,2,1]
I would like to generate a matrix like
mtx=[[3,0,0],
[0,2,0],
[0,0,1]]
Any functions can do the jobs?
Given a set of coordination and values like
coors=np.array([[0,0],[1,1],[2,2]])
heat_values=[3,2,1]
I would like to generate a matrix like
mtx=[[3,0,0],
[0,2,0],
[0,0,1]]
Any functions can do the jobs?