semvec/pypi-packages huggingface dataset:
odmpy 0.2.4
Create valid ASCII OPM, OMM, and OEM files.
License: MIT

Orbit Data Messages
-------------------

|Build Status| |Test Coverage| |PyPI Version| |Python Version| |MIT
License|

odmpy is a python package for creating valid ASCII OPM, OMM, and OEM
files.

Currently, only the orbital parameter message (OPM) module has been
implemented.

Installation
~~~~~~~~~~~~

.. code:: bash

    $ pip install odmpy

Example
~~~~~~~

.. code:: python

    import odmpy.opm as opm
    from datetime import datetime

    header = opm.Header(originator='NASA')

    metadata = opm.Metadata(
        object_name='International Space Station',
        object_id='1998-067A',
        center_name='Earth',
        ref_frame=opm.RefFrame.EME2000,
        time_system=opm.TimeSystem.UTC)

    sv = opm.DataBlockStateVector(
        epoch=datetime(2014, 11, 7, 15, 30, 23),
        x=6794,
        y=0,
        z=0,
        x_dot=0,
        y_dot=7.6,
        z_dot=0)

    data = opm.Data(state_vector=sv)

    iss = opm.Opm(header, metadata, data)

    with open('iss.opm', 'w') as f:
        iss.write(f)

`Go to Package Documentation <http://pythonhosted.org/odmpy/>`__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. |Build Status| image:: http://img.shields.io/travis/RazerM/odmpy.svg?style=flat-square
   :target: https://travis-ci.org/RazerM/odmpy
.. |Test Coverage| image:: http://img.shields.io/codecov/c/github/RazerM/odmpy.svg?style=flat-square
   :target: https://codecov.io/github/RazerM/odmpy
.. |PyPI Version| image:: http://img.shields.io/pypi/v/odmpy.svg?style=flat-square
   :target: https://pypi.python.org/pypi/odmpy/
.. |Python Version| image:: http://img.shields.io/badge/python-3.0%2B-brightgreen.svg?style=flat-square
   :target: https://www.python.org/downloads/
.. |MIT License| image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
   :target: https://raw.githubusercontent.com/RazerM/odmpy/master/LICENSE