Skip to content
code-lab-orgPublic

About

Tradespace Analysis Toolkit for Constellations (version 3) Library

Resources

Stars

19 stars

Watchers

3 watching

Forks

Repository files navigation

Tradespace Analysis Toolkit for Constellations (TAT-C)

PyPI Python Versions Unit Tests Documentation License DOI

The Tradespace Analysis Toolkit for Constellations (TAT-C) provides low-level data structures and functions for systems engineering analysis and design of Earth-observing space missions suitable for pre-Phase A concept studies. It models observing systems, from one satellite to architectures of platforms of every kind, analyzes what they observe and how quickly their data arrive, and searches trade spaces of mission designs.

Documentation: https://tatc.readthedocs.io

Repository: https://github.com/code-lab-org/tatc

Capabilities

  • Observing systems: satellites in circular, sun-synchronous, repeat ground track, geosynchronous, Molniya, Tundra, Keplerian, and two-line element orbits, alone or in Walker, train, and other constellations; pointed and conical instruments (such as scanners, pushbrooms, and radars), limb sounders, and radio occultation receivers; aircraft on trajectories, surface platforms, and ground-based radars; and the ground stations and relay satellites that receive their data.
  • Coverage and sampling: observations of points, regions, and moving features; ground tracks and swaths; revisit and coverage metrics; coincident observations across platforms; limb soundings, radio occultations, and satellite-to-satellite views; the dilution of precision of navigation constellations; and the sample sizes and quality of observations.
  • Latency and data flow: the latencies of observations through contacts with ground stations and relays, or through the flow of data with radio link budgets, onboard storage, and shared antennas; responses to events and the tasking of agile spacecraft.
  • Observing system simulation experiments (OSSEs): sampling nature runs on regular, curvilinear, and unstructured grids over the footprints of observations and at vertical levels, simulated observation errors, the features of a nature run, the sufficiency of sampling, and export of observations to CF-netCDF and JEDI IODA files.
  • Spacecraft sizing: the density of the thermosphere, orbit lifetime and decay, delta-v and propellant budgets, and spacecraft sized for their orbits and lives.
  • Trade studies: design spaces evaluated under uncertainty, with simulated failures and staged deployments, cost and its risk, Pareto fronts, sensitivity and variance attribution, scenarios, utility, and searches with optimizers.
  • Catalog: ready-to-use instruments of operational missions and baseline systems (satellite programs, ground and relay networks, radar and surface networks, and navigation constellations) with sourced values, validated against reference data under a published standard.
  • Visualization: maps, gridded layers, distributions, and animations of analysis results.

Installation

TAT-C requires Python 3.10–3.14. Install the latest release from PyPI:

pip install tatc

Development Installation

To work with the source code, clone the repository and install the tatc library in "editable" mode:

pip install -e .

Note: the following optional dependencies are available with bracket notation:

  • pip install -e ".[dev]": for development (unit testing, coverage, and linting)
  • pip install -e ".[docs]": for generating documentation
  • pip install -e ".[examples]": for running optional examples (includes visualization)
  • pip install -e ".[visualization]": for plotting analysis results with tatc.visualization (matplotlib and cartopy)
  • pip install -e ".[osse]": for running optional observing system simulation experiment (OSSE) examples, and for tatc.export, preprocess.find_features, and sampling fields on curvilinear and unstructured grids
  • pip install -e ".[preprocess]": for preprocessing functions (e.g., terrain masks)
  • pip install -e ".[airborne]": for planning flights and modeling sensors with HyPlan, whose outputs the airborne preprocessing functions read (these functions do not require HyPlan)
  • pip install -e ".[tradespace]": for parallel trade studies and searches with optimizers (joblib, Optuna, and pymoo)
  • pip install -e ".[validation]": for running validation notebooks (includes examples and preprocess)

Multiple optional dependencies can be installed with a comma-separated list (e.g., pip install -e ".[dev,examples]")

Development Tools

Development tools are applicable when working with the source code.

Unit Tests

Run unit tests with pytest (installed with the dev optional dependencies):

pytest

Tests can run in parallel with pytest-xdist (e.g., with 8 workers):

pytest -n 8

Run a subset of tests by file, or by a keyword expression with -k:

pytest tests/analysis/test_point_sampling.py -k "geodataframe"

The tests are written with unittest, so python -m unittest also runs them without pytest.

Unit tests run numba-compiled functions (see below) compiled, which coverage cannot trace. To include them in a test coverage report, run the tests with the environment variable NUMBA_DISABLE_JIT=1 (e.g., in bash):

NUMBA_DISABLE_JIT=1 coverage run -m pytest

including html output:

coverage html

Compiled Functions

Numerical functions in tatc.utils are compiled with numba (njit(cache=True)), which caches the compiled machine code in __pycache__ directories next to the source files (or in the directory set by the NUMBA_CACHE_DIR environment variable). Numba recompiles a function only if its own source file changes, so after editing values it uses from other modules (e.g., in tatc/constants.py) or other compiled functions it calls (e.g., in tatc/utils/orbital.py), clear the cache from the project root with:

python -c "import pathlib; [p.unlink() for p in pathlib.Path('src').rglob('*.nb[ci]')]"

Documentation

Generate documentation from the docs directory using the command:

make html

Code Style

This project uses the black code style, applied from the project root:

black .

Pull requests are also linted with pylint, which must score at least 9.0:

pylint --rcfile=.pylintrc src/tatc

License

This project is licensed under the BSD 3-Clause License — see LICENSE for details.

Citation

If you use TAT-C in your research, please cite it using the metadata in CITATION.cff, or the DOI badge above for the latest release.

Contact

Paul T. Grogan paul.grogan@asu.edu

Acknowledgements

This project was supported in part by the National Aeronautics and Space Administration (NASA) Earth Science Division (ESD) Earth Science Technology Office (ESTO) Advanced Information Systems Technology (AIST) program. Financial support is acknowledged under NASA grant numbers: NNX17AE06G, 80NSSC17K0586, 80NSSC20K1118, 80NSSC21K1515, 80NSSC22K1705, 80NSSC24K0575, 80NSSC24K0921; NASA Jet Propulsion Laboratory subcontracts: 1689594, 1686623, 1704657, 1705655, 1725054; Texas A & M University subaward M2403907.

Current Project Team

Project Alumni

  • I. Josue Tapia-Tamayo
  • Suvan Kumar
  • Isaac Feldman
  • Hayden Daly
  • Lindsay Portelli
  • Matthew Sabatini
  • Evan Abel
  • Sigfried Hache

About

Tradespace Analysis Toolkit for Constellations (version 3) Library

Resources

Stars

19 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages