天文计算器用于进行普通计算、转换和测量的天文学家的计算器
astrocalc的Python项目详细描述
天文学家
天文学家的计算器,用于进行普通的计算、转换和测量。。
用法
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
文档
astrocalc的文档由Read the Docs(最后一个stable version和latest version)托管。
安装
安装astrocalc最简单的方法是使用pip:
pip install astrocalc
或者您可以克隆github repo并从本地版本的代码安装:
git clone git@github.com:thespacedoctor/astrocalc.git
cd astrocalc
python setup.py install
要升级到astrocalc的最新版本,请使用以下命令:
pip install astrocalc --upgrade
发展
如果您想修改代码,请在开发模式下安装。 这意味着您可以修改克隆的repo中的代码:
git clone git@github.com:thespacedoctor/astrocalc.git
cd astrocalc
python setup.py develop
Pull requests 欢迎!
问题
请报告任何问题 here。
许可证
版权所有(c)2016 David Young
特此免费向任何获得 本软件和相关文档文件的副本 “软件”),无限制地处理软件,包括 但不限于使用、复制、修改、合并、发布, 分发、再授权和/或出售软件副本,以及 允许向其提供软件的人员这样做,但须遵守 以下条件:
上述版权公告及本许可公告须包括在内 在软件的所有副本或大部分中。
软件按“原样”提供,不作任何形式的保证 或默示的,包括但不限于 适销性、适合特定目的和不侵权。 在任何情况下,作者或版权持有人均不对任何 索赔、损害赔偿或其他责任,无论是在合同诉讼中, 侵权行为或其他,由 软件或软件中的使用或其他交易。