Orbits Commands¶
The orbits command group provides calculations for: - Orbital period and semi-major axis - Mean motion - Anomaly conversions (mean, eccentric, true) - Sun-synchronous orbit design - Perigee and apogee velocities
All commands support constant expressions (e.g., R_EARTH+500e3).
Commands¶
orbital-period¶
Calculate the orbital period from semi-major axis.
Syntax:
Arguments: - SEMI_MAJOR_AXIS - Semi-major axis in meters (supports constants)
Options: - --gm <value> - Gravitational parameter (m³/s²). Default: GM_EARTH - --units [seconds|minutes|hours|days|years] - Output time units (default: seconds) - --format <fmt> - Output format string (default: f)
Examples:
LEO orbit period (500km altitude):
With different units:
GEO orbit period (should be ~24 hours):
Moon's orbit (using GM_EARTH):
Mars orbit (using GM_SUN):
sma-from-period¶
Calculate semi-major axis from orbital period.
Syntax:
Arguments: - PERIOD - Orbital period (supports expressions)
Options: - --units [seconds|minutes|hours|days|years] - Input time units (default: seconds) - --gm <value> - Gravitational parameter (m³/s²). Default: GM_EARTH - --format <fmt> - Output format string (default: f)
Examples:
Find altitude for 90-minute orbit:
Find GEO altitude (24-hour period):
Calculate altitude:
mean-motion¶
Calculate mean motion (radians per second).
Syntax:
Arguments: - SEMI_MAJOR_AXIS - Semi-major axis in meters (supports constants)
Options: - --gm <value> - Gravitational parameter (m³/s²). Default: GM_EARTH - --format <fmt> - Output format string (default: f)
Examples:
Mean motion for LEO (500km):
anomaly-conversion¶
Convert between mean, eccentric, and true anomaly.
Syntax:
Arguments: - ANOMALY - Anomaly value to convert (supports expressions) - ECCENTRICITY - Orbital eccentricity (supports expressions) - INPUT_ANOMALY - Input type: mean, eccentric, or true - OUTPUT_ANOMALY - Output type: mean, eccentric, or true
Options: - --as-degrees / --no-as-degrees - Use degrees (default: --no-as-degrees = radians) - --format <fmt> - Output format string (default: f)
Examples:
Mean anomaly to true anomaly (circular orbit):
Mean to true (eccentric orbit):
True to mean anomaly:
Eccentric to true anomaly:
sun-sync-inclination¶
Calculate the inclination required for a sun-synchronous orbit.
Syntax:
Arguments: - SEMI_MAJOR_AXIS - Semi-major axis in meters (supports constants) - ECCENTRICITY - Eccentricity (supports expressions)
Options: - --as-degrees / --no-as-degrees - Output in degrees (default: --as-degrees) - --format <fmt> - Output format string (default: f)
Examples:
Sun-sync inclination for 500km circular orbit:
Sun-sync for 600km orbit:
Sun-sync for 800km orbit:
Output in radians:
perigee-velocity¶
Calculate orbital velocity at perigee (closest approach).
Syntax:
Arguments: - SEMI_MAJOR_AXIS - Semi-major axis in meters (supports constants) - ECCENTRICITY - Eccentricity (supports expressions)
Options: - --format <fmt> - Output format string (default: f)
Examples:
Circular orbit velocity (500km):
Eccentric orbit perigee velocity:
GTO perigee velocity (highly eccentric):
apogee-velocity¶
Calculate orbital velocity at apogee (farthest point).
Syntax:
Arguments: - SEMI_MAJOR_AXIS - Semi-major axis in meters (supports constants) - ECCENTRICITY - Eccentricity (supports expressions)
Options: - --format <fmt> - Output format string (default: f)
Examples:
Circular orbit (apogee = perigee):
Eccentric orbit apogee velocity:
Compare perigee vs apogee:
See Also¶
- Anomaly Conversions - True, eccentric, and mean anomaly conversions
- Orbital Properties - Orbital period, sun-synchronous inclination, etc.
- Orbits API - Python orbital mechanics functions
- Transform CLI - Coordinate conversions
- Constants - Physical constants for calculations