py_atmosphere.temp_conversion

Functions

temp_conversion(properties, property_to_change, ...)

Convert the units of a selected atmospheric property.

Module Contents

py_atmosphere.temp_conversion.temp_conversion(properties, property_to_change, desired_unit)[source]

Convert the units of a selected atmospheric property.

Parameters:

propertiesList

A three-element list that describes the inputed altitude (km), along with the temperature (Celsius) and pressure (KiloPascal) of the air. This is typically the output of py_atmosphere function.

property_to_changestr

Selected property for which units need to be changed. Valid inputs are: “altitude”, “temperature”, “pressure”

desired_unitstr

The desired units for the selected property. Valid units for temperature: C (Celsius), F (Fahrenheit), K (Kelvin), R (Rankine) Valid units for altitude: m (meters), km (kilometers), ft (feet), miles (miles) Valid units for pressure: bar (bar), kPa (KiloPascal), psia (Pounds over square inch)

Returns:

list

A three-element list with the selected property converted to the specified units.

Examples

>>> temp_conversion([0.0, 15.04, 101325], "temperature", "K")
[0.0, 288.19, 101325]