I have a dataset of unit and lat-long coordinates. I would like to generate spatial a spatial weighting matrix. Automatically I have generated that matrix but I do not custom how far two points are closed enough for the software to decide that there is contiguity. Problem: I would like to generate different weighting matrices depending to the threshold i will consider as criteria of closedness. for example four points A(2,547; -5,7654), B(3,768; -5,2398), C(2,569; -6,6509), D(1,568; -7,6709). first I would like to generate distance matrix in kilometers second define a contiguity matrix depending to the radius i will choose
Thanks for your help in Python
Best