Skip to content

Commit

Permalink
rinex clk 3.04: correct the offset to the header sat system
Browse files Browse the repository at this point in the history
  • Loading branch information
ourairquality committed Nov 22, 2024
1 parent aa79681 commit ebf532a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rinex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebf532a

Please sign in to comment.