Conversions

pyBADA Common unit conversions module Developped @EUROCONTROL (EIH) 2024

pyBADA.conversions.date2posix(val)[source]

This function converts a date format to posix

Parameters:

val – date in %Y-%m-%d %H:%M:%S format

Returns:

posix time referenced to 01-01-1970 [s]

pyBADA.conversions.deg2rad(val)[source]

This function converts from decimal degrees to radians

Parameters:

val – value in decimal degrees

Returns:

vaue in radians

pyBADA.conversions.ft2m(val)[source]

This function converts from ft to m s

Parameters:

val – value in ft

Returns:

vaue in m

pyBADA.conversions.h2s(val)[source]

This function converts from hours to m seconds

Parameters:

val – value in hours

Returns:

vaue in seconds

pyBADA.conversions.hp2W(val)[source]

This function converts from horsepower to watts

Parameters:

val – value in horsepower

Returns:

value in watts

pyBADA.conversions.kg2lb(val)[source]

This function converts from kg to lb

Parameters:

val – value in kg

Returns:

value in lb

pyBADA.conversions.kt2ms(val)[source]

This function converts from kt to m s^-1

Parameters:

val – value in kt

Returns:

vaue in m s^-1

pyBADA.conversions.lb2kg(val)[source]

This function converts from lb to kg

Parameters:

val – value in lb

Returns:

vaue in kg

pyBADA.conversions.m2ft(val)[source]

This function converts from meters to feets

Parameters:

val – value in meters

Returns:

value in feets

pyBADA.conversions.m2nm(val)[source]

This function converts from meters to nautical miles

Parameters:

val – value in meters

Returns:

value in nautical miles

pyBADA.conversions.ms2kt(val)[source]

This function converts from m s^-1 to kt

Parameters:

val – value in m s^-1

Returns:

value in kt

pyBADA.conversions.nm2m(val)[source]

This function converts from nautical miles to m

Parameters:

val – value in nautical miles

Returns:

vaue in m

pyBADA.conversions.rad2deg(val)[source]

This function converts from radians to decimal degrees

Parameters:

val – value in radians

Returns:

value in decimal degrees

pyBADA.conversions.s2h(val)[source]

This function converts from seconds to hours

Parameters:

val – value in seconds

Returns:

value in hours

pyBADA.conversions.unix2date(val)[source]

This function converts posix to date format

Parameters:

val – time referenced to 01-01-1970 [s]

Returns:

date in %Y-%m-%d %H:%M:%S format