example5.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 """
4 An example of how to walk a RINEX data set and use SatID and ObsID,
5 building an obsEpochMap of the data along the way.
6 """
7 
8 import gnsstk
9 
10 fn = gnsstk.getPathData() + '/arlm200z.15o'
11 
12 # read in header and get a generator for the data
13 header, data = gnsstk.readRinex3Obs(fn)
14 print header
15 
17 for d in data:
18  print gnsstk.CivilTime(d.time)
20  oe.time = d.time
21  for sv in d.obs.keys():
22  # sv is an SatID object
23  print sv,
24  epoch = d.obs[sv]
26  soe.svid = sv
27  for i in range(len(epoch)):
28  rinex2_obs_type = header.R2ObsTypes[i]
29  oid = header.mapObsTypes['G'][i]
30  print "{}({})={}".format(str(oid), rinex2_obs_type, epoch[i].data),
31  soe[oid] = epoch[i].data
32  oe[sv] = soe
33  print
34  oem[d.time] = oe
gnsstk::ObsEpochMap
std::map< CommonTime, ObsEpoch > ObsEpochMap
A time history of the observations collected from a single receiver.
Definition: ObsEpochMap.hpp:67
gnsstk::CivilTime
Definition: CivilTime.hpp:55
gnsstk::SvObsEpoch
All the observations collected from a single SV at a single epoch.
Definition: SvObsEpoch.hpp:55
gnsstk::range
double range(const Position &A, const Position &B)
Definition: Position.cpp:1273
gnsstk::ObsEpoch
Definition: ObsEpochMap.hpp:60


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39