Skip to content

Commit 39aec8c

Browse files
authored
Merge pull request #44 from AndreHauschild/devel
Improve ANTEX file selection for CODE and HAS products
2 parents f48da22 + f4d829f commit 39aec8c

File tree

12 files changed

+667
-145
lines changed

12 files changed

+667
-145
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ Pre-installation of **CSSRlib** is required. Install the [officially released pa
1010
pip install cssrlib
1111
```
1212

13-
Additional python packages are required as prerequisites and can be installed via the following command
14-
15-
```bash
16-
pip install -r requirements.txt
17-
```
18-
19-
It is recommended to use a virtual environment to avoid version conflicts with the system-wide python installation.
13+
It is recommended to use a virtual environment to avoid version conflicts of required modules with the system-wide python installation.
2014

2115
## Installation in Virtual Environment
2216

data/README-DATA.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
# Example data for CSSRLIB
12

2-
Example data for CSSRLIB
3+
## Download of IGS data
34

4-
# QZSS CLAS and SLAS
5+
Most sample scripts require IGS data for processing. The data can be downloaded with a script, which must be called before the scripts can be executed:
6+
7+
```bash
8+
cd ../data/samples
9+
python3 igs_download.py
10+
```
11+
12+
## QZSS CLAS and SLAS
513

614
The correction data for CLAS and SLAS is downloaded from QZS Web site (https://qzss.go.jp/en/).
715
Please check the following license term for these data set.
@@ -12,12 +20,11 @@ https://sys.qzss.go.jp/dod/en/archives/agree.html?SERVICE_ID=CLAS
1220
[correction data for SLAS]
1321
https://sys.qzss.go.jp/dod/en/archives/agree.html?SERVICE_ID=SLAS
1422

15-
# Galileo HAS
23+
## Galileo HAS
1624

17-
The files for the Galileo-HAS test script Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example.txt and Galileo-HAS-SIS-ICD_1.0_Annex_B_Reed_Solomon_Generator_Matrix.txt are embedded as appendix in the Galileo HAS-ICD.
25+
The files for the Galileo-HAS test script `Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example.txt` and `Galileo-HAS-SIS-ICD_1.0_Annex_B_Reed_Solomon_Generator_Matrix.txt` are embedded as appendix in the Galileo HAS-ICD. The file with the HAS message decoding example in Annex D contains non-UTF-8 characters. These must be removed with:
1826

19-
The file with the HAS message decoding example in Annex D contains non-UTF-8 characters. These must be removed with
20-
21-
```
22-
iconv -f utf-8 -t utf-8 -c Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example.txt > Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example.fixed.txt
27+
```bash
28+
mv Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example.txt Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example_orig.txt
29+
iconv -f utf-8 -t utf-8 -c Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example_orig.txt > Galileo-HAS-SIS-ICD-1.0_Annex_D_HAS_Message_Decoding_Example.txt
2330
```

data/igs_files.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
antex https://files.igs.org/pub/station/general/igs20.atx
22
antex https://files.igs.org/pub/station/general/igs14.atx
33

4+
antex https://files.igs.org/pub/station/general/pcv_archive/igs20_2353.atx
5+
antex https://www.gsc-europa.eu/sites/default/files/sites/all/files/has14_2345.atx
6+
47
antex http://ftp.aiub.unibe.ch/CODE_MGEX/CODE/I20.ATX
58
antex http://ftp.aiub.unibe.ch/CODE_MGEX/CODE/M20.ATX
69
antex http://ftp.aiub.unibe.ch/CODE_MGEX/CODE/M14.ATX
@@ -13,9 +16,9 @@ brdc ftp://gdc.cddis.eosdis.nasa.gov/pub/gnss/data/daily/2023/brdc/BRD400DLR_S_
1316
brdc ftp://gdc.cddis.eosdis.nasa.gov/pub/gnss/data/daily/2023/brdc/BRD400DLR_S_20232230000_01D_MN.rnx.gz
1417
brdc ftp://gdc.cddis.eosdis.nasa.gov/pub/gnss/data/daily/2023/brdc/BRD400DLR_S_20231890000_01D_MN.rnx.gz
1518

16-
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2353/COD0MGXFIN_20250460000_01D_05M_ORB.SP3.gz
17-
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2353/COD0MGXFIN_20250460000_01D_30S_CLK.CLK.gz
18-
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2353/COD0MGXFIN_20250460000_01D_01D_OSB.BIA.gz
19+
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2353/COD0OPSFIN_20250460000_01D_05M_ORB.SP3.gz
20+
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2353/COD0OPSFIN_20250460000_01D_30S_CLK.CLK.gz
21+
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2353/COD0OPSFIN_20250460000_01D_01D_OSB.BIA.gz
1922

2023
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2274/COD0MGXFIN_20232230000_01D_01D_OSB.BIA.gz
2124
igs ftp://gdc.cddis.eosdis.nasa.gov/pub/gps/products/2274/COD0MGXFIN_20232230000_01D_05M_ORB.SP3.gz

receiver/decode_jps.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,6 @@ def decode(self, buff, len_, sys=[], prn=[]):
912912
print("[{:s}] undef".format(head))
913913
return 0
914914

915-
916-
917915
def decode(f, opt, args):
918916

919917
print("Decoding {}".format(f))
@@ -961,17 +959,18 @@ def main():
961959

962960
# Input file and folder
963961
#
964-
parser.add_argument("inpFileName", help="Input JPS file(s) (wildcards allowed)")
962+
parser.add_argument("inpFileName",
963+
help="Input JPS file(s) (wildcards allowed)")
965964

966965
parser.add_argument("--receiver", default='unknown',
967966
help="Receiver type [unknown]")
968967
parser.add_argument("--antenna", default='unknown',
969968
help="Antenna type [unknown]")
970969

971-
parser.add_argument("-g","--gnss",default='GRECIJ',
970+
parser.add_argument("-g", "--gnss", default='GRECIJ',
972971
help="GNSS [GRECIJ]")
973972

974-
parser.add_argument("-j","--jobs",default=int(mp.cpu_count() / 2),
973+
parser.add_argument("-j", "--jobs", default=int(mp.cpu_count() / 2),
975974
type=int, help='Max. number of parallel processes')
976975

977976
# Retrieve all command line arguments
@@ -989,10 +988,10 @@ def main():
989988

990989
opt.flg_qzsl6 = True
991990

992-
opt.flg_bdsb1c = True
991+
opt.flg_bdsb1c = False
993992
opt.flg_bdsb2b = True
994993

995-
opt.flg_sbas = False
994+
opt.flg_sbas = True
996995

997996
opt.flg_gpslnav = True
998997

samples/igs_download.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,13 @@ def write_chunk(data):
136136
def download_http(url, filename, local_filename):
137137
"""Download a file via HTTP/HTTPS."""
138138
try:
139-
response = requests.get(url, stream=True)
139+
# Set a user-agent to avoid blocking by some servers
140+
if 'www.gsc-europa.eu' in url:
141+
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 '
142+
'(KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'}
143+
response = requests.get(url, stream=True, headers=headers)
144+
else:
145+
response = requests.get(url, stream=True)
140146
response.raise_for_status() # Raise an error for bad status codes
141147

142148
total_size = int(response.headers.get('content-length', 0))

0 commit comments

Comments
 (0)