[teqc] teqc removal of SPLICE COMMENT
Lou Estey
lou at unavco.org
Fri Jun 24 10:53:52 MDT 2005
While it's true that `grep -v COMMENT DRAZEN.05O` will remove all lines
that have COMMENT in them, this will not necessarily produce a correctly
formatted RINEX file, and in particular it will _not_ produce a correctly
formatted RINEX file in this case. (A RINEX file is a highly formatted
file!) If the postheader lines have been minimized in number with
`teqc -phc ....`, then the splice points have two lines that (should)
look like:
4 1
RINEX FILE SPLICE COMMENT
Better to do:
grep -v "RINEX FILE SPLICE" DRAZEN.05O | grep -v "^ 4 1" > newfile
Make sure you have the correct number of spaces! Note that this approach isn't
true for any arbitrary RINEX file, but probably will create correct RINEX
in this case.
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drazen Svehla wrote:
> Using Linux command from the command prompt
> you may remove "comment lines" or any other line from an ASCII file that
> contains word COMMENT.
>
> grep -v COMMENT DRAZEN.05O > DRAZEN.05O_correct
>
> or generic form
>
> grep -v word old_file > new_file
>
> the "word" can also contains spaces and in that case you may use
> grep -v "word1 word2" old_file > new_file
> or you may try
> grep -v 'word1 word2' old_file > new_file
>
> I do not know if such a feature is available under Windows Console
>
> Hope this helps and improves your important work you are doing
> Drazen
>
>
>
> Pierre Cilliers wrote:
>
>> Colleagues
>> Our readrinex routine cannot deal with postheader comment lines in
>> RINEX observation files.
>> The teqc option -phc removes all but the RINEX FILE SPLICE comments.
>> Many of the igs RINEX files for the IGS GPS station mali in Kenya
>> have postheader comments.
>>
>> Is there another option in teqc by means of which one can remove the
>> SPLICE comment lines too?
>> Looking forward to hearing from you.
>>
>> Regards
>> Pierre
>>
>>> Dr Pierre Cilliers
>>> Research Physicist, Hermanus Magnetic Observatory
>>> P O Box 32, Hermanus 7200, South Africa
>>> e-mail: pjcilliers at hmo.ac.za <mailto:pjcilliers at hmo.ac.za>, Web:
>>> http://www.hmo.ac.za <http://www.hmo.ac.za/>
>>> Phone: +27-(0)28-312 1196
>>> Fax +27-(0)28-312 2039
>>> "The heavens declare the glory of God; the skies proclaim the work of
>>> his hands".PSALM 19:1(NIV)
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>teqc mailing list
>>teqc at ls.unavco.org
>>http://ls.unavco.org/mailman/listinfo/teqc
>>
>>
>
>
> --
> -------------------------------------------------------
> Drazen Svehla
> Institute of Astronomical and Physical Geodesy
> Technical University of Munich
>
> Arcisstrasse 21, D-80333 Munich, Germany
> Phone : ++49–89–28923180
> Fax : ++49-89-28923178
> E-mail: svehla at bv.tum.de
> http://tau.fesg.tu-muenchen.de/~drazen/
> -------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> teqc mailing list
> teqc at ls.unavco.org
> http://ls.unavco.org/mailman/listinfo/teqc
More information about the teqc
mailing list