跳转到主要内容

根据FITS图像创建二进制掩码

项目描述

breizorro

给定FITS图像创建二进制掩码的工具

安装

源代码安装,源代码检出的工作目录

$ pip install .

此软件包在PYPI上可用,允许

$ pip install breizorro

显示帮助信息并退出

$ breizorro --help

  breizorro.breizorro - 2022-08-24 11:07:39,311 INFO - Welcome to breizorro
  breizorro.breizorro - 2022-08-24 11:07:39,375 INFO - Version: 0.1.1
  breizorro.breizorro - 2022-08-24 11:07:39,375 INFO - Usage: breizorro --help
  usage: breizorro [-h] [-r IMAGE] [-m MASK] [-t THRESHOLD] [-b BOXSIZE]
                   [--savenoise] [--merge MASKs|REGs) [MASK(s|REGs) ...]]
                   [--subtract MASK(s|REGs) [MASK(s|REGs ...]]
                   [--number-islands] [--remove-islands N|COORD [N|COORD ...]]
                   [--ignore-missing-islands]
                   [--extract-islands N|COORD [N|COORD ...]]
                   [--minimum-size MINSIZE] [--make-binary] [--invert]
                   [--dilate R] [--erode N] [--fill-holes] [--sum-peak SUM_PEAK]
                   [-o OUTFILE] [--gui]

  breizorro [options] --restored-image restored_image

  optional arguments:
       -h, --help            show this help message and exit
       -r IMAGE, --restored-image IMAGE
                             Restored image file from which to build mask
       -m MASK, --mask-image MASK
                             Input mask file(s). Either --restored-image or --mask-
                             image must be specfied.
       -t THRESHOLD, --threshold THRESHOLD
                             Sigma threshold for masking (default = 6.5)
       -b BOXSIZE, --boxsize BOXSIZE
                             Box size over which to compute stats (default = 50)
       --savenoise           Enable to export noise image as FITS file (default=do
                             not save noise image)
       --merge MASK(s)|REG(s) [MASK(s)|REG(s) ...]
                             Merge in one or more masks or region files
       --subtract MASK(s)|REG(s) [MASK(s)|REG(s) ...]
                             Subract one or more masks or region files
       --number-islands      Number the islands detected (default=do not number
                             islands)
       --remove-islands N|COORD [N|COORD ...]
                             List of islands to remove from input mask. e.g.
                             --remove-islands 1 18 20 20h10m13s,14d15m20s
       --ignore-missing-islands
                             If an island specified by coordinates does not exist,
                             do not throw an error
       --extract-islands N|COORD [N|COORD ...]
                             List of islands to extract from input mask. e.g.
                             --extract-islands 1 18 20 20h10m13s,14d15m20s
       --minimum-size MINSIZE
                             Remove islands that have areas fewer than or equal to
                             the specified number of pixels
       --make-binary         Replace all island numbers with 1
       --invert              Invert the mask
       --dilate R            Apply dilation with a radius of R pixels
       --erode N             Apply N iterations of erosion
       --fill-holes          Fill holes (i.e. entirely closed regions) in mask
       --sum-peak SUM_PEAK   Sum to peak ratio of flux islands to mask in original
                             image.e.g. --sum-peak 100 will mask everything with a
                             ratio above 100
       -o OUTFILE, --outfile OUTFILE
                             Suffix for mask image (default based on input name
       --gui                 Open mask in gui.

许可证

本项目许可协议为GNU通用公共许可证v3.0 - 有关详情,请参阅许可

贡献

欢迎贡献!请确保您遵循我们的编码标准 pep8

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

breizorro-0.1.2.tar.gz (19.3 kB 查看哈希值)

上传时间

构建分布

breizorro-0.1.2-py3-none-any.whl (20.4 kB 查看哈希值)

上传时间 Python 3