Brahe CLI¶
The Brahe command-line interface provides tools for quick-access time, coordinate, and orbital mechanics calculations directly from the terminal. It also provides functions to download Earth Orientation Parameters (EOP) and satellite datasets.
Installation¶
The CLI is included with the Brahe Python package:
Quick Start¶
Command Groups¶
eop¶
Earth Orientation Parameter operations: - download - Download EOP data from IERS - get-utc-ut1 - Get UTC-UT1 offset - get-polar-motion - Get polar motion parameters - get-cip-offset - Get CIP offset - get-lod - Get length of day
datasets¶
Download and query satellite data: - celestrak - CelesTrak TLE data operations - groundstations - Ground station database operations
time¶
Time system operations and conversions:
convert- Convert between time formats (MJD, JD, GPS, ISO-8601)add- Add time offsets to epochstime-system-offset- Calculate offsets between time systemsrange- Generate time ranges
orbits¶
Orbital mechanics calculations:
orbital-period- Calculate orbital period from semi-major axissma-from-period- Calculate semi-major axis from periodmean-motion- Calculate mean motionanomaly-conversion- Convert between anomaly typessun-sync-inclination- Calculate sun-synchronous inclinationperigee-velocity/apogee-velocity- Calculate velocities at apsides
transform¶
Convert between coordinate systems and reference frames:
coordinates- Convert between Keplerian, Cartesian, Geodetic, and Geocentric representations
access¶
Satellite access window calculations: - compute - Calculate visibility windows for ground stations
Global Options¶
Features¶
Constant Expressions¶
Many numeric arguments support mathematical expressions using Brahe constants:
Available constants include: - R_EARTH, R_SUN, R_MOON - Body radii (meters) - GM_EARTH, GM_SUN, GM_MOON - Gravitational parameters (m³/s²) - DEG2RAD, RAD2DEG - Angular conversions - MJD_ZERO, MJD2000, GPS_ZERO - Time epoch constants
See the Constants documentation for the complete list.