#!/opt/mbari/bin/ruby #Earth Centered Cartesian to Spherical coordinate transform described here: # https://microem.ru/files/2012/08/GPS.G1-X-00006.pdf Epoch = Time.utc(2014,5,11,14,23,55) #Iridium Epoch Platform = ARGV[0] Recipient = ARGV[1] || "mooringtrack" Sender = ARGV[2] || ENV['USER'] || `hostname` Server = ARGV[3] || 'mail' Domain = ARGV[4] || 'mbari.org' if not Platform or Platform.start_with? '-' this=File.basename $0 STDERR.puts < lastUpdate end raise "No IridiumLocation log entries found" unless match update match, frame unless lastUpdate puts "0x%x" % frame