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.models.earth.troposphere;
18  
19  import org.hipparchus.util.Binary64Field;
20  import org.junit.jupiter.api.Test;
21  import org.orekit.models.earth.weather.PressureTemperatureHumidityProvider;
22  import org.orekit.time.TimeScalesFactory;
23  
24  public class ViennaOnePathDelayTest extends AbstractPathDelayTest<ViennaOne> {
25  
26      protected ViennaOne buildTroposphericModel(final PressureTemperatureHumidityProvider provider) {
27          return new ViennaOne(new ConstantViennaAProvider(new ViennaACoefficients(0.00127683, 0.00060955)),
28                               new ConstantAzimuthalGradientProvider(null),
29                               new ConstantTroposphericModel(new TroposphericDelay(2.0966, 0.2140, 0, 0)),
30                               TimeScalesFactory.getUTC());
31      }
32  
33      @Test
34      @Override
35      public void testFixedHeight() {
36          doTestFixedHeight(null);
37      }
38  
39      @Test
40      @Override
41      public void testFieldFixedHeight() {
42          doTestFieldFixedHeight(Binary64Field.getInstance(), null);
43      }
44  
45      @Test
46      @Override
47      public void testFixedElevation() {
48          doTestFixedElevation(null);
49      }
50  
51      @Test
52      @Override
53      public void testFieldFixedElevation() {
54          doTestFieldFixedElevation(Binary64Field.getInstance(), null);
55      }
56  
57      @Test
58      @Override
59      public void testDelay() {
60          doTestDelay(defaultDate, defaultPoint, defaultTrackingCoordinates,
61                      null,
62                      2.0966, 0.2140, 3.3985, 0.3472, 3.7458);
63      }
64  
65      @Test
66      @Override
67      public void testFieldDelay() {
68          doTestDelay(Binary64Field.getInstance(),
69                      defaultDate, defaultPoint, defaultTrackingCoordinates,
70                      null,
71                      2.0966, 0.2140, 3.3985, 0.3472, 3.7458);
72      }
73  
74  }