TEQC: converting dat 2 rinex

by Andrew Newman

Going from one receiver format to RINEX, the Receiver Independent Exchange Format used by most GPS processing software.

TEQC:

    Look at the TEQC GPS preprocessing manual for details on using the program and for deciphering output.

  • We will use 'teqc' to create Navigation (.nav) and RINEX (.YYo) files.
    % teqc -tr d -week 2002:323 +nav BOWL3230.nav ../RAW/BOWL3230.dat > BOWL3230.02o
      #      ^       ^              ^                     ^                ^              
      #      |       |              |                     |                |
      #  convert     |          create navigation         |              output file
      #              |            file                    |                
      #              |                                 input dat		  
      #        tell it when                              file
      #         data is from  

    Doing this for every file gets a little time consuming, particularly if you are re-processing a lot of old data. Thus it is better to use a shell script to automate this process. Please read over the script in /usr/local/geophysics/bin/run_teqc_GT.

    # run without arguements to get usage.
    % run_teqc_GT
    Usage: %/home/anewman/bin/GPS/run_teqc_GT YEAR STAT BDOY EDOY ANT file(s)
           runs teqc on the GPS.tps_files listed as the 5th and later arguments.
           	YEAR - is the year of the occupation
    	STAT - station name
    	BDOY - Begining DOY
    	EDOY - Ending DOY
    	#SH   - Antenna slant height
    	ANT  - Antenna height
    	files  - .T00 files that come from some trimble machines
    # run again correctly this time. 
    % run_teqc_GT 2012 ARE3  001 100 0.0 *.t00 
  • We can now remove the newly created ROCK* files since the SVRK files are the same. We will also need to individually replace all occurrence of the word ROCK within the filesSVRK*.
    % cd ~/MGM/Socorro2002/rinex/   # make sure you are in the correct directory 
    % rm ROCK*                      # remove any residual ROCK* files 
    % gunzip *                      # uncompress all compressed files in directory (*.gz *.Z)       
    %  for file in SVRK*            # run on all SVRK* files 
      do
        sed 's/ROCK/SVRK/g' $file > $$.tmp     # replace text 'ROCK' with 'SVRK' within $file and put it in $$.tmp 
        mv $$.tmp $file                        # replace $file with $$.tmp 
      done 

  • Once complete, check to see if all necessary files are in the current directory.
    (9 stations X 2day X 10files = 180 files). Number depends on whether you created additional files (e.g. lfiles.*).
    % ls
    % ls -1 | wc  # gives first output number is equal to the number 
                  # of files in current directory  


Course Home | anewmangatech.edu | Updated: Wed Oct 2 14:41:44 EDT 2013