caspy (Conjunction Analysis and Screening with Python) is Python software for ephemeris screening and conjunction analysis. caspy reads ephemerides from CCSDS OEM files and writes conjunction events to CDM files.
-
Install the orbdetpy https://github.com/ut-astria/orbdetpy
develop
branch. -
Run
pip install -r requirements.txt
to install Python dependencies.
-
Run
python caspy/cas.py
for command line syntax. You can also import thecaspy
package and call therun_cas()
function from your own Python code. Therun_cas()
arguments mirror the CLI parameters. -
Space-Track publishes operator ephmerides in the "Modified ITC" format detailed in https://www.space-track.org/documents/Spaceflight_Safety_Handbook_for_Operators.pdf. Use
utils/meme_to_oem.py
to convert these files to OEM format. -
Download the UT object catalog ID file to ensure caspy uses object identifiers consistently. The file must be updated frequently to account for launches etc. Provide the fully qualified file name in the environment variable
CASPY_OBJECT_CATALOG
before running caspy. For example:
export CASPY_OBJECT_CATALOG=$HOME/object_catalog.csv
curl -o $CASPY_OBJECT_CATALOG http://astria.tacc.utexas.edu/AstriaGraph/OD_stats/object_catalog.csv
Docker
You will first need to clone orbdetpy and build its docker image as posted here.
docker build -t caspy:core .
docker run --rm caspy:core -h
examples/tle_cas.py
demonstrates TLE screening functionality.