RangeTroposphericDelayModifier.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.estimation.measurements.modifiers;

  18. import org.orekit.attitudes.FrameAlignedProvider;
  19. import org.orekit.estimation.measurements.EstimatedMeasurement;
  20. import org.orekit.estimation.measurements.EstimatedMeasurementBase;
  21. import org.orekit.estimation.measurements.EstimationModifier;
  22. import org.orekit.estimation.measurements.GroundStation;
  23. import org.orekit.estimation.measurements.Range;
  24. import org.orekit.models.earth.troposphere.TroposphericModel;
  25. import org.orekit.propagation.SpacecraftState;

  26. /** Class modifying theoretical range measurement with tropospheric delay.
  27.  * <p>
  28.  * The effect of tropospheric correction on the range is directly computed
  29.  * through the computation of the tropospheric delay.
  30.  * </p>
  31.  * <p>
  32.  * In general, for GNSS, VLBI, ... there is hardly any frequency dependence in the delay.
  33.  * For SLR techniques however, the frequency dependence is sensitive.
  34.  * </p>
  35.  *
  36.  * @author Maxime Journot
  37.  * @author Joris Olympio
  38.  * @since 8.0
  39.  */
  40. public class RangeTroposphericDelayModifier extends BaseRangeTroposphericDelayModifier implements EstimationModifier<Range> {

  41.     /** Constructor.
  42.      *
  43.      * @param model  Tropospheric delay model appropriate for the current range measurement method.
  44.      * @since 12.1
  45.      */
  46.     public RangeTroposphericDelayModifier(final TroposphericModel model) {
  47.         super(model);
  48.     }

  49.     /** {@inheritDoc} */
  50.     @Override
  51.     public void modifyWithoutDerivatives(final EstimatedMeasurementBase<Range> estimated) {

  52.         final Range         measurement = estimated.getObservedMeasurement();
  53.         final GroundStation station     = measurement.getStation();

  54.         RangeModifierUtil.modifyWithoutDerivatives(estimated,  station,
  55.                                                    this::rangeErrorTroposphericModel,
  56.                                                    this);


  57.     }

  58.     /** {@inheritDoc} */
  59.     @Override
  60.     public void modify(final EstimatedMeasurement<Range> estimated) {

  61.         final Range           measurement = estimated.getObservedMeasurement();
  62.         final GroundStation   station     = measurement.getStation();
  63.         final SpacecraftState state       = estimated.getStates()[0];

  64.         RangeModifierUtil.modify(estimated, getTropoModel(),
  65.                                  new ModifierGradientConverter(state, 6, new FrameAlignedProvider(state.getFrame())),
  66.                                  station,
  67.                                  this::rangeErrorTroposphericModel,
  68.                                  this::rangeErrorTroposphericModel,
  69.                                  this);


  70.     }

  71. }