# @(#) plogdiff     1.4     12/08/93


___SAMPLE INPUT___

Postfit tables from 93jan29wash.log:

    DATA   TRANSMITTER   RECEIVER       MEAN           SIGMA         NUM
    TYPE      NAME         NAME         (KM)            (KM)         PTS
 -------------------------------------------------------------------------
    120    GPS11         ALGO       -2.274574E-14    1.656676E-06       52
    110    GPS11         ALGO        3.089911E-05    1.663737E-04       52
    120    GPS14         ALGO       -1.832430E-16    1.406394E-06       47
    110    GPS14         ALGO       -9.208080E-06    9.486029E-05       47
    120    GPS25         ALGO        1.568508E-14    9.958700E-07       45
    110    GPS25         ALGO       -2.874266E-06    1.181031E-04       45
    120    GPS14         FAIR       -3.101500E-15    1.564630E-06       40
    110    GPS14         FAIR        4.536394E-06    1.521761E-04       40
     .
     .
     .

    DATA   TRANSMITTER       MEAN           SIGMA         NUM
    TYPE      NAME           (KM)            (KM)         PTS
 --------------------------------------------------------------
    120    GPS11         -1.084551E-14    1.479491E-06      234
    110    GPS11         -9.973337E-15    1.764906E-04      234
    120    GPS14         -2.227787E-15    1.178947E-06      215
    110    GPS14         -2.763168E-15    1.329756E-04      215
     .
     .
     .

    DATA    RECEIVER         MEAN           SIGMA         NUM
    TYPE      NAME           (KM)            (KM)         PTS
 --------------------------------------------------------------
    120    ALGO           1.032481E-15    1.783647E-06      823
    110    ALGO          -6.109789E-11    1.267588E-04      823
    120    FAIR          -2.456325E-16    2.016395E-06      869
    110    FAIR           1.471194E-11    1.580462E-04      869
     .
     .
     .

    DATA      MEAN           SIGMA         NUM
    TYPE      (KM)           (KM)          PTS
 -----------------------------------------------
    120   -7.440644E-17    1.557985E-06     4083
    110    1.997231E-16    1.433892E-04     4083


___SAMPLE OUTPUT___

/goa/bin/plogdiff test1/93jan29wash.log test2/93jan29wash.log

#               POSTFIT_SIGMA_____                       POSTFIT_SIGMA_____
GPS09:ALGO:110 -3.300000e-09  4.58       GPS09:ALGO:120 -4.365000e-09  2.71 
GPS09:FAIR:110 -1.027000e-07  3.29       GPS09:FAIR:120  6.589000e-09  2.20 
GPS09:GOLD:110 -4.735100e-06  1.47 -2    GPS09:GOLD:120  9.815600e-08  1.43 -2
GPS09:HART:110  0.000000e+00  7.00       GPS09:HART:120 -4.674000e-11  2.53 
GPS09:TAIS:110  1.260000e-08  4.13       GPS09:TAIS:120 -8.903000e-10  2.88 
GPS10:ALGO:110 -3.376000e-07  2.68       GPS10:ALGO:120 -2.542800e-08  1.81 
     .
     .
     .
GPS32:HART:110  0.000000e+00  7.00       GPS32:HART:120 -1.000000e-14  6.04 
GPS32:TAIS:110 -5.300000e-09  4.39       GPS32:TAIS:120  6.616700e-09  2.10 
!SAT__STA__DT_ -3.498840e-05  0.50       

GPS09:110      -4.762000e-07  2.52 -2    GPS09:120       1.214000e-08  2.11 -2
GPS10:110       7.960000e-08  3.48       GPS10:120      -8.032000e-09  2.29 
     .
     .
     .
GPS28:110       8.039000e-07  2.31       GPS28:120      -5.300000e-09  2.46 
GPS32:110      -6.501000e-07  2.22       GPS32:120      -6.374000e-09  2.23 
!SAT__DT_      -5.852900e-06  1.39       

ALGO:110        9.440000e-08  3.13       ALGO:120       -4.113400e-08  1.64 
FAIR:110       -2.613000e-07  2.78       FAIR:120       -1.557000e-08  2.11 
GOLD:110       -6.800000e-09  4.27 -81   GOLD:120        5.921000e-08  1.50 -81
HART:110        0.000000e+00  7.00       HART:120       -1.730000e-12  3.95 
TAIS:110       -1.173300e-06  2.10       TAIS:120       -3.121000e-09  2.58 
!STA_DT_       -1.173300e-06  1.50       

110             4.570000e-08  3.50 -81   120            -9.622000e-09  2.21 -81
!DT             4.570000e-08  2.21       

!outliers: 0 0

SUMMARY postfit postfit.log 1 0 0 -3.498840e-05 0.50 -5.852900e-06 1.39 -1.173300e-06 1.50 4.570000e-08 2.21


In each category, the first field represents arithmetic difference
(km) and the second the number of digits of agreement (unitless).  The
latter is arrived at using

	( - log|(a-b)/a| - log|(a-b)/b| ) / 2

In the case of an inconsistent number of data points, a 3rd field is
printed giving the difference (#points[file2] - #points[file1]).  At
the end of each of the 4 postfit tables is a line indicating the worst
values in each column, the maximum absolute difference and minimum
number of digits of agreement.  They begin with a "!" and contain
markers identifying the sort fields.

The first numerical field in the SUMMARY line is a status flag, which
indicates a 0 if no differences are found and 1 otherwise.  Following
are the number of outlier points counted in file1 and file2.  The
remainder of the SUMMARY line consists of the worst values (maximum
absolute difference and minimum number of digits of agreement) from
each table.

