Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kartverket/midgard
Browse files Browse the repository at this point in the history
  • Loading branch information
dahmic77 committed Sep 25, 2024
2 parents 23d1d33 + 4259508 commit d9d6407
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions midgard/parsers/gipsyx_tdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,17 @@ def as_dataset(self) -> "Dataset":
if parameter in field.keys():

idx = name == self.data["name"]

if category == "Satellite":
sys = enums.get_value("gnss_3digit_id_to_id", identifier[0:3])
dset.system[idx] = sys
dset.satellite[idx] = sys + identifier[3:5]
if identifier.startswith("GPS"):
sys = enums.get_value("gnss_3digit_id_to_id", identifier[0:3])
satellite_id = identifier[3:5]
else:
sys = identifier[0:1]
satellite_id = identifier[1:4]
dset.system[idx] = sys
dset.satellite[idx] = sys + satellite_id


# Loop over 'apriori', 'value' and 'sigma' solutions, which are saved in separated Dataset collections
for collection in collections:
Expand Down

0 comments on commit d9d6407

Please sign in to comment.