[Solved] find (i,j) location of closest (long,lat) values in a 2D array [closed]


A few foolish minutes later; I have worked out an answer I believe sufficient:

a = abs( LAT-chosen_lat ) + abs( LONG-chosen_lon )

i,j = np_unravel_index(a.argmin(), a.shape)

solved find (i,j) location of closest (long,lat) values in a 2D array [closed]