PressureTemperatureHumidity.java

  1. /* Copyright 2002-2024 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. /** Container for pressure, temperature, and humidity.
  19.  * @author Luc Maisonobe
  20.  * @since 12.1
  21.  */
  22. public class PressureTemperatureHumidity extends PressureTemperature {

  23.     /** Humidity as water vapor pressure (Pa). */
  24.     private final double waterVaporPressure;

  25.     /** Mean temperature weighted with water vapor pressure. */
  26.     private final double tm;

  27.     /** Water vapor decrease factor. */
  28.     private final double lambda;

  29.     /** Simple constructor.
  30.      * @param altitude altitude at which weather parameters have been computed (m)
  31.      * @param pressure pressure (Pa)
  32.      * @param temperature temperature (Kelvin)
  33.      * @param waterVaporPressure humidity as water vapor pressure (Pa)
  34.      * @param tm mean temperature weighted with water vapor pressure
  35.      * @param lambda water vapor decrease factor
  36.      */
  37.     public PressureTemperatureHumidity(final double altitude,
  38.                                        final double pressure,
  39.                                        final double temperature,
  40.                                        final double waterVaporPressure,
  41.                                        final double tm,
  42.                                        final double lambda) {
  43.         super(altitude, pressure, temperature);
  44.         this.waterVaporPressure = waterVaporPressure;
  45.         this.tm                 = tm;
  46.         this.lambda             = lambda;
  47.     }

  48.     /** Get humidity as water vapor pressure.
  49.      * @return humidity as water vapor pressure (Pa)
  50.      */
  51.     public double getWaterVaporPressure() {
  52.         return waterVaporPressure;
  53.     }

  54.     /** Get mean temperature weighted with water vapor pressure.
  55.      * @return mean temperature weighted with water vapor pressure
  56.      */
  57.     public double getTm() {
  58.         return tm;
  59.     }

  60.     /** Get water vapor decrease factor.
  61.      * @return water vapor decrease factor
  62.      */
  63.     public double getLambda() {
  64.         return lambda;
  65.     }

  66. }