Example #1
0
 protected override void PerformOnData(ObservationRecord observationRecord, ObsEpochRecord epochRecord)
 {
     if (observationRecord.HasData)
     {
         base.PerformOnData(observationRecord, epochRecord);
     }
 }
Example #2
0
        protected virtual ObservationRecord GetObservationRecordType(ObsEpochRecord epochRecord,
                                                                     Dictionary <SatelliteSystem, GnssObservation> obsMetaData)
        {
            ObservationRecord observationRecord;

            switch (epochRecord.EpochFlag)
            {
            case EpochFlag.Ok:
            case EpochFlag.PowerFailure:
                observationRecord = new ObservationDataRecord(obsMetaData);
                break;

            case EpochFlag.NewSite:
                observationRecord = new NewSiteRecord();
                break;

            case EpochFlag.Kinematic:
            case EpochFlag.Header:
                observationRecord = new HeaderRecord();
                break;

            case EpochFlag.Event:
                observationRecord = new ExternalEventRecord();
                break;

            case EpochFlag.CycleSlip:
                observationRecord = new CycleSlipDataRecord(obsMetaData);
                break;

            default:
                throw new ArgumentOutOfRangeException("EpochFlag");
            }
            return(observationRecord);
        }
Example #3
0
        protected virtual void PerformOnData(ObservationRecord observationRecord, ObsEpochRecord epochRecord)
        {
            EventHandler <RinexObsData> temp;

            switch (ParseType)
            {
            case ParseType.RaiseEvents:
                temp = ObsDataEvents;
                if (temp != null)
                {
                    Debug.Assert(observationRecord != null, "observationRecord != null");
                    temp(this, new RinexObsData(epochRecord, observationRecord));
                }
                break;

            case ParseType.StoreData:
                _obsRecords.Add(epochRecord, observationRecord);
                break;

            case ParseType.StoreAndRaise:
                _obsRecords.Add(epochRecord, observationRecord);
                temp = ObsDataEvents;
                if (temp != null)
                {
                    Debug.Assert(observationRecord != null, "observationRecord != null");
                    temp(this, new RinexObsData(epochRecord, observationRecord));
                }
                break;
            }
        }
Example #4
0
        protected override ObservationRecord GetObservationRecordType(ObsEpochRecord epochRecord,
                                                                      Dictionary <SatelliteSystem, GnssObservation> obsMetaData)
        {
            ObservationRecord observationRecord;

            if (epochRecord.EpochFlag == EpochFlag.Ok || epochRecord.EpochFlag == EpochFlag.PowerFailure)
            {
                observationRecord = new ObservationDataRecordWithFilter(obsMetaData, _filter);
            }
            else
            {
                observationRecord = base.GetObservationRecordType(epochRecord, obsMetaData);
            }
            return(observationRecord);
        }
Example #5
0
 public RinexObsData(ObsEpochRecord epochRecord, ObservationRecord observationRecord)
 {
     _epochRecord       = epochRecord;
     _observationRecord = observationRecord;
 }
 public bool IsEpochFit(ObsEpochRecord epochRecord)
 {
     return(epochRecord.CheckInterval(_start ?? DateTime.MinValue, _end ?? DateTime.MaxValue));
 }