poliastro.core.earth_atmosphere.util

This script holds several utilities related to atmospheric computations.

Summary

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.

Contents

poliastro.core.earth_atmosphere.util.geometric_to_geopotential(z, r0)

Converts from given geometric altitude to geopotential one.

Parameters
  • z (float) – Geometric altitude.

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

Returns

h – Geopotential altitude.

Return type

float

poliastro.core.earth_atmosphere.util.z_to_h
poliastro.core.earth_atmosphere.util.geopotential_to_geometric(h, r0)

Converts from given geopotential altitude to geometric one.

Parameters
  • h (float) – Geopotential altitude.

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

Returns

z – Geometric altitude.

Return type

float

poliastro.core.earth_atmosphere.util.h_to_z
poliastro.core.earth_atmosphere.util.gravity(z, g0, r0)

Relates Earth gravity field magnitude with the geometric height.

Parameters
  • z (float) – Geometric height.

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

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

Returns

g – Gravity value at given geometric altitude.

Return type

float