ScaleFactorCorrection.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. /** Scale Factor to be applied.
  21.  * Contains the scale factors of 10 applied to the data before
  22.  * being stored into the RINEX file.
  23.  * @since 12.0
  24.  */
  25. public class ScaleFactorCorrection {

  26.     /** List of Observations types that have been scaled. */
  27.     private final List<ObservationType> typesObsScaleFactor;

  28.     /** Factor to divide stored observations with before use. */
  29.     private final double scaleFactor;

  30.     /** Simple constructor.
  31.      * @param scaleFactor Factor to divide stored observations (1,10,100,1000)
  32.      * @param typesObsScaleFactor List of Observations types that have been scaled
  33.      */
  34.     public ScaleFactorCorrection(final double scaleFactor,
  35.                                  final List<ObservationType> typesObsScaleFactor) {
  36.         this.scaleFactor = scaleFactor;
  37.         this.typesObsScaleFactor = typesObsScaleFactor;
  38.     }

  39.     /** Get the Scale Factor.
  40.      * @return Scale Factor
  41.      */
  42.     public double getCorrection() {
  43.         return scaleFactor;
  44.     }

  45.     /** Get the list of Observation Types scaled.
  46.      * @return List of Observation types scaled
  47.      */
  48.     public List<ObservationType> getTypesObsScaled() {
  49.         return typesObsScaleFactor;
  50.     }

  51. }