RuG/L04

Manuals

ll2dst

Description

derive a distance matrix for a set of locations given their longitude and latitude coordinates

Synopsis

ll2dst [-l filename] [-o filename] location-file

Options

-l filename
file with numbered labels
-o filename
output file

Purpose

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:

File with locations

The file with locations is a coordinate file with coordinates defined as longitude and latitude.

File with numbered labels

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.

Output file

The output file is a difference matrix file with distances defined in kilometres.