Kjørte mergesvn på "gpst.gpxfix"-branchen:
[gpstools.git] / tilgps
blob5281041a77b32719120e109561a133fd1ced703c
1 #!/usr/bin/perl -w
3 # $Id$
4 # Converts gg°mm'ss.sss" to gg°mm.mmmmm'
6 use strict;
8 if ($#ARGV < 2) {
9 die(<<END);
11 Syntax: $0 degrees minutes secons
13 Converts gg°mm'ss.sss" to gg°mm.mmmmm'
14 Decimal values can be used.
16 END
19 my ($Deg, $Min, $Sec) = @ARGV;
20 my $new_min = $Min+($Sec/60);
22 print("$Deg°$new_min'\n");
24 __END__