gps_pvt 0.8.5 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65f27faf8bc6c61e51bd06217b50fad55277e59278c687971a4b3bd83e218603
4
- data.tar.gz: 3d56b37228725e36d0edc6e5b1a2a2d2a2f1b42305124aa1abec8280253a0c48
3
+ metadata.gz: e9977db11c202c0e16e0db9a06a91419011732835f8d406194f4663342e79eef
4
+ data.tar.gz: 485793ee595d5245e383f70de03efd77f98f1e4228ba74b782c80fb2d0e06946
5
5
  SHA512:
6
- metadata.gz: 51de2010ed26249277bccac04f2297877b14772c66d406d7b02d81f425ebd4258c56bb8f7f6919ef04db678bae78e803058361509b0dde3c267fe3e454d47e77
7
- data.tar.gz: 90f2ffc8892553c8cf381fbeec93dabb1458dbb841b1485df47cf4482a286e1c8f1e971bded03a71c0ddc37d82717ab2b63f34d3ea049a691de9188b02263950
6
+ metadata.gz: ee59dd138de2243ea47a170c8d0724803fb3a5e19b28b5fe360649614c827b020000dc264dfd810b48346cfb3ddd0929925633d9769848a782ee6c65feeb0143
7
+ data.tar.gz: 63230d1fee5eadb80487df64d679300144a457efaaa6f9874a6574bb600c47307f4cedab607385d9bfd73a5c43e0e066f22ee09ccd0b81a6294d688c753d3e08
data/README.md CHANGED
@@ -32,7 +32,7 @@ An attached executable is useful. After installation, type
32
32
 
33
33
  $ gps_pvt file_or_URI(s)
34
34
 
35
- The format of file is automatically determined with its extension, such as .ubx will be treated as UBX format. A compressed file of .gz or .Z can be specified directly (decompression is internally performed). URI such as http(s)://... and ftp://, and serial port (COMn for Windows and /dev/tty* for *NIX, version >= 0.8.0) are also acceptable. Moreover, Ntrip URI of ntrip://(username):(password)@(caster_host):(port)/(mount_point), for exmaple, ```ntrip://test%40example.com:none@rtk2go.com:2101/NAIST-UBX``` (%40 is recognized as '@') is supported (version >= 0.8.4). If you want to specify the file format, instead of file_or_URI(s), use the following arguments:
35
+ The format of file is automatically determined with its extension, such as .ubx will be treated as UBX format. A compressed file of .gz or .Z can be specified directly (decompression is internally performed). URI such as http(s)://... and ftp://, and serial port (COMn for Windows and /dev/tty* for *NIX, version >= 0.8.0) are also acceptable. Moreover, Ntrip URI of ntrip://(username):(password)@(caster_host):(port)/(mount_point), for exmaple, ```ntrip://test%40example.com:none@rtk2go.com:2101/NAIST-UBX``` (%40 is recognized as '@') is supported (version >= 0.8.4), and its content format can be automatically determined (version >= 0.9.0). If you want to specify the file format, instead of file_or_URI(s), use the following arguments:
36
36
 
37
37
  | specification | recoginized as |
38
38
  ----|----
@@ -42,6 +42,7 @@ The format of file is automatically determined with its extension, such as .ubx
42
42
  | --sp3=file_or_URI | [Standard Product 3 Orbit Format](https://files.igs.org/pub/data/format/sp3c.txt) (supported gps_pvt version >= 0.6.0) |
43
43
  | --antex=file_or_URI | [Antenna Exchange Format](https://igs.org/wg/antenna#files) (supported gps_pvt version >= 0.6.0) |
44
44
  | --rinex_clk=file_or_URI | [RINEX clock](https://files.igs.org/pub/data/format/rinex_clock304.txt) file (supported gps_pvt version >= 0.7.0) |
45
+ | <a name=opt_rtcm3>--rtcm3=file_or_URI</a> | [RTCM 10403.x](https://rtcm.myshopify.com/collections/differential-global-navigation-satellite-dgnss-standards), ephemeris and MSM7 are used. (supported gps_pvt version >= 0.9.0) |
45
46
 
46
47
  Since version 0.2.0, SBAS and QZSS are supported in addition to GPS. Since version 0.4.0, GLONASS is also available. QZSS ranging is activated in default, however, SBAS is just utilized for ionospheric correction. GLONASS is also turned off by default. If you want to activate SBAS or GLONASS ranging, "--with=(system or PRN)" options are used with gps_pvt executable like
47
48
 
@@ -156,7 +157,7 @@ Utility to convert observation into u-blox ubx format and dump standard input. A
156
157
 
157
158
  $ gps2ubx file_or_URI(s) (options) > out.ubx
158
159
 
159
- saves resultant into out.ubx by using redirection. The shared options with gps_pvt executable are [rinex_obs](#opt_rinex_obs), [rinex_nav](#opt_rinex_nav), [ubx](#opt_ubx), and [online_ephemeris](#opt_online_ephemeris). In addition, the following options are available.
160
+ saves resultant into out.ubx by using redirection. The shared options with gps_pvt executable are [rinex_obs](#opt_rinex_obs), [rinex_nav](#opt_rinex_nav), [ubx](#opt_ubx), [rtcm3](#opt_rtcm3) and [online_ephemeris](#opt_online_ephemeris). In addition, the following options are available.
160
161
 
161
162
  | key | value | comment | since |
162
163
  ----|----|----|----
data/exe/gps2ubx CHANGED
@@ -9,14 +9,15 @@ require 'gps_pvt/ubx'
9
9
 
10
10
  $stderr.puts <<__STRING__
11
11
  Usage: #{__FILE__} GPS_file ... > as_you_like.ubx
12
- As GPS_file, only rinex_obs(*.YYo) is currently supported.
12
+ As GPS_file, rinex_obs(*.YYo) and rtcm3 stream are supported.
13
13
  (YY = last two digit of year)
14
14
  File format is automatically determined based on its extention described in above parentheses.
15
15
  If you want to specify its format manually, command options like --rinex_obs=file_name are available.
16
16
  Supported RINEX versions are 2 and 3.
17
17
  RXM-RAWX and RXM-SFRBX are included in output UBX if corresponding file(s) is given.
18
18
  A file having additional ".gz" or ".Z" extension is recognized as a compressed file.
19
- Major URL such as http(s)://... or ftp://... is acceptable as an input file name.
19
+ Major URL such as http(s)://... or ftp://... is acceptable as an input file name.
20
+ Ntrip specified in URI as ntrip://(username):(password)@(caster_host):(port)/(mount_point) is also supported, and its format is automatically detected.
20
21
  __STRING__
21
22
 
22
23
  options = []
@@ -41,16 +42,16 @@ files.collect!{|fname, ftype|
41
42
  when /\.\d{2}[nhqg](?:\.gz)?$/; :rinex_nav
42
43
  when /\.\d{2}o(?:\.gz)?$/; :rinex_obs
43
44
  when /\.ubx$/; :ubx
44
- else
45
- raise "Format cannot be guessed, use --(format, ex. rinex_obs)=#{fname}"
46
45
  end
47
46
  fname = proc{
48
47
  next fname if File::exist?(fname)
49
48
  if uri = URI::parse(fname) and !uri.instance_of?(URI::Generic) then
49
+ ftype ||= uri.read_format if uri.instance_of?(URI::Ntrip)
50
50
  next uri
51
51
  end
52
52
  raise "File not found: #{fname}"
53
53
  }.call
54
+ raise "Format cannot be guessed, use --(format, ex. rinex_obs)=#{fname}" unless ftype
54
55
  [fname, ftype]
55
56
  }
56
57
 
@@ -101,6 +102,7 @@ files.each{|fname, ftype|
101
102
  case ftype
102
103
  when :ubx; rcv.parse_ubx(fname){}
103
104
  when :rinex_obs; rcv.parse_rinex_obs(fname){}
105
+ when :rtcm3; rcv.parse_rtcm3(fname){}
104
106
  end
105
107
  }
106
108
 
data/exe/gps_pvt CHANGED
@@ -11,11 +11,11 @@ As GPS_file, rinex_nav(*.YYn, *.YYh, *.YYq, *.YYg), rinex_obs(*.YYo), ubx(*.ubx)
11
11
  (YY = last two digit of year)
12
12
  File format is automatically determined based on its extention described in above parentheses.
13
13
  If you want to specify its format manually, command options like --rinex_nav=file_name are available.
14
- Other than --rinex_nav, --rinex_obs, -rinex_clk, --ubx, --sp3 or --antex are supported.
14
+ Other than --rinex_nav, --rinex_obs, --rinex_clk, --ubx, --sp3, --antex or --rtcm3 are supported.
15
15
  Supported RINEX versions are 2 and 3.
16
16
  A file having additional ".gz" or ".Z" extension is recognized as a compressed file.
17
17
  Major URI such as http(s)://... or ftp://..., and serial port (COMn for Windows, /dev/tty* for *NIX) is acceptable as an input file name.
18
- Ntrip specified in URI as ntrip://(username):(password)@(caster_host):(port)/(mount_point) is also supported.
18
+ Ntrip specified in URI as ntrip://(username):(password)@(caster_host):(port)/(mount_point) is also supported, and its format is automatically detected.
19
19
  __STRING__
20
20
 
21
21
  options = []
@@ -25,7 +25,7 @@ misc_options = {}
25
25
  files = ARGV.collect{|arg|
26
26
  next [arg, nil] unless arg =~ /^--([^=]+)=?/
27
27
  k, v = [$1.downcase.to_sym, $']
28
- next [v, k] if [:rinex_nav, :rinex_obs, :ubx, :sp3, :antex, :rinex_clk].include?(k) # file type
28
+ next [v, k] if [:rinex_nav, :rinex_obs, :ubx, :sp3, :antex, :rinex_clk, :rtcm3].include?(k) # file type
29
29
  options << [$1.to_sym, $']
30
30
  nil
31
31
  }.compact
@@ -76,17 +76,17 @@ files.collect!{|fname, ftype|
76
76
  when /\.sp3(?:\.Z)?$/; :sp3
77
77
  when /\.atx(?:\.Z)?$/; :antex
78
78
  when /\.clk$/; :rinex_clk
79
- else
80
- raise "Format cannot be guessed, use --(format, ex. rinex_nav)=#{fname}"
81
79
  end
82
80
  fname = proc{
83
81
  next fname if File::exist?(fname)
84
82
  next fname if ((fname =~ Serial::SPEC) rescue false)
85
83
  if uri = URI::parse(fname) and !uri.instance_of?(URI::Generic) then
84
+ ftype ||= uri.read_format if uri.instance_of?(URI::Ntrip)
86
85
  next uri
87
86
  end
88
87
  raise "File not found: #{fname}"
89
88
  }.call
89
+ raise "Format cannot be guessed, use --(format, ex. rinex_nav)=#{fname}" unless ftype
90
90
  [fname, ftype]
91
91
  }
92
92
 
@@ -141,5 +141,6 @@ files.each{|fname, ftype|
141
141
  case ftype
142
142
  when :ubx; rcv.parse_ubx(fname)
143
143
  when :rinex_obs; rcv.parse_rinex_obs(fname)
144
+ when :rtcm3; rcv.parse_rtcm3(fname)
144
145
  end
145
146
  }