Edit

Share via


WeatherHelper.CalculateAltitude Method

Definition

Overloads

CalculateAltitude(Pressure)

Calculates the altitude in meters from the given pressure. Assumes mean sea-level pressure and temperature of 15C.

CalculateAltitude(Pressure, Pressure)

Calculates the altitude in meters from the given pressure and sea-level pressure. Assumes temperature of 15C.

CalculateAltitude(Pressure, Temperature)

Calculates the altitude in meters from the given pressure and air temperature. Assumes mean sea-level pressure.

CalculateAltitude(Pressure, Pressure, Temperature)

Calculates the altitude in meters from the given pressure, sea-level pressure and air temperature.

CalculateAltitude(Pressure)

Calculates the altitude in meters from the given pressure. Assumes mean sea-level pressure and temperature of 15C.

public static UnitsNet.Length CalculateAltitude (UnitsNet.Pressure pressure);
static member CalculateAltitude : UnitsNet.Pressure -> UnitsNet.Length
Public Shared Function CalculateAltitude (pressure As Pressure) As Length

Parameters

pressure
UnitsNet.Pressure

The pressure at the point for which altitude is being calculated

Returns

UnitsNet.Length

The altitude

Applies to

CalculateAltitude(Pressure, Pressure)

Calculates the altitude in meters from the given pressure and sea-level pressure. Assumes temperature of 15C.

public static UnitsNet.Length CalculateAltitude (UnitsNet.Pressure pressure, UnitsNet.Pressure seaLevelPressure);
static member CalculateAltitude : UnitsNet.Pressure * UnitsNet.Pressure -> UnitsNet.Length
Public Shared Function CalculateAltitude (pressure As Pressure, seaLevelPressure As Pressure) As Length

Parameters

pressure
UnitsNet.Pressure

The pressure at the point for which altitude is being calculated

seaLevelPressure
UnitsNet.Pressure

The sea-level pressure

Returns

UnitsNet.Length

The altitude

Applies to

CalculateAltitude(Pressure, Temperature)

Calculates the altitude in meters from the given pressure and air temperature. Assumes mean sea-level pressure.

public static UnitsNet.Length CalculateAltitude (UnitsNet.Pressure pressure, UnitsNet.Temperature airTemperature);
static member CalculateAltitude : UnitsNet.Pressure * UnitsNet.Temperature -> UnitsNet.Length
Public Shared Function CalculateAltitude (pressure As Pressure, airTemperature As Temperature) As Length

Parameters

pressure
UnitsNet.Pressure

The pressure at the point for which altitude is being calculated

airTemperature
UnitsNet.Temperature

The dry air temperature at the point for which altitude is being calculated

Returns

UnitsNet.Length

The altitude

Applies to

CalculateAltitude(Pressure, Pressure, Temperature)

Calculates the altitude in meters from the given pressure, sea-level pressure and air temperature.

public static UnitsNet.Length CalculateAltitude (UnitsNet.Pressure pressure, UnitsNet.Pressure seaLevelPressure, UnitsNet.Temperature airTemperature);
static member CalculateAltitude : UnitsNet.Pressure * UnitsNet.Pressure * UnitsNet.Temperature -> UnitsNet.Length
Public Shared Function CalculateAltitude (pressure As Pressure, seaLevelPressure As Pressure, airTemperature As Temperature) As Length

Parameters

pressure
UnitsNet.Pressure

The pressure at the point for which altitude is being calculated

seaLevelPressure
UnitsNet.Pressure

The sea-level pressure

airTemperature
UnitsNet.Temperature

The dry air temperature at the point for which altitude is being calculated

Returns

UnitsNet.Length

The altitude

Applies to