Sha256: 99abd78a42681ef4375f6bb035f7ff679b0cc2bfb89bdbb1e20c13df82d3f049
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
#!/usr/bin/env ruby require 'gps_pvt' # runnable quick example to solve PVT by using RINEX NAV/OBS or u-blox ubx $stderr.puts <<__STRING__ Usage: #{__FILE__} GPS_file1 GPS_file2 ... As GPS_file, rinex_nav(*.YYn), rinex_obs(*.YYo), and ubx(*.ubx) format are currently supported. File format is automatically determined based on its extention described in above parentheses. Note: YY = last two digit of year. __STRING__ options = [] # check options ARGV.reject!{|arg| next false unless arg =~ /^--([^=]+)=?/ options << [$1.to_sym, $'] true } # Check file existence ARGV.each{|arg| raise "File not found: #{arg}" unless File::exist?(arg) } rcv = GPS_PVT::Receiver::new(options) puts rcv.header # parse RINEX NAV ARGV.reject!{|arg| next false unless arg =~ /\.\d{2}[nq]$/ rcv.parse_rinex_nav(arg) } # other files ARGV.each{|arg| case arg when /\.ubx$/ rcv.parse_ubx(arg) when /\.\d{2}o$/ rcv.parse_rinex_obs(arg) end }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gps_pvt-0.2.0 | exe/gps_pvt |