Cislunar Space Beginner's GuideCislunar Space Beginner's Guide
  • Satellite Orbit Simulation
  • Historical Inquiry
Cislunar Glossary
Resources & Tools
Space News
AI Q&A
Forum
Home
Gitee
GitHub
  • 简体中文
  • English
  • Satellite Orbit Simulation
  • Historical Inquiry
Cislunar Glossary
Resources & Tools
Space News
AI Q&A
Forum
Home
Gitee
GitHub
  • 简体中文
  • English
  • Site map

    • Home (overview)
    • Intro · what is cislunar space
    • Orbits · spacecraft trajectories
    • Frontiers · directions & labs
    • Glossary · terms & definitions
    • Tools · data & code
    • News · space industry archive
  • Resources & Tools (Data, Code & Datasets)

    • Resources & Tools
    • Simulation Software

      • /en/resources-tools/gmat/
      • /en/resources-tools/stk/
      • /en/resources-tools/atk/
      • /en/resources-tools/cesium/
    • Core Algorithm Libraries

      • e2m2e - Cislunar Space Orbit Design Library
      • scipy - Python Scientific Computing Library
      • r2s2 - Cislunar Space-Time Coordinate Transformation Library
      • /en/resources-tools/orekit/
      • /en/resources-tools/poliastro/
      • /en/resources-tools/basilisk/
      • /en/resources-tools/pykep/
    • Data Resources

      • Cislunar Space Research Datasets
    • AI & Cloud Platforms

      • /en/resources-tools/digital-lunar/
      • /en/resources-tools/llm/
      • /en/resources-tools/naoc-data/

r2s2

r2s2 is a cislunar space-time coordinate transformation library supporting conversions between various coordinate systems.

Main Features

  • Space-Time Coordinate Conversion: Supports conversion between common cislunar coordinate systems
  • Time System Conversion: TT, TAI, UTC, UT1 and other time systems
  • Epoch Conversion: Julian Date, Modified Julian Date, time tags
  • Coordinate System Definitions: J2000, EME2000, ICRF, etc.

Installation

pip install r2s2

Supported Coordinate Systems

Coordinate SystemDescription
J2000J2000.0 Mean Equator Coordinate System
EME2000Earth Mean Equator 2000
ICRFInternational Celestial Reference Frame
LVLHLocal Vertical Local Horizontal
RTNRadial-Tangential-Normal

Supported Time Systems

Time SystemDescription
TTTerrestrial Time
TAIInternational Atomic Time
UTCCoordinated Universal Time
UT1Universal Time
JDJulian Date
MJDModified Julian Date

Example Usage

import r2s2
from r2s2 import TimeSystem, CoordinateSystem

# Time conversion
jd = r2s2.tt_to_jd(tt_time)
utc_time = r2s2.jd_to_utc(jd)

# Coordinate conversion
state_eci = [7000, 0, 0, 0, 7.5, 0]  # km, km/s
state_lvlh = r2s2.eci_to_lvlh(state_eci, position, velocity)

# Batch conversion
times = [jd, jd + 0.5, jd + 1.0]
states_eci = [...]  # ECI coordinate states
states_rtln = r2s2.batch_transform(times, states_eci, 
                                   CoordinateSystem.ECI, 
                                   CoordinateSystem.RTN)

Resources

  • r2s2 GitHub Repository
Improve this page
Last Updated: 3/31/26, 7:46 PM
Contributors: ouyangjiahong
Prev
scipy - Python Scientific Computing Library
Next
/en/resources-tools/orekit/
地月空间入门指南
Cislunar Space Beginner's GuideYour guide to cislunar space
View on GitHub

Navigate

  • Home
  • About
  • Space News
  • Glossary

Content

  • Cislunar Orbits
  • Research
  • Resources

English

  • Home
  • About
  • Space News
  • Glossary

Follow Us

© 2026 Cislunar Space Beginner's Guide  |  湘ICP备2026006405号-1
Related:智慧学习助手 UStudy航天任务工具箱 ATK
支持我
鼓励和赞赏我感谢您的支持