atmosphere#

atmosphere provides queries for weather and atmospheric conditions at a given point and altitude, such as wind, temperature, and pressure.

Functions#

atmosphere.getWind(point)#

Returns the wind vector at the given {x, y, z} point, without turbulence applied.

Parameters:

point (table) – A {x, y, z} point, where y is altitude.

Returns:

Wind velocity vector.

Return type:

table

atmosphere.getWindWithTurbulence(point)#

Returns the wind vector at the given point, including the effects of turbulence.

Parameters:

point (table) – A {x, y, z} point, where y is altitude.

Returns:

Wind velocity vector, including turbulence.

Return type:

table

atmosphere.getTemperatureAndPressure(point)#

Returns the temperature (in Kelvin) and pressure (in Pascals) at the given point, accounting for altitude.

Parameters:

point (table) – A {x, y, z} point, where y is altitude.

Returns:

Temperature (Kelvin) and pressure (Pascals).

Return type:

number, number

Footnotes#

  • The point parameter typically includes a y component representing altitude, since atmospheric conditions vary with height.

  • Values returned reflect the mission’s configured weather preset and any dynamic weather settings.