I have initialized a 2D array (235, 451) using
grid = np.zeros((235,451))
A snippet of the array is:
a = array(Counter({(87, 177): 347, (72, 191): 335, (88, 178): 318, (68, 188): 318, (67, 188): 318, (67, 187): 314}),dtype=object)
I want to populate the following indices with the counter values and leave all the other values without a value as zero.
e.g.
>>> grid[0,0] = 0
>>> grid[87,177]=347
>>> grid[72,191]=335
My overall goal will be to then contour this over a map. Thank you.
Counterinstance in annp.arrayin the first place? And you probably didn't initialize yourgridlike that...object)