derive a distance matrix for a set of locations given their longitude and latitude
coordinates
This program calculates the distance matrix of a set of locations, given
their coordinates, which must be defined in longitude and latitude.
Resulting distances are in kilometres. The results are not entirely
accurate due to two assumptions which are neither entirely accurate:
- earth is a perfect sphere;
- earth has a circumference of 40000km.
The file with locations is a
coordinate
file with coordinates defined as longitude and latitude.
If the option
-l is used to specify a
label file, the difference matrix for
that set of labels is created.
If no label file is specified, a
difference matrix for all locations is created, using the locations in
the order they are given in the file with locations.
The output file is a
difference matrix
file with distances defined in kilometres.