[teqc] some sort of sub-second bug for '-st' option

Lou Estey lou at unavco.org
Wed Oct 5 13:28:23 MDT 2016


All,

Discovered: There is some sort of sub-second bug for the '-st' option
which skips one or more initial epochs if the starting epoch of the input
is not on an integer second and the '-st' option specifies the exact starting
epoch.  Example using a 25-Hz SBF data file:

[12357] teqc +quiet +meta *.sbf | grep ^start
start date & time:       2012-06-29 10:04:59.160

Now:

[12358] teqc +quiet -st 2012-06-29T10:04:59.160 *.sbf > tmp.obs; teqc +meta tmp.obs | grep ^start
start date & time:       2012-06-29 10:04:59.200

... which misses the first epoch.  But using slightly earlier '-st' times works aok:

[12359] teqc +quiet -st 2012-06-29T10:04:59.120 *.sbf > tmp.obs; teqc +meta tmp.obs | grep ^start
start date & time:       2012-06-29 10:04:59.160
[12360] teqc +quiet -st 2012-06-29T10:04:59.080 *.sbf > tmp.obs; teqc +meta tmp.obs | grep ^start
start date & time:       2012-06-29 10:04:59.160
[12361] teqc +quiet -st 2012-06-29T10:04:59.040 *.sbf > tmp.obs; teqc +meta tmp.obs | grep ^start
start date & time:       2012-06-29 10:04:59.160
[12362] teqc +quiet -st 2012-06-29T10:04:59.000 *.sbf > tmp.obs; teqc +meta tmp.obs | grep ^start
start date & time:       2012-06-29 10:04:59.160

For now the workaround seems to be to not include the start time with '-st' at all:

[12363] teqc +quiet *.sbf > tmp.obs; teqc +meta tmp.obs | grep ^start
start date & time:       2012-06-29 10:04:59.160

... or use a start time with '-st' which truncates the sub-second portion.

This bug not only occurs when translating, but when doing other operations
such as using '-O.sum .'.

cheers,
--lou

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Louis H. Estey, Ph.D.              office:  [+001] 303-381-7456
UNAVCO, 6350 Nautilus Drive           FAX:  [+001] 303-381-7451
Boulder, CO  80301-5554            e-mail:  lou  unavco.org
      WWW:  http://www.unavco.org   http://jules.unavco.org

"If the universe is the answer, what is the question?"
                                                -- Leon Lederman
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






More information about the teqc mailing list