Skip to main content

Read and write MPCORB files from minor planet center

Project description

https://img.shields.io/pypi/v/mpcorbfile.svg Documentation Status

Read and write MPCORB files from minor planet center.

Features

This package provides a simple interface to read and write MPCORB files from the minor planet center formated as described in https://minorplanetcenter.net/iau/info/MPOrbitFormat.html

Its not provides any kind of orbital calculation, just read and write the files. See Usage for more details.

Reading:

import mpcorbfile

#read MPCORB.DAT download  from:
#https://www.minorplanetcenter.net/iau/MPCORB/MPCORB.DAT
mpc = mpcorbfile.mpcorb_file('MPCORB.DAT')
#mpc.bodies it's a list of dictionaries with the data
print(f'{mpc.bodies[0]})
{'packed_designation': 'a7943',
'H': 24.19,
'G': 0.15,
'Epoch': datetime.datetime(2025, 5, 5, 0, 0),
'M': 184.7538,
'Peri': 195.63684,
'Node': 146.91033,
'i': 11.6102,
'e': 0.0894684,
'n': 1.13494811,
'a': 0.9102319,
'U': '2',
'Ref': 'E2024-JU2',
'Num_obs': 1055,
'Num_opps': 2,
'Arc_length': '2012-2013',
'rms': 0.36,
'Perturbers': 'M-v',
'Perturbers_2': '3Ek',
'Computer': 'Veres',
'Hex_flags': 2049,
'Number': '(367943)',
'Name': 'Duende',
'Last_obs': '20130221',
'epochJD': 2460800.5,
'designation': '367943',
'discover_date': nan,
'orbit_type': 'NEO;Athen'}

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

mpcorbfile-1.0.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

mpcorbfile-1.0.4-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file mpcorbfile-1.0.4.tar.gz.

File metadata

  • Download URL: mpcorbfile-1.0.4.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.11.0-19-generic

File hashes

Hashes for mpcorbfile-1.0.4.tar.gz
Algorithm Hash digest
SHA256 60847e942002fcca885dd32bdf38eaae1ae24c4527e64d08d1b3f2f4dc97282a
MD5 55e8dcde21d069cc6321364eabaa776f
BLAKE2b-256 11d01b85cea807d87b4a6999515fc76e7a64bb409992936c13f2260158639e5d

See more details on using hashes here.

File details

Details for the file mpcorbfile-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: mpcorbfile-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.11.0-19-generic

File hashes

Hashes for mpcorbfile-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2cff60854dac838c662d245f2945722e049b7f3091a8865b421821d63196a3ad
MD5 fbf05b1d32dd20b93a13d8a21f1717de
BLAKE2b-256 8d01b04979a4962f05a62889f22cf70302fec6e36dde533f454ba34a2510156a

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