astrocalc.cl_utils module

Documentation for astrocalc can be found here: http://astrocalc.readthedocs.org

Usage:

astrocalc [-c] coordflip astrocalc sep astrocalc timeflip astrocalc trans astrocalc now mjd astrocalc dist (z|mpc) [–hc= –wm= –wv=]

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

Options:
-v, --version

show version

-h, --help

show this help message

-m, --mpc

distance in mpc

-z, --redshift

redshift distance

-c, --cartesian

convert to cartesian coordinates

-s, –settings the settings file

tab_complete(text, state)[source]
main(arguments=None)[source]

The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command