A script to calculate distances between elements of two csv files.
|
преди 3 години | |
---|---|---|
LICENSE | преди 3 години | |
README.md | преди 3 години | |
distance_matrix.py | преди 3 години |
A script to calculate distances between groups of coordinates in two csv files.
Python 3.xx
python distance_matrix.py FIRST_FILE.csv SECOND_FILE.csv
If you want to specify the name of the output file with the distances.
python distance_matrix.py FIRST_FILE.csv SECOND_FILE.csv --output OUTPUT_FILE_NAME.csv
If the coordinates are in columns with names other than 'lat' and 'lon', then you can specify the column names:
python distance_matrix.py FIRST_FILE.csv SECOND_FILE.csv --lat LATITUDE_COLUMN_NAME --lon LONGITUDE_COLUMN_NAME