From ebf532a1937353c1019e2664ffde35633b2f0a36 Mon Sep 17 00:00:00 2001 From: oaq Date: Fri, 22 Nov 2024 13:39:43 +1100 Subject: [PATCH] rinex clk 3.04: correct the offset to the header sat system --- src/rinex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rinex.c b/src/rinex.c index 398aa8f0a..a046a98be 100644 --- a/src/rinex.c +++ b/src/rinex.c @@ -676,11 +676,11 @@ static int readrnxh(FILE *fp, double *ver, char *type, int *sys, int *tsys, } else if (strstr(label,"RINEX VERSION / TYPE")) { *ver=str2num(buff,0,9); - /* format change for clock files >=3.04 */ + // Format change for clock files >=3.04 *type=(*ver<3.04||flag==0)?*(buff+20):*(buff+21); - /* satellite system */ - switch (*(buff+40)) { + // Satellite system + switch ((*ver<3.04||flag==0)?*(buff+40):*(buff+42)) { case ' ': case 'G': *sys=SYS_GPS; *tsys=TSYS_GPS; break; case 'R': *sys=SYS_GLO; *tsys=TSYS_UTC; break;