FieldTroposphericDelay.java

  1. /* Copyright 2022-2025 Thales Alenia Space
  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.models.earth.troposphere;

  18. import org.hipparchus.CalculusFieldElement;

  19. /** Container for tropospheric delay.
  20.  * @param <T> type of the field elements
  21.  * @author Luc Maisonobe
  22.  * @since 12.1
  23.  */
  24. public class FieldTroposphericDelay<T extends CalculusFieldElement<T>> {

  25.     /** Hydrostatic zenith delay (m). */
  26.     private final T zh;

  27.     /** Wet zenith delay (m). */
  28.     private final T zw;

  29.     /** Hydrostatic slanted delay (m). */
  30.     private final T sh;

  31.     /** Wet slanted delay (m). */
  32.     private final T sw;

  33.     /** Simple constructor.
  34.      * @param zh hydrostatic zenith delay (m)
  35.      * @param zw wet zenith delay (m)
  36.      * @param sh hydrostatic slanted delay (m)
  37.      * @param sw wet slanted delay (m)
  38.      */
  39.     public FieldTroposphericDelay(final T zh, final T zw, final T sh, final T sw) {
  40.         this.zh = zh;
  41.         this.zw = zw;
  42.         this.sh = sh;
  43.         this.sw = sw;
  44.     }

  45.     /** Get hydrostatic zenith delay (m).
  46.      * @return hydrostatic zenith delay (m)
  47.      */
  48.     public T getZh() {
  49.         return zh;
  50.     }

  51.     /** Get wet zenith delay (m).
  52.      * @return wet zenith delay (m)
  53.      */
  54.     public T getZw() {
  55.         return zw;
  56.     }

  57.     /** Get slanted delay (m).
  58.      * @return slanted delay (m)
  59.      */
  60.     public T getSh() {
  61.         return sh;
  62.     }

  63.     /** Get wet slanted delay (m).
  64.      * @return wet slanted delay (m)
  65.      */
  66.     public T getSw() {
  67.         return sw;
  68.     }

  69.     /** Get the total slanted delay (m).
  70.      * @return total slanted delay (m)
  71.      */
  72.     public T getDelay() {
  73.         return sh.add(sw);
  74.     }

  75. }