Skip to content
Snippets Groups Projects
Commit bcb1a904 authored by Tim Everett's avatar Tim Everett
Browse files

Fix bug in reading precise ephemeris files so will read ".SP3" as well as ".sp3" extensions

parent 084864ec
No related branches found
No related tags found
No related merge requests found
...@@ -273,8 +273,8 @@ extern void readsp3(const char *file, nav_t *nav, int opt) ...@@ -273,8 +273,8 @@ extern void readsp3(const char *file, nav_t *nav, int opt)
for (i=j=0;i<n;i++) { for (i=j=0;i<n;i++) {
if (!(ext=strrchr(efiles[i],'.'))) continue; if (!(ext=strrchr(efiles[i],'.'))) continue;
if (!strstr(ext+1,"sp3")&&!strstr(ext+1,".SP3")&& if (!strstr(ext+1,"sp3")&&!strstr(ext+1,"SP3")&&
!strstr(ext+1,"eph")&&!strstr(ext+1,".EPH")) continue; !strstr(ext+1,"eph")&&!strstr(ext+1,"EPH")) continue;
if (!(fp=fopen(efiles[i],"r"))) { if (!(fp=fopen(efiles[i],"r"))) {
trace(2,"sp3 file open error %s\n",efiles[i]); trace(2,"sp3 file open error %s\n",efiles[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment