Skip to main content

Creates a binary mask given a FITS image

Project description

breizorro

A tool for creating a binary mask given a FITS image

Installation

Installation from source, working directory where source is checked out

$ pip install .

This package is available on PYPI, allowing

$ pip install breizorro

To show help message and exit

$ 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 ...]]
              [--extract-islands N|COORD [N|COORD ...]] [--make-binary]
              [--invert] [--dilate R] [--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
   --extract-islands N|COORD [N|COORD ...]
                         List of islands to extract from input mask. e.g.
                         --extract-islands 1 18 20 20h10m13s,14d15m20s
   --make-binary         Replace all island numbers with 1
   --invert              Invert the mask
   --dilate R            Apply dilation with a radius of R pixels
   --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.

License

This project is licensed under the GNU General Public License v3.0 - see license for details.

Contribute

Contributions are always welcome! Please ensure that you adhere to our coding standards pep8.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

breizorro-0.1.1.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

breizorro-0.1.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file breizorro-0.1.1.tar.gz.

File metadata

  • Download URL: breizorro-0.1.1.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for breizorro-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b00088e31b29caa23fc99d06ca844f166ef47774baa08f139c0c57ed6a9bb198
MD5 48da8ec48e270daae7bae6fcc758a8dd
BLAKE2b-256 ffa5f552acd1ec525b3492397da74a4b29c8ce747003fc9617c6d0b5e627b7a9

See more details on using hashes here.

File details

Details for the file breizorro-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: breizorro-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for breizorro-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06c11c9fc5612e916d8c6ce67879ba495ef798b8ffaf5b3b206e07005d7e3969
MD5 8e0c9228f9c28b4029377be9e78090a0
BLAKE2b-256 ee70449d8ef7d0ba7936ccdf85dc5bfa6feb39283ba04dcaac280a93cf5476d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page