Skip to content

Commit

Permalink
Merge pull request #537 from ourairquality/rinex-clk304
Browse files Browse the repository at this point in the history
rinex clk 3.04: correct the offset to the header sat system
  • Loading branch information
rtklibexplorer authored Dec 6, 2024
2 parents 2140885 + ebf532a commit 2d59920
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 2d59920

Please sign in to comment.