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.weather;
18  
19  /** Container for pressure, temperature, and humidity.
20   * @author Luc Maisonobe
21   * @since 12.1
22   */
23  public class PressureTemperatureHumidity extends PressureTemperature {
24  
25      /** Humidity as water vapor pressure (Pa). */
26      private final double waterVaporPressure;
27  
28      /** Mean temperature weighted with water vapor pressure. */
29      private final double tm;
30  
31      /** Water vapor decrease factor. */
32      private final double lambda;
33  
34      /** Simple constructor.
35       * @param altitude altitude at which weather parameters have been computed (m)
36       * @param pressure pressure (Pa)
37       * @param temperature temperature (Kelvin)
38       * @param waterVaporPressure humidity as water vapor pressure (Pa)
39       * @param tm mean temperature weighted with water vapor pressure
40       * @param lambda water vapor decrease factor
41       */
42      public PressureTemperatureHumidity(final double altitude,
43                                         final double pressure,
44                                         final double temperature,
45                                         final double waterVaporPressure,
46                                         final double tm,
47                                         final double lambda) {
48          super(altitude, pressure, temperature);
49          this.waterVaporPressure = waterVaporPressure;
50          this.tm                 = tm;
51          this.lambda             = lambda;
52      }
53  
54      /** Get humidity as water vapor pressure.
55       * @return humidity as water vapor pressure (Pa)
56       */
57      public double getWaterVaporPressure() {
58          return waterVaporPressure;
59      }
60  
61      /** Get mean temperature weighted with water vapor pressure.
62       * @return mean temperature weighted with water vapor pressure
63       */
64      public double getTm() {
65          return tm;
66      }
67  
68      /** Get water vapor decrease factor.
69       * @return water vapor decrease factor
70       */
71      public double getLambda() {
72          return lambda;
73      }
74  
75  }