Subject: [IGEXMail-0238] ASRINEXO bug (week 1000)
From: [email-masked] (WERNER GURTNER)
Date: 08 Mar 1999 19:11:19

Precedence: bulk

******************************************************************************
IGEX Electronic Mail    08-Mar-1999 19:11:19                   Message No 0238
******************************************************************************

Author: [email-masked] (WERNER GURTNER)
Subject: ASRINEXO bug (week 1000)

Author: W. Gurtner

Dear colleagues,

The ASRINEXO RINEX converter contains a stupid bug: It reads the GPS week
from the s-file with format I3 which of course gives a wrong week when
it becomes 1000 or larger.

You only come across the problem if s-files are actually existing in the
raw data directory.

PC-Version users:
****************

Please download from

Internet:   ubeclu.unibe.ch
User:       anonymous
Directory:  cd aiub$ftp/pcrinex
File:       386rnx2.zip containing asrinexo.exe

Unix Version Users:
******************

Find and modify the following lines in the source:

Old:

        IF(IOLD.EQ.0) THEN
          READ(STRING,2,ERR=910,END=910) SITNAM,NWEEK,ITIME,SES,RCR,
     1                                 ANT,MM,IDD,OPR,CODE
2         FORMAT(A4,10X,I3,3X,I6,4X,A1,2X,A3,1X,A3,1X,I2,I2,1X,A3,1X,
     1           A13)
        ELSE
          READ(STRING,6,ERR=910,END=910) SITNAM,NWEEK,ITIME
6         FORMAT(A4,10X,I3,3X,I6)
        END IF

New:

        IF(IOLD.EQ.0) THEN
          READ(STRING,2,ERR=910,END=910) SITNAM,NWEEK,ITIME,SES,RCR,
     1                                 ANT,MM,IDD,OPR,CODE
2         FORMAT(A4,9X,I4,3X,I6,4X,A1,2X,A3,1X,A3,1X,I2,I2,1X,A3,1X,
     1           A13)
        ELSE
          READ(STRING,6,ERR=910,END=910) SITNAM,NWEEK,ITIME
6         FORMAT(A4,9X,I4,3X,I6)
        END IF

or better still: Download the latest source ASRINEXO.F from the same directory
above.

This version also converts GG24 and Z18 GLONASS data to RINEX (see
PCRINEX.TXT).

Sorry for this problem.

Best regards

Werner Gurtner