Skip to main content

Wrapper for Bill Gray's fo, the programmatic version of find_orb

Project description

adam-fo

A Python wrapper for Find_Orb orbit determination software, designed to work seamlessly with adam_core.

Overview

adam-fo provides a Python interface to Bill Gray's Find_Orb orbit determination software, allowing you to:

  • Determine orbits from ADES-formatted observations
  • Get orbit state vectors and covariance matrices in adam_core format
  • Identify rejected observations from the orbit determination process

Installation

  1. First, install the package using your preferred Python package manager:
pip install adam-fo
  1. After installation, you need to build Find_Orb and its dependencies. Run:
build-fo

This will:

  • Clone and build required repositories (lunar, sat_code, jpl_eph, find_orb, miscell)
  • Download necessary ephemeris files
  • Install everything in your XDG data directory (typically ~/.local/share/adam_fo)

Usage

Here's a basic example of using adam-fo with adam_core:

from adam_fo import fo
from adam_core.observations import ADESObservations

# Load your ADES-formatted observations
ades_string = """
# Example ADES PSV format
# version=2017
permID|trkSub|mode|stn|obsTime|ra|dec|rmsRA|rmsDec|astCat
|2020_CD3|CCD|F51|2020-02-18T10:11:22.000|180.5876|10.4789|0.15|0.15|Gaia2
"""

# Run orbit determination
orbits, rejected_observations, error = fo(ades_string)

if error is None:
    print(f"Successfully determined {len(orbits)} orbit(s)")
    print(f"Number of rejected observations: {len(rejected_observations)}")
    
    # Access orbit parameters (in ecliptic coordinates)
    coords = orbits.coordinates
    print("State vector at epoch:")
    print(f"Position (AU): {coords.x[0]}, {coords.y[0]}, {coords.z[0]}")
    print(f"Velocity (AU/day): {coords.vx[0]}, {coords.vy[0]}, {coords.vz[0]}")
    
else:
    print(f"Orbit determination failed: {error}")

Key Features

  1. ADES Format Support: Works with ADES-formatted observations, the standard format for minor planet astrometry.

  2. adam_core Integration: Returns results as adam_core objects:

    • Orbits in adam_core.orbits.Orbits format
    • Rejected observations in adam_core.observations.ADESObservations format
  3. Covariance Information: Includes full 6x6 covariance matrices for orbit uncertainty analysis.

  4. Automatic Setup: Handles Find_Orb installation and configuration automatically.

Configuration

Find_Orb configuration is handled through environment variables and configuration files:

  • Default configuration is stored in the installed package
  • Custom configuration can be placed in ~/.local/share/adam_fo/find_orb/find_orb/environ.dat
  • Ephemeris files are automatically downloaded and configured

Notes

  • Orbit state vectors are returned in ecliptic coordinates centered on the Sun
  • Times are in TT (Terrestrial Time) scale
  • Positions are in AU and velocities in AU/day
  • Covariance matrices correspond to the cartesian state vector

Requirements

  • Python 3.11+
  • adam_core
  • Build tools (gcc, make)
  • Git

License

This project is licensed under the GPL License to be compatible with Find_Orb itself.

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

adam_fo-0.0.1.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

adam_fo-0.0.1-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file adam_fo-0.0.1.tar.gz.

File metadata

  • Download URL: adam_fo-0.0.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.2 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for adam_fo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 356c601471e3d00019eaede6d63a426830bfce0e9c0d8766fad0bbeb9d87af77
MD5 00d73c122adcf6f6eaef2a333c5e850f
BLAKE2b-256 3946fb4a4e4f808bd560c122036133192e6fffa3e2a7df721a6d16e20c08b4c3

See more details on using hashes here.

File details

Details for the file adam_fo-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: adam_fo-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.2 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for adam_fo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 522df7267d605851ca1cce35199a1b7fc57e570ffb295d01c959a92909f18289
MD5 fec758dde1e48c6237e7a7a066839396
BLAKE2b-256 9065e0386833137f435f56986ba34d02e1ff94f5bcda70af9ae65b947364094b

See more details on using hashes here.

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