What's the best way to trim a topcon gps file that is over 2 hrs. long so that I can send it to OPUS-RS?
Thanks
Convert to RINEX, then...
TEQC is the BEST WAY.
http://facility.unavco.org/software/teqc/teqc.html
Resistance is futile!
You can also do it with a text editor, but I don't recommend it UNLESS you know what you are doing. RINEX files are highly formated, and most booboos are fatal.
Loyal
OPUS to OPUS-RS, I Almost Always Use Wordpad
If it is a very long RINEX file and I want to break it into 3 or more, I use "Decimate" a utility I downloaded from NGS years ago. In the past I liked 1/2 hour long OPUS-RS but as the processing software used by NGS has improved over the years I see excellent results from files in the 1 hour range. With 1 hour files I can rename my files using the A, B, C sequence for GPS hourly time.
I can split a file in Wordpad in less time than it takes to setup the decimate command. But if it is 3 or more I decimate to 30 seconds and split the file at the same time. My submission time is quicker but that is not really important with a DSL connection. Back in the dial up days, decimation was very important.
Paul in PA
Howdy,
Copy the teqc executable and existing RINEX file into the same directory.
Open a command prompt and navigate to where you put the files. From the command line type:
Teqc -st yyyymmddhhmmss +dh 2.0 existingRINEX > newRINEX
Where yyyy is four-digit year, mm is two-digit month, dd is two-digit day of month and hh,mm,and ss are likewise two-digit hour, minute and seconds of the start of the file you want to create from the longer file. Obviously the -st is "start time" and +dh is "difference in hours"
The ">" directs output of the program to a new file which should not already exist.
I do not know if decimate still exists or where it might be found. You can decimate and many other things in teqc. As Loyal indicates it is the "go to" tool for working with RINEX.
HTH,
DMM
This was posted a few days ago. I can not figure out how to copy a link on my.
Phone so here is a copy of the post. I use this almost daily.
Editing/trimming a RINEX
by hubermar, Thursday, June 14, 2012, 21:00 (57 days ago) @ Ralph Perez
I am working on a front end for TEQC. You are welcome to give it a try. you can download it from teqc.silkwerks.com.
please let me know if you have any problems with it. and feel free to make suggestions. i am willing to put some additional effort into making it a usable utility.
Thanks for everybody's help, especially Loyal. He trimmed the file for me and it processed great in OPUS-RS.
Note Regarding OPUS-RS
Even if my plan is OPUS-RS I usually allow my base file to go over 2 hours. That way I can immediately submit to OPUS to get my project on the system. I may use another L2 receiver or two for other points. Depending on the project I may move the second receiver to 2 or 3 points and if it is big do that with 2 L2 receivers. Since I use Ashtech Z-12s (45# with batteries in the case plus jump start batteries) I figure it out before taking to the field.
Besides getting the project on the system that immediate submission to OPUS is a quality check on my observation. As I await my OPUS reply I open the long RINEX file, maybe trim the first few minutes. Z-12s are slow to acquire satellites, my settings are to record after 4 satellites are required and then I start a new file after 6 are locked on. Usually the L1/L2 for the six is good enough for OPUS but the first few minutes 1 or 2 satellites still have funky P1/P2 observations. OPUS-RS requires clean data across the board, OPUS does not even note that P1/P2 data exists. I trim to the point of clean data for 6 satellites and then divide that slightly shorter file for OPUS-RS. In my last project I submitted a 2h02m to OPUS and subsequently two 59m files to OPUS-RS. My receiver field files are numbered 1, 2, 3 in sequence. Usually before I have completed my editing my OPUS solution is back. OPUS renames your file using the A, B, C letter for the UTC start hour of the observation. With that in hand I do not even have to think about which letters to use. If my OPUS file comes back with a Q, my OPUS-RS files are renamed Q and R. That way my input file to OPUS-RS comes back with the exact same solution name.
After my base file I check my secondary files also renaming them with the appropriate alpha characters. They may or may not get split.
Just some hints from a long time OPUS-RS user.
Paul in PA
As Steve Corley mentioned, I have developed a front end for TEQC which makes deleting satellites, triming files, splitting up files (tbin), etc. much easier.
You are welcome to use it. I would appreciate feedback, comments, suggestions.
Mark
Mark, I've tried using this, but every time I try to make a change in my rinex file, I get a message "Unhandled exception has occurred.........."
I stumbled across this forum and thread with a Google search after having issues for the first time with Opus kicking back static data due to to a 1014 error "The RINEX data submitted to OPUS contains data taken from more than one location". I struggled for a couple of hours to manually edit the Rinex file with no luck. After downloading and running it through TEQC it worked like a champ and I got my solution.
Just wanted to say thanks! It's nice to find a surveyor resource such as this. With our little niche industry it's not always that easy to find solutions to obscure problems such as these.
Kevin
I had similar, but it runs after I press continue (I use WinXp 32bit)
the full text:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.DateTime.Parse(String s)
at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3607 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TEQC_Editor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DOCUME~1/Admin/LOCALS~1/Temp/TEQC_Editor.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I've just uploaded a new version that may correct this problem. if not, would you please let me know. i want to get this corrected. sorry it's taken me so long to get back to you.
please email at the address on the download page at teqc.silkwerks.com.
and please feel free to offer and comments or suggestions.
Thanks,
Mark
I would like to say thanks to Mark for his program. I used it yesterday to strip out Glonnos sv's and delete a particular GPS sv from a file. I worked vey well.
Thank you Mark for your service to the survey community.