[teqc] How to use "-O.sum[mary] s"
Lou Estey
lou at unavco.org
Thu Jul 2 11:36:07 MDT 2009
Swen and everyone,
> For more than 9 observables (e.g. on a file with L5 tracking on PRN01
> and L2C on all IIR-M birds), this ends up looking like:
>
> ...
> 10 L1 L2 C1 P2 S1 S2 C2 L5 C5# / TYPES OF
> OBSERV
> S5 # / TYPES OF
> OBSERV
> ...
> 48 # OF SATELLITES
> L1 L2 C1 P2 S1 S2 C2 L5 C5 COMMENT
> ---- ---- ---- ---- ---- ---- ---- ---- ----COMMENT
> S5 COMMENT
> ---- COMMENT
> G11 2276 2276 2276 2276 2276 2229 0 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G15 2237 2237 2237 2237 2237 2237 2237 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G17 1762 1762 1762 1762 1762 1762 1762 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G19 2250 2250 2250 2250 2250 2220 0 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G07 1770 1770 1770 1770 1770 1770 1770 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G08 1677 1677 1677 1677 1677 1640 0 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G28 1856 1856 1856 1856 1856 1845 0 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> G03 2255 2255 2255 2255 2255 2212 0 0 0PRN / # OF OBS
> 0 PRN / # OF OBS
> <etc.>
>
> Doing things like `grep PRN filename.09o | grep G01` probably won't get you
> what you think you should get.
I've come up with a solution that will probably be far more useful than trying
to overwrite RINEX files with these lines. In addition to '-O.sum s' and -O.sum e'
(which will continue to do what you expect), the next teqc version will also
include a '-O.sum .' option. Like some other options ('+qc', '+meta', '+mds', '+v'
'+config', ...) this suppresses the output of RINEX and shows you something
else, in this case the observation summary counts with one SV per line (because
the format is now not constrained by the RINEX specification).
Better yet, all the '-O.sum' options ('s', 'e', and '.') will now be affected
by the various teqc filtering options: time windowing, SV filtering, observation
list, ... So, using the same 24-hour file that I was using yesterday:
[3802] teqc -O.sum . l5dt1790.09o
L1 L2 C1 P2 S1 S2 C2 L5 C5 S5
---- ---- ---- ---- ---- ---- ---- ---- ---- ----
G11 2276 2276 2276 2276 2276 2276 2276 2276 2276 2276
G15 2237 2237 2237 2237 2237 2237 2237 2237 2237 2237
G17 1762 1762 1762 1762 1762 1762 1762 1762 1762 1762
G19 2250 2250 2250 2250 2250 2250 2250 2250 2250 2250
G07 1770 1770 1770 1770 1770 1770 1770 1770 1770 1770
G08 1677 1677 1677 1677 1677 1677 1677 1677 1677 1677
G28 1856 1856 1856 1856 1856 1856 1856 1856 1856 1856
G03 2255 2255 2255 2255 2255 2255 2255 2255 2255 2255
G13 1962 1962 1962 1962 1962 1962 1962 1962 1962 1962
G27 2289 2289 2289 2289 2289 2289 2289 2289 2289 2289
G04 1874 1874 1874 1874 1874 1874 1874 1874 1874 1874
G26 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001
G09 2204 2204 2204 2204 2204 2204 2204 2204 2204 2204
G20 2132 2132 2132 2132 2132 2132 2132 2132 2132 2132
G32 1970 1970 1970 1970 1970 1970 1970 1970 1970 1970
G02 1710 1710 1710 1710 1710 1710 1710 1710 1710 1710
G12 2131 2131 2131 2131 2131 2131 2131 2131 2131 2131
G30 2210 2210 2210 2210 2210 2210 2210 2210 2210 2210
G01 2229 2229 2229 2229 2229 2229 2229 2229 2229 2229
G10 2049 2049 2049 2049 2049 2049 2049 2049 2049 2049
G24 1826 1826 1826 1826 1826 1826 1826 1826 1826 1826
G29 1875 1875 1875 1875 1875 1875 1875 1875 1875 1875
G31 1897 1897 1897 1897 1897 1897 1897 1897 1897 1897
G21 1751 1751 1751 1751 1751 1751 1751 1751 1751 1751
G18 1827 1827 1827 1827 1827 1827 1827 1827 1827 1827
G16 2119 2119 2119 2119 2119 2119 2119 2119 2119 2119
G22 1823 1823 1823 1823 1823 1823 1823 1823 1823 1823
G06 2295 2295 2295 2295 2295 2295 2295 2295 2295 2295
G14 1743 1743 1743 1743 1743 1743 1743 1743 1743 1743
G23 1651 1651 1651 1651 1651 1651 1651 1651 1651 1651
R10 2414 2414 2414 2414 2414 2414 2414 2414 2414 2414
R18 2289 2289 2289 2289 2289 2289 2289 2289 2289 2289
R09 2292 2292 2292 2292 2292 2292 2292 2292 2292 2292
R19 2417 2417 2417 2417 2417 2417 2417 2417 2417 2417
R08 2212 2212 2212 2212 2212 2212 2212 2212 2212 2212
R20 2347 2347 2347 2347 2347 2347 2347 2347 2347 2347
R21 2173 2173 2173 2173 2173 2173 2173 2173 2173 2173
R11 2177 2177 2177 2177 2177 2177 2177 2177 2177 2177
R03 1880 1880 1880 1880 1880 1880 1880 1880 1880 1880
R22 1709 1709 1709 1709 1709 1709 1709 1709 1709 1709
R07 2164 2164 2164 2164 2164 2164 2164 2164 2164 2164
R13 1959 1959 1959 1959 1959 1959 1959 1959 1959 1959
R23 1705 1705 1705 1705 1705 1705 1705 1705 1705 1705
R14 1852 1852 1852 1852 1852 1852 1852 1852 1852 1852
R24 1852 1852 1852 1852 1852 1852 1852 1852 1852 1852
R15 1770 1770 1770 1770 1770 1770 1770 1770 1770 1770
R02 1723 1723 1723 1723 1723 1723 1723 1723 1723 1723
R17 1934 1934 1934 1934 1934 1934 1934 1934 1934 1934
or, let's say we want to see all the various pseudorange observable
counts on just GPS PRN01 from 12:00:00 to the end of the file:
[3803] teqc -R +G1 -st 12:00:00 -O.obs c1+c2+c5+p1+p2 -O.sum . l5dt1790.09o
C1 C2 C5 P1 P2
---- ---- ---- ---- ----
G01 911 911 911 0 911
Hopefully you get the idea. This is a powerful addition.
Plus the format of '-O.sum .' will self-scale if the observable counts
get too large, so you'll be able to look at your daily files of
100-Hz data with no problems.
--lou
p.s. The use of '.' to mean "output to stdout" is something that will
be coming down the pike for quite a number of other options in the
future. Stay tuned. The beauty of this in UNIX is that you can't ever
have a file named '.' -- because '.' is the current directory.
More information about the teqc
mailing list