A script to calculate distances between elements of two csv files.

Omar Vega Ramos 3080e80ed6 Remove python-argparse requirement 2 years ago
LICENSE 023b369323 Initial commit 2 years ago
README.md 3080e80ed6 Remove python-argparse requirement 2 years ago
distance_matrix.py ede205efa5 Adding distance_matrix.py 2 years ago

README.md

distance-matrix

A script to calculate distances between groups of coordinates in two csv files.

Requirement

Python 3.xx

Running the script

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