TroposphericDelay.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. /** Container for tropospheric delay.
  19.  * @author Luc Maisonobe
  20.  * @since 12.1
  21.  */
  22. public class TroposphericDelay {

  23.     /** Hydrostatic zenith delay (m). */
  24.     private final double zh;

  25.     /** Wet zenith delay (m). */
  26.     private final double zw;

  27.     /** Hydrostatic slanted delay (m). */
  28.     private final double sh;

  29.     /** Wet slanted delay (m). */
  30.     private final double sw;

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

  43.     /** Get hydrostatic zenith delay (m).
  44.      * @return hydrostatic zenith delay (m)
  45.      */
  46.     public double getZh() {
  47.         return zh;
  48.     }

  49.     /** Get wet zenith delay (m).
  50.      * @return wet zenith delay (m)
  51.      */
  52.     public double getZw() {
  53.         return zw;
  54.     }

  55.     /** Get slanted delay (m).
  56.      * @return slanted delay (m)
  57.      */
  58.     public double getSh() {
  59.         return sh;
  60.     }

  61.     /** Get wet slanted delay (m).
  62.      * @return wet slanted delay (m)
  63.      */
  64.     public double getSw() {
  65.         return sw;
  66.     }

  67.     /** Get the total slanted delay (m).
  68.      * @return total slanted delay (m)
  69.      */
  70.     public double getDelay() {
  71.         return sh + sw;
  72.     }

  73. }