Class GlobalPressureTemperatureModel

  • All Implemented Interfaces:
    WeatherModel

    public class GlobalPressureTemperatureModel
    extends Object
    implements WeatherModel
    The Global Pressure and Temperature model. This model is an empirical model that provides the temperature and the pressure depending the latitude and the longitude of the station.

    The Global Pressure and Temperature model is based on spherical harmonics up to degree and order of 9. The residual values ​​of this model can reach 20 hPa for pressure and 10 ° C for temperature. They are significant for higher latitudes and small near the equator (Böhm, 2007)

    Author:
    Bryan Cazabonne
    • Constructor Detail

      • GlobalPressureTemperatureModel

        public GlobalPressureTemperatureModel​(double latitude,
                                              double longitude,
                                              Frame bodyFrame)
        Build a new instance.

        At the initialization the values of the pressure and the temperature are set to NaN. The user has to call weatherParameters(double, AbsoluteDate) method before using the values of the pressure and the temperature.

        Parameters:
        latitude - geodetic latitude, in radians
        longitude - geodetic longitude, in radians
        bodyFrame - the frame to attach to the ellipsoid. The origin is at the center of mass, the z axis is the minor axis.
    • Method Detail

      • getTemperature

        public double getTemperature()
        Get the atmospheric temperature of the station depending its position.
        Returns:
        the temperature in kelvins
      • getPressure

        public double getPressure()
        Get the atmospheric pressure of the station depending its position.
        Returns:
        the pressure in hPa
      • weatherParameters

        public void weatherParameters​(double height,
                                      AbsoluteDate date)
        Description copied from interface: WeatherModel
        Calculates the weather parameters of the model. In order to obtain the correct values of the parameters this method has to be call just after the construction of the model.
        Specified by:
        weatherParameters in interface WeatherModel
        Parameters:
        height - the height of the station in m
        date - current date