AminetAminet
Search:
84480 packages online
About
Recent
Browse
Search
Upload
Setup
Services

misc/sci/Distance2.lzh

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Computes distances between 2 points on earth
Author:Tapani Hoyssa (hoyssa at suomi24.fi)
Uploader:Tapani Hoyssa (hoyssa suomi24 fi)
Type:misc/sci
Version:2 (bug fixes)
Requires:Amos
Architecture:generic
Distribution:NoCD
Date:2001-06-06
Download:http://aminet.net/misc/sci/Distance2.lzh - View contents
Readme:http://aminet.net/misc/sci/Distance2.readme
Downloads:541

                  ======== PLEASE READ ========
Distance2 computes the distance, when latitudes and longitudes of two places are
given.
Just load Distance2.amos to your Amos or STOS, or Distance2.bas to some other
Basic,
and run it. Amos should not give any error messages, other may, I have not
tested.
Program asks latitudes  and longitudes of the places (totally four floating
point numbers)
and gives then the result in km. If you want to compute an other distance, give
Y 
at the Again-prompt. Latitudes may range from -90.0 to 90 (- is south,+ north)
and longitudes from -180 to 180 (now - means east ,+ west). No range checking
is performed, it is in your own respondibility.
Due to the bugs of the Amos compiler,the compiled version I have let away from
this archive.
If you anyway want use the compiled version, it can be found in
misc/sci/distance.lha,
but it makes noticeable error when the range crosses equator, 0-meridian, or
international
dateline(180-meridian).
Distance2 makes still error upto 20 km, but I have not found why.
New in version 2:You can enter angles using minutes, too.
So if you wish enter 61 degrees 20 minutes south latitude, just enter -61.30.
Tapani Hoyssa:phone: 00-358-3-3411603
               =====Last minute bonus==============
I have included a TurboCalc-sheet "Etaisyys.TCD" to the archive. It shows
distances to 
several famous places from Nokia, Finland (my hometown).
You Can enter your own places to the sheet and the dist. is shown in column I.
                   column
Placename            A     |
Latitude,degrees     B     |
Latitude,minutes     C     ---- You can enter here your own values
Longitude,degrees    D     |
Longitude,minutes    E     |
Latitude,absolute    F      \
Longitude,absolute   G       ----  These you can not alter
Intermediate result   H      /
Place, where the distance is computed from:cells A17-E17.This you can alter too
Earth radius :cell B18. You can change this to miles, so you will
get the results in miles, if you change it to light-years, you get results
in  light-years, if you change it to nautical miles you get the results in
nautical miles,
etc...
The sheet is in Finnish only, sorry.


Contents of misc/sci/Distance2.lzh
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 2232    7846  28.4% -lh5- b9e6 Jan 12  1991 Etaisyys.tcd
[unknown]                  264     468  56.4% -lh5- 8d49 Jan 12  1991 Etaisyys.tcd.info
[generic]                  997    1866  53.4% -lh5- 677d Oct 28  2000 Distance2.amos
[generic]                  798    1444  55.3% -lh5- 6dfe Oct 28  2000 Distance2.bas
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         4 files    4291   11624  36.9%            Jun  6  2001

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>