A script to calculate distances between elements of two csv files.
Omar Vega Ramos 3080e80ed6 Remove python-argparse requirement | 2 years ago | |
---|---|---|
LICENSE | 2 years ago | |
README.md | 2 years ago | |
distance_matrix.py | 2 years ago |
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