类 MeteoMath


  • public class MeteoMath
    extends java.lang.Object
    作者:
    yaqiang
    • 构造器概要

      构造器 
      构造器 说明
      MeteoMath()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static double cal_E​(double es, double rh)
      Calculate actual vapor pressure (E) of the air
      static double cal_Es​(double tc)
      Calculate saturation vapor pressure
      static double cal_Es_1​(double tc)
      Calculate saturation vapor pressure (Es)
      static double cal_Es_2​(double tc)
      Calculate saturation vapor pressure (Es)
      static double cal_Tdc​(double e)
      Calculate dewpoint from actual water vapor pressure
      static double cal_Tdc​(double t, double rh)
      Calculate dewpoint from temperature and relative humidity
      static double cal_Tdc_1​(double e)
      Calculate dewpoint temperature
      static double cal_Tdc_1​(double tc, double rh)
      Calculate dewpoint temperature
      static Array calSeaPrs​(Array z, Array t, Array p, Array q)
      Estimate sea level pressure
      static Array calSeaPrs_bak​(Array z, Array t, Array p, Array q)
      Estimate sea level pressure
      static double dewpoint2rh​(double tc, double tdc)
      Calculate relative humidity from dewpoint
      static Array dewpoint2rh​(Array tdc, Array tc)
      Calculate relative humidity from dewpoint
      static double[] ds2uv​(double windDir, double windSpeed)
      Get wind U/V components from wind direction and speed
      static Array[] ds2uv​(Array windDir, Array windSpeed)
      Get wind U/V components from wind direction and speed
      static double height2Press​(double height)
      Calculate pressure frmo height
      static Array height2Press​(Array height)
      Calculate pressure from height
      static double press2Height​(double press)
      Calculate height from pressure
      static Array press2Height​(Array press)
      Calculate height from pressure
      static double qair2rh​(double qair, double tc, double press)
      Calculate relative humidity from specific humidity
      static Array qair2rh​(Array qair, Array temp, double press)
      Calculate relative humidity from specific humidity
      static Array qair2rh​(Array qair, Array temp, Array press)
      Calculate relative humidity
      static double rh2dewpoint​(double rh, double t)
      Calculate dewpoint from relative humidity and temperature
      static Array rh2dewpoint​(Array rh, Array tc)
      Calculate dewpoint from relative humidity and temperature
      static double tc2tf​(double tc)
      Calculate fahrenheit temperature from celsius temperature
      static Array tc2tf​(Array tc)
      Calculate fahrenheit temperature from celsius temperature
      static double tf2tc​(double tf)
      Calculate celsius temperature from fahrenheit temperature
      static Array tf2tc​(Array tf)
      Calculate celsius temperature from fahrenheit temperature
      static double[] uv2ds​(double u, double v)
      Get wind direction and wind speed from U/V
      static Array[] uv2ds​(Array u, Array v)
      Get wind direction and wind speed from U/V
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • MeteoMath

        public MeteoMath()
    • 方法详细资料

      • cal_Es

        public static double cal_Es​(double tc)
        Calculate saturation vapor pressure
        参数:
        tc - Air temperature
        返回:
        Saturation vapor pressure
      • cal_Es_1

        public static double cal_Es_1​(double tc)
        Calculate saturation vapor pressure (Es)
        参数:
        tc - Air temperature
        返回:
        Saturation vapor pressure
      • cal_Es_2

        public static double cal_Es_2​(double tc)
        Calculate saturation vapor pressure (Es)
        参数:
        tc - Air temperature - degree C
        返回:
        Saturation vapor pressure
      • cal_Tdc

        public static double cal_Tdc​(double e)
        Calculate dewpoint from actual water vapor pressure
        参数:
        e - Actural water vapor pressure
        返回:
        Dewpoint
      • cal_Tdc

        public static double cal_Tdc​(double t,
                                     double rh)
        Calculate dewpoint from temperature and relative humidity
        参数:
        t - Temperature
        rh - Relative humidity
        返回:
        Dewpoint
      • dewpoint2rh

        public static double dewpoint2rh​(double tc,
                                         double tdc)
        Calculate relative humidity from dewpoint
        参数:
        tc - Temperature
        tdc - Dewpoint temperature
        返回:
        Relative humidity as percent (i.e. 80%)
      • dewpoint2rh

        public static Array dewpoint2rh​(Array tdc,
                                        Array tc)
        Calculate relative humidity from dewpoint
        参数:
        tdc - Dewpoint temperature
        tc - Temperature
        返回:
        Relative humidity as percent (i.e. 80%)
      • rh2dewpoint

        public static double rh2dewpoint​(double rh,
                                         double t)
        Calculate dewpoint from relative humidity and temperature
        参数:
        rh - Relative humidity
        t - Temperature
        返回:
        Dewpoint
      • rh2dewpoint

        public static Array rh2dewpoint​(Array rh,
                                        Array tc)
        Calculate dewpoint from relative humidity and temperature
        参数:
        rh - Dewpoint temperature
        tc - Temperature
        返回:
        Relative humidity as percent (i.e. 80%)
      • qair2rh

        public static double qair2rh​(double qair,
                                     double tc,
                                     double press)
        Calculate relative humidity from specific humidity
        参数:
        qair - Specific humidity, dimensionless (e.g. kg/kg) ratio of water mass / total air mass
        tc - Temperature - degree c
        press - Pressure - hPa (mb)
        返回:
        Relative humidity as percent (i.e. 80%)
      • cal_Tdc_1

        public static double cal_Tdc_1​(double e)
        Calculate dewpoint temperature
        参数:
        e - Actual vapor pressure
        返回:
        Dewpoint temperature (celsius)
      • cal_Tdc_1

        public static double cal_Tdc_1​(double tc,
                                       double rh)
        Calculate dewpoint temperature
        参数:
        tc - Air temperature
        rh - Relative humidity
        返回:
        Dewpoint temperature (celsius)
      • tf2tc

        public static double tf2tc​(double tf)
        Calculate celsius temperature from fahrenheit temperature
        参数:
        tf - Fahrenheit temperature
        返回:
        Celsius temperature
      • tc2tf

        public static double tc2tf​(double tc)
        Calculate fahrenheit temperature from celsius temperature
        参数:
        tc - Celsius temperature
        返回:
        Fahrenheit temperature
      • cal_E

        public static double cal_E​(double es,
                                   double rh)
        Calculate actual vapor pressure (E) of the air
        参数:
        es - Saturation vapor pressure
        rh - Relative humidity
        返回:
        Actual vapor pressure
      • press2Height

        public static double press2Height​(double press)
        Calculate height from pressure
        参数:
        press - Pressure - hPa
        返回:
        Height - meter
      • height2Press

        public static double height2Press​(double height)
        Calculate pressure frmo height
        参数:
        height - Height - meter
        返回:
        Pressure - hPa
      • calSeaPrs

        public static Array calSeaPrs​(Array z,
                                      Array t,
                                      Array p,
                                      Array q)
        Estimate sea level pressure
        参数:
        z - Height (m)
        t - Temperature array (K)
        p - Pressure array (Pa)
        q - Mixing ratio (kg/kg)
        返回:
        Sea level pressure (Pa)
      • calSeaPrs_bak

        public static Array calSeaPrs_bak​(Array z,
                                          Array t,
                                          Array p,
                                          Array q)
        Estimate sea level pressure
        参数:
        z - Height (m)
        t - Temperature array (K)
        p - Pressure array (Pa)
        q - Mixing ratio (kg/kg)
        返回:
        Sea level pressure (Pa)
      • tc2tf

        public static Array tc2tf​(Array tc)
        Calculate fahrenheit temperature from celsius temperature
        参数:
        tc - Celsius temperature
        返回:
        Fahrenheit temperature
      • tf2tc

        public static Array tf2tc​(Array tf)
        Calculate celsius temperature from fahrenheit temperature
        参数:
        tf - Fahrenheit temperature
        返回:
        Celsius temperature
      • qair2rh

        public static Array qair2rh​(Array qair,
                                    Array temp,
                                    double press)
        Calculate relative humidity from specific humidity
        参数:
        qair - Specific humidity, dimensionless (e.g. kg/kg) ratio of water mass / total air mass
        temp - Temperature - degree c
        press - Pressure - hPa (mb)
        返回:
        Relative humidity as percent (i.e. 80%)
      • qair2rh

        public static Array qair2rh​(Array qair,
                                    Array temp,
                                    Array press)
        Calculate relative humidity
        参数:
        qair - Specific humidity, dimensionless (e.g. kg/kg) ratio of water mass / total air mass
        temp - Temperature - degree c
        press - Pressure - hPa (mb)
        返回:
        Relative humidity as percent (i.e. 80%)
      • press2Height

        public static Array press2Height​(Array press)
        Calculate height from pressure
        参数:
        press - Pressure - hPa
        返回:
        Height - m
      • height2Press

        public static Array height2Press​(Array height)
        Calculate pressure from height
        参数:
        height - Height - m
        返回:
        Pressure - hPa
      • uv2ds

        public static Array[] uv2ds​(Array u,
                                    Array v)
        Get wind direction and wind speed from U/V
        参数:
        u - U component
        v - V component
        返回:
        Wind direction and wind speed
      • uv2ds

        public static double[] uv2ds​(double u,
                                     double v)
        Get wind direction and wind speed from U/V
        参数:
        u - U component
        v - V component
        返回:
        Wind direction and wind speed
      • ds2uv

        public static Array[] ds2uv​(Array windDir,
                                    Array windSpeed)
        Get wind U/V components from wind direction and speed
        参数:
        windDir - Wind direction
        windSpeed - Wind speed
        返回:
        Wind U/V components
      • ds2uv

        public static double[] ds2uv​(double windDir,
                                     double windSpeed)
        Get wind U/V components from wind direction and speed
        参数:
        windDir - Wind direction
        windSpeed - Wind speed
        返回:
        Wind U/V components