posProc_2_OMG
Overview
posProc_2_OMG converts post-processed kinematic (PPK) GNSS/inertial solution text files exported from Applanix PosProc / POSPac into an OMG binary jcu_nav_rec tide/navigation file (or 4-column ASCII file with -ascii). It converts GPS seconds-of-day/week (weeksecs) relative to a specified year and Julian day (-year, -jday) into 1970 UTC epoch timestamps, storing the PPK ellipsoidal/orthometric height in bin_nav.azi and position in bin_nav.lat and bin_nav.lon.
Syntax & CLI Options
posProc_2_OMG [OPTIONS] -year <YYYY> -jday <DDD> -in <posprocfilename> -out <mytideformatname>
| Option | Description | Default |
|---|---|---|
-in <filename> | Required. Input ASCII PosProc / POSPac solution file. | None |
-out <filename> | Required. Output binary jcu_nav_rec file (or ASCII file if -ascii is set). | None |
-year <YYYY> | Reference 4-digit year for timestamp conversion. | 1970 |
-jday <DDD> | Reference Julian day (1..366) to which weeksecs is added (stdtime_from_jul_day(year, jday, 0, 0, 0) + weeksecs). | 0 |
-lines_to_skip <N> | Number of header lines to skip at the beginning of the input file. | 23 |
-ascii | Write 4-column ASCII (dtime lat lon height) instead of binary jcu_nav_rec records. | Disabled (binary) |
-v | Print verbose lat, lon, time, and centisecs for every record. | Disabled |
How It Works
- Header Skipping: Reads and skips the first
lines_to_skiplines (default23). -
Column Parsing: Parses 7 columns from each line:
sscanf(linestring, "%lf %f %f %f %f %lf %lf", &weeksecs, &fdum, &fdum, &fdum, &bin_nav.azi, &bin_nav.lat, &bin_nav.lon);where column 1 is seconds (
weeksecs), columns 2â4 are skipped, column 5 is height (bin_nav.azi), column 6 is latitude (bin_nav.lat), and column 7 is longitude (bin_nav.lon). - Epoch Calculation & Output: Computes UTC epoch seconds as
stdtime_from_jul_day(year, jday, 0, 0, 0) + weeksecs, populatesbin_nav.timeandbin_nav.centisecs, and writes binaryjcu_nav_recrecords vianav_write(or ASCII lines with-ascii).
Examples
1. Convert a PosProc export for Julian Day 173, 2008 to binary OMG tide format:
posProc_2_OMG -year 2008 -jday 173 -in posproc_jd173.txt -out posproc_jd173.bin
mergeTide -RTK -tide posproc_jd173.bin merged/JD173/*.merged
2. Convert with custom header length to ASCII for inspection:
posProc_2_OMG -lines_to_skip 25 -year 2008 -jday 173 -ascii -in posproc.txt -out posproc.asc
Workflow Context
- Upstream: Applanix PosProc / POSPac post-processed GNSS/INS text exports.
- Downstream:
mergeTideordiffTide. - See Also:
GrafNav_2_OMGfor Waypoint GrafNav exports.