Home » CEEFAX disks » telesoftware3.adl » 13_11_87/D\INFO

13_11_87/D\INFO

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware3.adl
Filename: 13_11_87/D\INFO
Read OK:
File size: 069A bytes
Load address: 0000
Exec address: 0000
File contents
Notes on the DISTANCE programme.

The distance programme will determine the shortest (great circle) distance
between any two points on the surface of the earth.

You are required to enter the place name (up to ten letters), followed by
the latitude and longitude. The more accurate your entries, the more
accurate will be your results, so use a good atlas. The programme is
designed to work to one minute (one sixtieth of one degree).

One minute of arc at the suface of the earth is by definition one nautical 
mile. The angle between the two points specified is determined by
spherical trigonometry in line 660, thus giving a distance in nautical
miles. This distance is then converted into the desired units.

The programme assumes, incorrectly, that the earth is a perfect sphere,
whereas the actual radius of the earth at the equator is a few miles
greater than the radius at the poles. The errors are, however, small.

The associated "LOADER" programme produces a data file of places and
co-ordinates which can then be loaded into the "DISTANCE" programme. It is
then only neccessary to enter place names to determine distance.

The programmes include a data file "CITIES".              

As an example run the main programme ("DIST"), load the data file "CITIES"
when prompted, and then type in LONDON then SYDNEY when prompted.

Data files can be read by using the "LOADER" programme.

Ensure that the data file "CITIES" is the last file on your disc, or a
CANT EXTEND error will occur if you attempt to add to this file.

The programme will produce a printout of distances, and of the contents of
data files if requested. Printer control codes are for an Epson compatible
printer.
00000000  4e 6f 74 65 73 20 6f 6e  20 74 68 65 20 44 49 53  |Notes on the DIS|
00000010  54 41 4e 43 45 20 70 72  6f 67 72 61 6d 6d 65 2e  |TANCE programme.|
00000020  0d 0d 54 68 65 20 64 69  73 74 61 6e 63 65 20 70  |..The distance p|
00000030  72 6f 67 72 61 6d 6d 65  20 77 69 6c 6c 20 64 65  |rogramme will de|
00000040  74 65 72 6d 69 6e 65 20  74 68 65 20 73 68 6f 72  |termine the shor|
00000050  74 65 73 74 20 28 67 72  65 61 74 20 63 69 72 63  |test (great circ|
00000060  6c 65 29 20 64 69 73 74  61 6e 63 65 0d 62 65 74  |le) distance.bet|
00000070  77 65 65 6e 20 61 6e 79  20 74 77 6f 20 70 6f 69  |ween any two poi|
00000080  6e 74 73 20 6f 6e 20 74  68 65 20 73 75 72 66 61  |nts on the surfa|
00000090  63 65 20 6f 66 20 74 68  65 20 65 61 72 74 68 2e  |ce of the earth.|
000000a0  0d 0d 59 6f 75 20 61 72  65 20 72 65 71 75 69 72  |..You are requir|
000000b0  65 64 20 74 6f 20 65 6e  74 65 72 20 74 68 65 20  |ed to enter the |
000000c0  70 6c 61 63 65 20 6e 61  6d 65 20 28 75 70 20 74  |place name (up t|
000000d0  6f 20 74 65 6e 20 6c 65  74 74 65 72 73 29 2c 20  |o ten letters), |
000000e0  66 6f 6c 6c 6f 77 65 64  20 62 79 0d 74 68 65 20  |followed by.the |
000000f0  6c 61 74 69 74 75 64 65  20 61 6e 64 20 6c 6f 6e  |latitude and lon|
00000100  67 69 74 75 64 65 2e 20  54 68 65 20 6d 6f 72 65  |gitude. The more|
00000110  20 61 63 63 75 72 61 74  65 20 79 6f 75 72 20 65  | accurate your e|
00000120  6e 74 72 69 65 73 2c 20  74 68 65 20 6d 6f 72 65  |ntries, the more|
00000130  0d 61 63 63 75 72 61 74  65 20 77 69 6c 6c 20 62  |.accurate will b|
00000140  65 20 79 6f 75 72 20 72  65 73 75 6c 74 73 2c 20  |e your results, |
00000150  73 6f 20 75 73 65 20 61  20 67 6f 6f 64 20 61 74  |so use a good at|
00000160  6c 61 73 2e 20 54 68 65  20 70 72 6f 67 72 61 6d  |las. The program|
00000170  6d 65 20 69 73 0d 64 65  73 69 67 6e 65 64 20 74  |me is.designed t|
00000180  6f 20 77 6f 72 6b 20 74  6f 20 6f 6e 65 20 6d 69  |o work to one mi|
00000190  6e 75 74 65 20 28 6f 6e  65 20 73 69 78 74 69 65  |nute (one sixtie|
000001a0  74 68 20 6f 66 20 6f 6e  65 20 64 65 67 72 65 65  |th of one degree|
000001b0  29 2e 0d 0d 4f 6e 65 20  6d 69 6e 75 74 65 20 6f  |)...One minute o|
000001c0  66 20 61 72 63 20 61 74  20 74 68 65 20 73 75 66  |f arc at the suf|
000001d0  61 63 65 20 6f 66 20 74  68 65 20 65 61 72 74 68  |ace of the earth|
000001e0  20 69 73 20 62 79 20 64  65 66 69 6e 69 74 69 6f  | is by definitio|
000001f0  6e 20 6f 6e 65 20 6e 61  75 74 69 63 61 6c 20 0d  |n one nautical .|
00000200  6d 69 6c 65 2e 20 54 68  65 20 61 6e 67 6c 65 20  |mile. The angle |
00000210  62 65 74 77 65 65 6e 20  74 68 65 20 74 77 6f 20  |between the two |
00000220  70 6f 69 6e 74 73 20 73  70 65 63 69 66 69 65 64  |points specified|
00000230  20 69 73 20 64 65 74 65  72 6d 69 6e 65 64 20 62  | is determined b|
00000240  79 0d 73 70 68 65 72 69  63 61 6c 20 74 72 69 67  |y.spherical trig|
00000250  6f 6e 6f 6d 65 74 72 79  20 69 6e 20 6c 69 6e 65  |onometry in line|
00000260  20 36 36 30 2c 20 74 68  75 73 20 67 69 76 69 6e  | 660, thus givin|
00000270  67 20 61 20 64 69 73 74  61 6e 63 65 20 69 6e 20  |g a distance in |
00000280  6e 61 75 74 69 63 61 6c  0d 6d 69 6c 65 73 2e 20  |nautical.miles. |
00000290  54 68 69 73 20 64 69 73  74 61 6e 63 65 20 69 73  |This distance is|
000002a0  20 74 68 65 6e 20 63 6f  6e 76 65 72 74 65 64 20  | then converted |
000002b0  69 6e 74 6f 20 74 68 65  20 64 65 73 69 72 65 64  |into the desired|
000002c0  20 75 6e 69 74 73 2e 0d  0d 54 68 65 20 70 72 6f  | units...The pro|
000002d0  67 72 61 6d 6d 65 20 61  73 73 75 6d 65 73 2c 20  |gramme assumes, |
000002e0  69 6e 63 6f 72 72 65 63  74 6c 79 2c 20 74 68 61  |incorrectly, tha|
000002f0  74 20 74 68 65 20 65 61  72 74 68 20 69 73 20 61  |t the earth is a|
00000300  20 70 65 72 66 65 63 74  20 73 70 68 65 72 65 2c  | perfect sphere,|
00000310  0d 77 68 65 72 65 61 73  20 74 68 65 20 61 63 74  |.whereas the act|
00000320  75 61 6c 20 72 61 64 69  75 73 20 6f 66 20 74 68  |ual radius of th|
00000330  65 20 65 61 72 74 68 20  61 74 20 74 68 65 20 65  |e earth at the e|
00000340  71 75 61 74 6f 72 20 69  73 20 61 20 66 65 77 20  |quator is a few |
00000350  6d 69 6c 65 73 0d 67 72  65 61 74 65 72 20 74 68  |miles.greater th|
00000360  61 6e 20 74 68 65 20 72  61 64 69 75 73 20 61 74  |an the radius at|
00000370  20 74 68 65 20 70 6f 6c  65 73 2e 20 54 68 65 20  | the poles. The |
00000380  65 72 72 6f 72 73 20 61  72 65 2c 20 68 6f 77 65  |errors are, howe|
00000390  76 65 72 2c 20 73 6d 61  6c 6c 2e 0d 0d 54 68 65  |ver, small...The|
000003a0  20 61 73 73 6f 63 69 61  74 65 64 20 22 4c 4f 41  | associated "LOA|
000003b0  44 45 52 22 20 70 72 6f  67 72 61 6d 6d 65 20 70  |DER" programme p|
000003c0  72 6f 64 75 63 65 73 20  61 20 64 61 74 61 20 66  |roduces a data f|
000003d0  69 6c 65 20 6f 66 20 70  6c 61 63 65 73 20 61 6e  |ile of places an|
000003e0  64 0d 63 6f 2d 6f 72 64  69 6e 61 74 65 73 20 77  |d.co-ordinates w|
000003f0  68 69 63 68 20 63 61 6e  20 74 68 65 6e 20 62 65  |hich can then be|
00000400  20 6c 6f 61 64 65 64 20  69 6e 74 6f 20 74 68 65  | loaded into the|
00000410  20 22 44 49 53 54 41 4e  43 45 22 20 70 72 6f 67  | "DISTANCE" prog|
00000420  72 61 6d 6d 65 2e 20 49  74 20 69 73 0d 74 68 65  |ramme. It is.the|
00000430  6e 20 6f 6e 6c 79 20 6e  65 63 63 65 73 73 61 72  |n only neccessar|
00000440  79 20 74 6f 20 65 6e 74  65 72 20 70 6c 61 63 65  |y to enter place|
00000450  20 6e 61 6d 65 73 20 74  6f 20 64 65 74 65 72 6d  | names to determ|
00000460  69 6e 65 20 64 69 73 74  61 6e 63 65 2e 0d 0d 54  |ine distance...T|
00000470  68 65 20 70 72 6f 67 72  61 6d 6d 65 73 20 69 6e  |he programmes in|
00000480  63 6c 75 64 65 20 61 20  64 61 74 61 20 66 69 6c  |clude a data fil|
00000490  65 20 22 43 49 54 49 45  53 22 2e 20 20 20 20 20  |e "CITIES".     |
000004a0  20 20 20 20 20 20 20 20  20 0d 0d 41 73 20 61 6e  |         ..As an|
000004b0  20 65 78 61 6d 70 6c 65  20 72 75 6e 20 74 68 65  | example run the|
000004c0  20 6d 61 69 6e 20 70 72  6f 67 72 61 6d 6d 65 20  | main programme |
000004d0  28 22 44 49 53 54 22 29  2c 20 6c 6f 61 64 20 74  |("DIST"), load t|
000004e0  68 65 20 64 61 74 61 20  66 69 6c 65 20 22 43 49  |he data file "CI|
000004f0  54 49 45 53 22 0d 77 68  65 6e 20 70 72 6f 6d 70  |TIES".when promp|
00000500  74 65 64 2c 20 61 6e 64  20 74 68 65 6e 20 74 79  |ted, and then ty|
00000510  70 65 20 69 6e 20 4c 4f  4e 44 4f 4e 20 74 68 65  |pe in LONDON the|
00000520  6e 20 53 59 44 4e 45 59  20 77 68 65 6e 20 70 72  |n SYDNEY when pr|
00000530  6f 6d 70 74 65 64 2e 0d  0d 44 61 74 61 20 66 69  |ompted...Data fi|
00000540  6c 65 73 20 63 61 6e 20  62 65 20 72 65 61 64 20  |les can be read |
00000550  62 79 20 75 73 69 6e 67  20 74 68 65 20 22 4c 4f  |by using the "LO|
00000560  41 44 45 52 22 20 70 72  6f 67 72 61 6d 6d 65 2e  |ADER" programme.|
00000570  0d 0d 45 6e 73 75 72 65  20 74 68 61 74 20 74 68  |..Ensure that th|
00000580  65 20 64 61 74 61 20 66  69 6c 65 20 22 43 49 54  |e data file "CIT|
00000590  49 45 53 22 20 69 73 20  74 68 65 20 6c 61 73 74  |IES" is the last|
000005a0  20 66 69 6c 65 20 6f 6e  20 79 6f 75 72 20 64 69  | file on your di|
000005b0  73 63 2c 20 6f 72 20 61  0d 43 41 4e 54 20 45 58  |sc, or a.CANT EX|
000005c0  54 45 4e 44 20 65 72 72  6f 72 20 77 69 6c 6c 20  |TEND error will |
000005d0  6f 63 63 75 72 20 69 66  20 79 6f 75 20 61 74 74  |occur if you att|
000005e0  65 6d 70 74 20 74 6f 20  61 64 64 20 74 6f 20 74  |empt to add to t|
000005f0  68 69 73 20 66 69 6c 65  2e 0d 0d 54 68 65 20 70  |his file...The p|
00000600  72 6f 67 72 61 6d 6d 65  20 77 69 6c 6c 20 70 72  |rogramme will pr|
00000610  6f 64 75 63 65 20 61 20  70 72 69 6e 74 6f 75 74  |oduce a printout|
00000620  20 6f 66 20 64 69 73 74  61 6e 63 65 73 2c 20 61  | of distances, a|
00000630  6e 64 20 6f 66 20 74 68  65 20 63 6f 6e 74 65 6e  |nd of the conten|
00000640  74 73 20 6f 66 0d 64 61  74 61 20 66 69 6c 65 73  |ts of.data files|
00000650  20 69 66 20 72 65 71 75  65 73 74 65 64 2e 20 50  | if requested. P|
00000660  72 69 6e 74 65 72 20 63  6f 6e 74 72 6f 6c 20 63  |rinter control c|
00000670  6f 64 65 73 20 61 72 65  20 66 6f 72 20 61 6e 20  |odes are for an |
00000680  45 70 73 6f 6e 20 63 6f  6d 70 61 74 69 62 6c 65  |Epson compatible|
00000690  0d 70 72 69 6e 74 65 72  2e 0d                    |.printer..|
0000069a
13_11_87/D\INFO.m0
13_11_87/D\INFO.m1
13_11_87/D\INFO.m2
13_11_87/D\INFO.m4
13_11_87/D\INFO.m5