类 MeteoMath
- java.lang.Object
-
- org.meteoinfo.math.meteo.MeteoMath
-
public class MeteoMath extends java.lang.Object- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 MeteoMath()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static doublecal_E(double es, double rh)Calculate actual vapor pressure (E) of the airstatic doublecal_Es(double tc)Calculate saturation vapor pressurestatic doublecal_Es_1(double tc)Calculate saturation vapor pressure (Es)static doublecal_Es_2(double tc)Calculate saturation vapor pressure (Es)static doublecal_Tdc(double e)Calculate dewpoint from actual water vapor pressurestatic doublecal_Tdc(double t, double rh)Calculate dewpoint from temperature and relative humiditystatic doublecal_Tdc_1(double e)Calculate dewpoint temperaturestatic doublecal_Tdc_1(double tc, double rh)Calculate dewpoint temperaturestatic ArraycalSeaPrs(Array z, Array t, Array p, Array q)Estimate sea level pressurestatic ArraycalSeaPrs_bak(Array z, Array t, Array p, Array q)Estimate sea level pressurestatic doubledewpoint2rh(double tc, double tdc)Calculate relative humidity from dewpointstatic Arraydewpoint2rh(Array tdc, Array tc)Calculate relative humidity from dewpointstatic double[]ds2uv(double windDir, double windSpeed)Get wind U/V components from wind direction and speedstatic Array[]ds2uv(Array windDir, Array windSpeed)Get wind U/V components from wind direction and speedstatic doubleheight2Press(double height)Calculate pressure frmo heightstatic Arrayheight2Press(Array height)Calculate pressure from heightstatic doublepress2Height(double press)Calculate height from pressurestatic Arraypress2Height(Array press)Calculate height from pressurestatic doubleqair2rh(double qair, double tc, double press)Calculate relative humidity from specific humiditystatic Arrayqair2rh(Array qair, Array temp, double press)Calculate relative humidity from specific humiditystatic Arrayqair2rh(Array qair, Array temp, Array press)Calculate relative humiditystatic doublerh2dewpoint(double rh, double t)Calculate dewpoint from relative humidity and temperaturestatic Arrayrh2dewpoint(Array rh, Array tc)Calculate dewpoint from relative humidity and temperaturestatic doubletc2tf(double tc)Calculate fahrenheit temperature from celsius temperaturestatic Arraytc2tf(Array tc)Calculate fahrenheit temperature from celsius temperaturestatic doubletf2tc(double tf)Calculate celsius temperature from fahrenheit temperaturestatic Arraytf2tc(Array tf)Calculate celsius temperature from fahrenheit temperaturestatic double[]uv2ds(double u, double v)Get wind direction and wind speed from U/Vstatic Array[]uv2ds(Array u, Array v)Get wind direction and wind speed from U/V
-
-
-
方法详细资料
-
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- Temperaturerh- Relative humidity- 返回:
- Dewpoint
-
dewpoint2rh
public static double dewpoint2rh(double tc, double tdc)Calculate relative humidity from dewpoint- 参数:
tc- Temperaturetdc- 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 temperaturetc- 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 humidityt- Temperature- 返回:
- Dewpoint
-
rh2dewpoint
public static Array rh2dewpoint(Array rh, Array tc)
Calculate dewpoint from relative humidity and temperature- 参数:
rh- Dewpoint temperaturetc- 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 masstc- Temperature - degree cpress- 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 temperaturerh- 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 pressurerh- 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 masstemp- Temperature - degree cpress- 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 masstemp- Temperature - degree cpress- 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 componentv- 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 componentv- 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 directionwindSpeed- 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 directionwindSpeed- Wind speed- 返回:
- Wind U/V components
-
-