PhaseShiftCorrection.java

  1. /* Copyright 2002-2025 CS GROUP
  2.  * Licensed to CS GROUP (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.files.rinex.observation;

  18. import java.util.List;

  19. import org.orekit.gnss.ObservationType;
  20. import org.orekit.gnss.SatInSystem;
  21. import org.orekit.gnss.SatelliteSystem;

  22. /** Phase Shift corrections.
  23.  * Contains the phase shift corrections used to
  24.  * generate phases consistent with respect to cycle shifts.
  25.  * @since 12.0
  26.  */
  27. public class PhaseShiftCorrection {

  28.     /** Satellite System. */
  29.     private final SatelliteSystem satSystemPhaseShift;

  30.     /** Carrier Phase Observation Code (may be null). */
  31.     private final ObservationType typeObsPhaseShift;

  32.     /** Phase Shift Corrections (cycles). */
  33.     private final double phaseShiftCorrection;

  34.     /** List of satellites involved. */
  35.     private final List<SatInSystem> satsPhaseShift;

  36.     /** Simple constructor.
  37.      * @param satSystemPhaseShift Satellite System
  38.      * @param typeObsPhaseShift Carrier Phase Observation Code (may be null)
  39.      * @param phaseShiftCorrection Phase Shift Corrections (cycles)
  40.      * @param satsPhaseShift List of satellites involved
  41.      */
  42.     public PhaseShiftCorrection(final SatelliteSystem satSystemPhaseShift,
  43.                                 final ObservationType typeObsPhaseShift,
  44.                                 final double phaseShiftCorrection,
  45.                                 final List<SatInSystem> satsPhaseShift) {
  46.         this.satSystemPhaseShift = satSystemPhaseShift;
  47.         this.typeObsPhaseShift = typeObsPhaseShift;
  48.         this.phaseShiftCorrection = phaseShiftCorrection;
  49.         this.satsPhaseShift = satsPhaseShift;
  50.     }

  51.     /** Get the Satellite System.
  52.      * @return Satellite System.
  53.      */
  54.     public SatelliteSystem getSatelliteSystem() {
  55.         return satSystemPhaseShift;
  56.     }

  57.     /** Get the Carrier Phase Observation Code.
  58.      * <p>
  59.      * The observation code may be null for the uncorrected reference
  60.      * signal group
  61.      * </p>
  62.      * @return Carrier Phase Observation Code.
  63.      */
  64.     public ObservationType getTypeObs() {
  65.         return typeObsPhaseShift;
  66.     }

  67.     /** Get the Phase Shift Corrections.
  68.      * @return Phase Shift Corrections (cycles)
  69.      */
  70.     public double getCorrection() {
  71.         return phaseShiftCorrection;
  72.     }

  73.     /** Get the list of satellites involved.
  74.      * @return List of satellites involved (if empty, all the sats are involved)
  75.      */
  76.     public List<SatInSystem> getSatsCorrected() {
  77.         //If empty, all the satellites of this constellation are affected for this Observation type
  78.         return satsPhaseShift;
  79.     }

  80. }