Skip to main content

Run GMAT mission scripts from Python and get results as pandas DataFrames.

Project description

gmat-run

CI Docs PyPI Python versions License: MIT

Run GMAT mission scripts from Python and get results as pandas DataFrames.

What this is

A thin, Pythonic wrapper around NASA GMAT's own gmatpy runtime. You bring a working .script; gmat-run loads it, lets you override fields from Python, runs the mission headlessly, and returns ReportFile / ephemeris / ContactLocator output as pandas DataFrames.

What this is not

  • Not a way to build GMAT missions from scratch in Python — see gmatpyplus for that.
  • Not a .script text generator — see pygmat.
  • Not a parallel sweep runner — that's a future astro-tools project (gmat-sweep) built on top.

Requirements

  • Python 3.10, 3.11, or 3.12.
  • A local GMAT install. gmat-run does not ship GMAT binaries — install GMAT separately from gmat.gsfc.nasa.gov.

Supported GMAT versions

GMAT release Status CI
R2026a Primary development target Exercised on every PR (Ubuntu + Windows)
R2025a Expected to work Not exercised in CI for v0.1
R2024a Expected to work Not exercised in CI for v0.1
R2023a Expected to work Not exercised in CI for v0.1
R2022a Expected to work Not exercised in CI for v0.1

A wider CI matrix is planned for a follow-up release; report any version-specific breakage as an issue and we'll add a CI cell for it.

Installation

Not yet on PyPI. To work on gmat-run itself:

git clone https://github.com/astro-tools/gmat-run.git
cd gmat-run
uv sync --all-groups

Quick start

Load a script, override a field, run the mission, and read the resulting ReportFile as a pandas DataFrame:

from gmat_run import Mission

mission = Mission.load("flyby.script")
mission["Sat.SMA"] = 7000
result = mission.run()
result.reports["ReportFile1"].plot(x="UTCGregorian", y="Sat.Earth.Altitude")

Mission.load discovers a local GMAT install (honouring the GMAT_ROOT environment variable or a gmat_root= argument), bootstraps gmatpy, and parses the script into the live GMAT object graph. Subscript access reads and writes fields against that graph with type coercion. mission.run() executes the mission sequence headlessly, captures GMAT's log, and returns a Results whose reports mapping parses each ReportFile to a DataFrame on first access — with UTCGregorian and *ModJulian epoch columns promoted to datetime64[ns].

Documentation

Full docs at https://astro-tools.github.io/gmat-run/, including a getting-started guide, GMAT install instructions, and the API reference.

Licence

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmat_run-0.1.0.tar.gz (208.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmat_run-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file gmat_run-0.1.0.tar.gz.

File metadata

  • Download URL: gmat_run-0.1.0.tar.gz
  • Upload date:
  • Size: 208.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gmat_run-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44b302581fda158815601e9a929642673c832d362d2bc3e10cce76291c8ee17b
MD5 05723296abb0d1f2a82d87f29d19d40e
BLAKE2b-256 139d2ef9d348b666acd3f03740af0993df36561cb2a4a0de9f55d359cd7b3060

See more details on using hashes here.

Provenance

The following attestation bundles were made for gmat_run-0.1.0.tar.gz:

Publisher: release.yml on astro-tools/gmat-run

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gmat_run-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gmat_run-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gmat_run-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 463ccac0672e2792f763fa1e225cf3bab14e94a9492ae9414f363787b9b36f59
MD5 398a1092b512e2f444b6fd74c5fda909
BLAKE2b-256 6e8649e06408ce281e2897c5032eb912b097fc569c2dbdf3fde196cb4be17237

See more details on using hashes here.

Provenance

The following attestation bundles were made for gmat_run-0.1.0-py3-none-any.whl:

Publisher: release.yml on astro-tools/gmat-run

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page