从stsci panstarrs图像服务器下载堆叠和/或扭曲图像戳的cl-util

panstamps的Python项目详细描述


平底锅

Documentation StatusCoverage Status

一个python包和命令行工具,用于从stsci panstarrs图像服务器下载堆叠和/或扭曲图像戳。

注意

如果使用扭曲的ps1图像,则需要关闭由Pan-STARRS1 data archive白名单中的ip地址的计算机,否则只有堆叠的图像才可供使用。而且w-波段图像还不能从数据存档中访问。

命令行用法

Documentation for panstamps can be found here: http://panstamps.readthedocs.org/en/stable

Usage:
    panstamps [options][--width=<arcminWidth>][--filters=<filterSet>][--settings=<pathToSettingsFile>][--downloadFolder=<path>](warp|stack) <ra> <dec> [<mjdStart> <mjdEnd>]
    panstamps [options] --closest=<beforeAfter> [--width=<arcminWidth>][--filters=<filterSet>][--settings=<pathToSettingsFile>][--downloadFolder=<path>] <ra> <dec> <mjd>

    -h, --help                              show this help message
    -f, --fits                              download fits (default on)
    -F, --nofits                            don't download fits (default off)
    -j, --jpeg                              download jepg (default off)
    -J, --nojpeg                            don't download jepg (default on)
    -c, --color                             download color jepg (default off)
    -C, --nocolor                           don't download color jepg (default on)
    -a, --annotate                          annotate jpeg (default true)
    -A, --noannotate                        don't annotate jpeg (default false)
    -t, --transient                         add a small red circle at transient location (default false)
    -T, --notransient                       don't add a small red circle at transient location (default true)
    -g, --greyscale                         convert jpeg to greyscale (default false)
    -G, --nogreyscale                       don't convert jpeg to greyscale (default true)
    -i, --invert                            invert jpeg colors (default false)
    -I, --noinvert                          don't invert jpeg colors (default true)
    --width=<arcminWidth>                   width of image in arcsec (default 1)
    --filters=<filterSet>                   filter set to download and use for color image (default gri)
    --downloadFolder=<path>                 path to the download folder, relative or absolute (folder created where command is run if not set)
    --settings=<pathToSettingsFile>         the settings file
    --closest=<beforeAfter>                 return the warp closest in time to the given mjd. If you want to set a strict time window then pass in a positive or negative time in sec (before | after | secs)

    ra                                      right-ascension in sexagesimal or decimal degrees
    dec                                     declination in sexagesimal or decimal degrees
    mjdStart                                the start of the time-window within which to select images
    mjdEnd                                  the end of the time-window within which to select images
    mjd                                     report the warp closest in time to this mjd

文档

panstamp的文档由Read the Docs(最后一个stable versionlatest version)托管。

安装

安装panstamp最简单的方法是使用pip

pip install panstamps

或者您可以克隆github repo并从本地版本的代码安装:

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

要升级到panstamps的最新版本,请使用以下命令:

pip install panstamps --upgrade

mac osx故障排除

panstamps使用枕头(python图像库的一个叉子),它需要一些external libraries

如果在OSX上运行panstamp有问题,请尝试安装Homebrew并运行:

brew install libtiff libjpeg webp little-cms2

发展

如果您想修改代码,请在开发模式下安装。 这意味着您可以修改克隆的repo中的代码:

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

Pull requests 欢迎!

升华片段

如果使用Sublime Text作为代码编辑器,并且计划使用panstamp开发自己的python代码,则可能会发现my Sublime Snippets很有用。

问题

请报告任何问题 here

许可证

版权所有(c)2018 David Young

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

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

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

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

推荐PyPI第三方库


热门话题
Java程序运行时错误   JavaAndroidStudio:与往常一样,四舍五入到next.5或.0   apache使用Java以表单数据形式上载文件   带矢量的java Freeflight相机如何正确旋转?   java如何以编程方式检索有关当前项目的语言、操作系统、体系结构等信息   java Twitter4J tweet实体?   java PdfBox编码异常   java在拖动未装饰的舞台时,如何强制光标停留在窗口上   JavaSpring注释扫描优化   java无法通过IntelliJ Idea在tomcat上运行服务   java在生命周期中如何拦截请求?   java中的数组返回错误