WeatherHelper.CalculateAltitude Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
The altitude