天文计算器用于进行普通计算、转换和测量的天文学家的计算器

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 versionlatest 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

特此免费向任何获得 本软件和相关文档文件的副本 “软件”),无限制地处理软件,包括 但不限于使用、复制、修改、合并、发布, 分发、再授权和/或出售软件副本,以及 允许向其提供软件的人员这样做,但须遵守 以下条件:

上述版权公告及本许可公告须包括在内 在软件的所有副本或大部分中。

软件按“原样”提供,不作任何形式的保证 或默示的,包括但不限于 适销性、适合特定目的和不侵权。 在任何情况下,作者或版权持有人均不对任何 索赔、损害赔偿或其他责任,无论是在合同诉讼中, 侵权行为或其他,由 软件或软件中的使用或其他交易。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
解组时找不到java类   java如何使用生成器模式实现类的Parcelable   java找不到元素“webflow:flowbuilderservices”的声明   java无法使用JexcelAPI写入excel文件   Java反射:如何获得评论?   机器学习Java Weka获取具有给定属性值的所有实例   ant任务将属性文件复制到java构建目录中相应的位置   将指数方程转换为Java代码时出现问题   多线程Java锁定结构最佳模式   java我需要一些关于这些公式实现的帮助   java使用截击在片段上显示图像   数组需要帮助解决Java中的ArrayIndexOutOfBounds异常   java我有时会出错,有时不会?   java改造如何从json对象获取响应   java如何读取Android崩溃日志?   类获取java中的超级接口   java Tomcat连接池配置:数据源类型和“连接太多”错误   java BroadcastReceiver OnReceive无法正常工作   基于JDK8/JRE8+eclipseluna的java-Google应用程序引擎开发   java JSwing简单按钮/JFXPanel布局