08-21-2014
Welcome lily-anne,
How would you expect to get the input?
It would seem to be a simple pair of subtractions, but the key is getting the two locations as data in the first place.
Robin
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I amtrying to write a script that would compute the distance between an "x" number of points. This is what I have come up with so far and it is not working. Can anyone modify it to make it work?
A=34.16597 B=-84.33244
C=34.2344 D=-84.29189
test "$A" -eq "$C" -o "$B" -eq "$D"
then
echo... (3 Replies)
Discussion started by: Ernst
3 Replies
2. UNIX for Dummies Questions & Answers
Need some advice and guidance for this UNIX beginner. Due to downsizing I have inherited the SysAdmin duties..(sigh). Please excuse and forgive me if I use the wrong terms below....
Situation:
We have UNIX ( Solaris 7/8/9( it varies) on Sun Ultra 10's) servers located at several global... (1 Reply)
Discussion started by: HikerLT
1 Replies
3. Shell Programming and Scripting
Hi,
I need a shell script that when run should be able to find the geographical location of the system.
can anyone help me with this?
Thanks,
Sundeep (1 Reply)
Discussion started by: eamani_sun
1 Replies
4. Programming
Hi power user,
I have this type of data (distance list):
file1
A B 10
B C 20
C D 50I want output like this
# A B C D
A 0 10 30 80
B 10 0 20 70
C 30 20 0 50
D 80 70 50 0 Which is a distance matrix
I have tried... (0 Replies)
Discussion started by: anjas
0 Replies
5. Shell Programming and Scripting
Hi all,
I have a data file like this
lat lon lat lon
12.000 25.125 14.235 25.012
14.200 81.000 25.584 25.014
45.023 25.365 25.152 35.222
I want to calculate distance and azimuth between this points
eg:- 12.000,25.125 and 14.235,25.012
I want to use awk programming... (3 Replies)
Discussion started by: chamara
3 Replies
6. Shell Programming and Scripting
hi,
i have a pair of latitude and longitude and i want to calculate the distance between these two points. In vbscript i achieved in the following way...Now i want to implement this in unix shell scripting....
<%
Dim lat1, lon1, lat2, lon2
const pi = 3.14159265358979323846
... (8 Replies)
Discussion started by: aemunathan
8 Replies
7. Shell Programming and Scripting
Hi,
I have a file as
ABC 1634230,1634284,1634349,1634468 1634272,1634301,1634356,1634534
What I want is to find distance between the numbers.. column 1 is the gene name and column 2 are starts and column 3 are their respective stops for the starts. So what I want is column 3 which has +1... (2 Replies)
Discussion started by: Diya123
2 Replies
8. Shell Programming and Scripting
Is there a way to find geographical location details of a server in shell scripting ? Say, which region server is located at etc. (5 Replies)
Discussion started by: blp_18
5 Replies
9. UNIX for Dummies Questions & Answers
Ksh is my default shell, but I want use the bash shell since its convenient to me.
When I type a long command line in a terminal, it does not wrap to the next line when I reach the end of the line and it wraps onto the same line, overwriting my prompt and the rest of what I typed.
$... (5 Replies)
Discussion started by: senthil.ak
5 Replies
LEARN ABOUT DEBIAN
geo::helmerttransform
Geo::HelmertTransform(3pm) User Contributed Perl Documentation Geo::HelmertTransform(3pm)
NAME
Geo::HelmertTransform
VERSION
1.14
SYNOPSIS
use Geo::HelmertTransform;
my ($lat, $lon, $h) = ...; # from OS map
my $airy1830 = Geo::HelmertTransform::datum('Airy1830');
my $wgs84 = Geo::HelmertTransform::datum('WGS84');
($lat, $lon, $h)
= Geo::HelmertTransform::convert_datum($airy1830, $wgs84,
$lat, $lon, $h);
DESCRIPTION
Perform transformations between geographical coordinates in different datums.
It is usual to describe geographical points in terms of their polar coordinates (latitude, longitude and altitude) referenced to a "datum
ellipsoid", which is used to approximate the Earth's geoid. The latitude, longitude and altitude of a given physical point vary depending
on which datum ellipsoid is in use. Unfortunately, a number of ellipsoids are in everyday use, and so it is often necessary to transform
geographical coordinates between different datum ellipsoids.
Two different datum ellipsoids may differ in the locations of their centers, or in their shape; and there may be an angle between their
equatorial planes or the meridians relative to which longitude is measured. The Helmert Transform, which this module implements, is a
linear transformation of coordinates between pairs of datum ellipsoids in the limit of small angles of deviation between them.
CONVENTIONS
Latitude is expressed in degrees, positive-north; longitude in degrees, positive-east. Heights (ellipsoid) and cartesian coordinates are in
meters.
FUNCTIONS
rad_to_deg RADIANS
Convert RADIANS to degrees.
deg_to_rad DEGREES
Convert DEGREES to radians.
geo_to_xyz DATUM LAT LON H
Return the Cartesian (X, Y, Z) coordinates for the geographical coordinates (LAT, LON, H) in the given DATUM.
xyz_to_geo DATUM X Y Z
Return the geographical (LAT, LON, H) coordinates for the Cartesian coordinates (X, Y, Z) in the given DATUM. This is an iterative
procedure.
convert_datum D1 D2 LAT LON H
Given geographical coordinates (LAT, LON, H) in datum D1, return the corresponding coordinates in datum D2. This assumes that the
transformations are small, and always converts via WGS84.
datum NAME
Return the datum of the given NAME. Currently implemented are:
Airy1830
The 1830 Airy ellipsoid to which the British Ordnance Survey's National Grid is referenced.
Airy1830Modified
The modified 1830 Airy ellipsoid to which the Irish Grid (as used by Ordnance Survey Ireland and Ordnance Survey Northern Ireland);
also known as the Ireland 1975 datum.
WGS84
The global datum used for GPS.
SEE ALSO
A guide to coordinate systems in Great Britain, http://www.gps.gov.uk/guidecontents.asp
Making maps compatible with GPS, http://www.osni.gov.uk/downloads/Making%20maps%20GPS%20compatible.pdf
AUTHOR AND COPYRIGHT
Written by Chris Lightfoot, team@mysociety.org
Copyright (c) UK Citizens Online Democracy.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-08-29 Geo::HelmertTransform(3pm)