Metadata-Version: 2.0
Name: astrocalc
Version: 0.3.0
Summary: An astronomer's calculator used to perform common calculations, conversions and measurements.
Home-page: https://github.com/thespacedoctor/astrocalc
Author: David Young
Author-email: davidrobertyoung@gmail.com
License: MIT
Download-URL: https://github.com/thespacedoctor/astrocalc/archive/v0.3.0.zip
Description-Content-Type: UNKNOWN
Keywords: tools,astronomy
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Utilities
Requires-Dist: fundamentals
Requires-Dist: pyyaml

astrocalc 
=========================

*An astronomer's calculator used to perform common calculations, conversions and measurements.*.

Usage
======

.. code-block:: bash 

    astrocalc [-c] coordflip <ra> <dec>
    astrocalc sep <ra1> <dec1> <ra2> <dec2>
    astrocalc timeflip <datetime>
    astrocalc trans <ra> <dec> <north> <east>
    astrocalc now mjd
    astrocalc dist (-z | -m) <distVal> [--hc=hVal --wm=OmegaMatter --wv=OmegaVacuum]


    COMMANDS:
    ========
        coordflip             flip coordinates between decimal degrees and sexegesimal and vice-versa
        sep                   calculate the separation between two locations in the sky.
        timeflip              flip time between UT and MJD.
        trans                 translate a location across the sky (north and east in arcsec)
        now                   report current time in various formats
        dist                  convert distance between mpc to z

    VARIABLES:
    ==========
        ra, ra1, ra2          right-ascension in deciaml degrees or sexegesimal format
        dec, dec1, dec2       declination in deciaml degrees or sexegesimal format
        datetime              modified julian date (mjd) or universal time (UT). UT can be formated 20150415113334.343 or "20150415 11:33:34.343" (spaces require quotes)
        north, east           vector components in arcsec
        distVal               a distance value in Mpc (-mpc) or redshift (-z)
        hVal                  hubble constant value. Default=70 km/s/Mpc
        OmegaMatter           Omega Matter. Default=0.3
        OmegaVacuum           Omega Vacuum. Default=0.7

    -h, --help            show this help message
    -m, --mpc             distance in mpc
    -z, --redshift        redshift distance
    -c, --cartesian       convert to cartesian coordinates

Documentation
=============

Documentation for astrocalc is hosted by `Read the Docs <http://astrocalc.readthedocs.org/en/stable/>`__ (last `stable version <http://astrocalc.readthedocs.org/en/stable/>`__ and `latest version <http://astrocalc.readthedocs.org/en/latest/>`__).

Installation
============

The easiest way to install astrocalc is to use ``pip``:

.. code:: bash

    pip install astrocalc

Or you can clone the `github repo <https://github.com/thespacedoctor/astrocalc>`__ and install from a local version of the code:

.. code:: bash

    git clone git@github.com:thespacedoctor/astrocalc.git
    cd astrocalc
    python setup.py install

To upgrade to the latest version of astrocalc use the command:

.. code:: bash

    pip install astrocalc --upgrade


Development
-----------

If you want to tinker with the code, then install in development mode.
This means you can modify the code from your cloned repo:

.. code:: bash

    git clone git@github.com:thespacedoctor/astrocalc.git
    cd astrocalc
    python setup.py develop

`Pull requests <https://github.com/thespacedoctor/astrocalc/pulls>`__
are welcomed!


Issues
------

Please report any issues
`here <https://github.com/thespacedoctor/astrocalc/issues>`__.

License
=======

Copyright (c) 2018 David Young

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



