Index of /~jstock/Ge161programs
Name Last modified Size Description
Parent Directory -
Ge161.stereonetprobs.pdf 15-Oct-2009 19:34 108K
Ge161PS5-2008.pdf 10-Nov-2008 17:21 126K
Instructions.pdf 29-Oct-2008 17:13 13K
PS5.2008.programs.directions.pdf 10-Nov-2008 18:12 56K
linux32/ 25-Oct-2007 12:25 -
short_linux_intro.pdf 03-Oct-2009 21:37 61K
unix/ 25-Oct-2007 12:25 -
This directory contains Ge161 computer programs for summing rotations and rotating data points.
Please copy these executable files to your own directory and run them there.
Use the ones from the Linux32 directory if you are on 32-bit Linux, and the ones from the Unix directory if you are on Unix. We do not have versions compiled for 64 bit Linux.
Once you have the files and you are in your own directory, you need to change the permissions as follows:
chmod +x rotate
chmod +x sumrot
Note that depending on your computer system you may have to call these programs sumrot.exe, rotate.exe, or ./sumrot.exe and ./rotate.exe
So try all of these as needed.
Here are examples of the input and output:
***************
computer% ./rotate
This program rotates a point by a given rotation.
Enter latitude,longitude, and angle of the rotation
11., 105., 22.
Enter latitude and longitude of the point to be rotated
44., 67.
rotation entered point entered
LAT 11.0000 44.0000
LONG 105.0000 67.0000
ANGLE 22.0000
final position of point after rotation is at lat 29.3928, long 59.1131
computer% ./sumrot
This program sums two rotations to give the equivalent rotation.
Enter latitude,longitude, and angle of rotation number 1
44., 66., 35.
This program sums two rotations to give the equivalent rotation.
Enter latitude,longitude, and angle of rotation number 2
12., 24., -9.
**rotations entered** 1 2
LAT 44.0000 12.0000
LONG 66.0000 24.0000
ANGLE 35.0000 -9.0000
RESULTING POLE ANGLE
45.0454 84.4453 29.7353
*****************
NOTE: BE CAREFUL TO USE LONGITUDE VALUES BETWEEN -180 AND +180 (so
that a longitude of 240 E is entered as -120).
Save these instructions since you may want to use these programs
for future homework assignments.