poliastro.earth.atmosphere.util

This script holds several utilities related to atmospheric computations.

Module Contents

Functions

geometric_to_geopotential(z, r0)

Converts from given geometric altitude to geopotential one.

geopotential_to_geometric(h, r0)

Converts from given geopotential altitude to geometric one.

gravity(z, g0, r0)

Relates Earth gravity field magnitude with the geometric height.

poliastro.earth.atmosphere.util.geometric_to_geopotential(z, r0)

Converts from given geometric altitude to geopotential one.

Parameters
  • z (Quantity) – Geometric altitude.

  • r0 (Quantity) – Planet/Natural satellite radius.

Returns

h – Geopotential altitude.

Return type

Quantity

poliastro.earth.atmosphere.util.z_to_h
poliastro.earth.atmosphere.util.geopotential_to_geometric(h, r0)

Converts from given geopotential altitude to geometric one.

Parameters
  • h (Quanity) – Geopotential altitude.

  • r0 (Quantity) – Planet/Natural satellite radius.

Returns

z – Geometric altitude.

Return type

Quantity

poliastro.earth.atmosphere.util.h_to_z
poliastro.earth.atmosphere.util.gravity(z, g0, r0)

Relates Earth gravity field magnitude with the geometric height.

Parameters
  • z (Quantity) – Geometric height.

  • g0 (Quantity) – Gravity value at sea level.

  • r0 (Quantity) – Planet/Natural satellite radius.

Returns

g – Gravity value at given geometric altitude.

Return type

Quantity