hapsira.core.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.

Attributes

z_to_h

h_to_z

hapsira.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

hapsira.core.earth_atmosphere.util.z_to_h
hapsira.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

hapsira.core.earth_atmosphere.util.h_to_z
hapsira.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