Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write regions and catalogs #36

Merged
merged 50 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b0f8048
Add cataloging routiine
Athanaseus Mar 14, 2024
b3998b8
updates
Athanaseus Mar 17, 2024
f904e45
Restructuring and clean-ups
Athanaseus Mar 20, 2024
4b48818
Add utils and init file
Athanaseus Mar 22, 2024
3ad1d58
source detection updates
Athanaseus Mar 22, 2024
9b2bfb7
Bump version
Athanaseus Mar 22, 2024
cf1e8e8
positionns
Athanaseus Apr 28, 2024
d574bf3
Refactor routines
Athanaseus Sep 12, 2024
ece367a
Rename test_installation.yml to python-package.yml
Athanaseus Oct 19, 2024
e8e6075
Create _config.yml
Athanaseus Oct 20, 2024
d6a9beb
Update _config.yml
Athanaseus Oct 20, 2024
e5798d2
Create index.md
Athanaseus Oct 20, 2024
1d182ae
Update index.md
Athanaseus Oct 20, 2024
dd51336
Update README.rst
Athanaseus Oct 20, 2024
e46f763
Update index.md
Athanaseus Oct 20, 2024
53e7408
Update index.md
Athanaseus Oct 20, 2024
896ce23
Update index.md
Athanaseus Oct 20, 2024
015dd70
Update index.md
Athanaseus Oct 20, 2024
1b6a99d
Update README.rst
Athanaseus Oct 20, 2024
64cbe40
Update index.md
Athanaseus Oct 20, 2024
f0daab2
Update index.md
Athanaseus Oct 20, 2024
975ff99
Update _config.yml
Athanaseus Oct 20, 2024
36a4e78
Update index.md
Athanaseus Oct 20, 2024
b36c3b3
Update index.md
Athanaseus Oct 20, 2024
660f5b1
Update index.md
Athanaseus Oct 20, 2024
83acfa1
legend color
Athanaseus Oct 22, 2024
f1aa77e
Add files via upload
Athanaseus Oct 22, 2024
bf9d06d
Update index.md
Athanaseus Oct 22, 2024
337f692
plot extent and sizing mode
Athanaseus Oct 27, 2024
76cba25
Merge branch 'write_regions_catalogs' of https://github.com/ratt-ru/b…
Athanaseus Oct 27, 2024
9f6b8ca
Add photutils as deps for cataloging
Athanaseus Oct 27, 2024
c80f3bb
format axis
Athanaseus Oct 30, 2024
3b3eca6
fit source shape
Athanaseus Nov 7, 2024
1fc13d9
add scikit-image to find contours
Athanaseus Nov 8, 2024
aa79eb3
add scikit-image to find contours
Athanaseus Nov 8, 2024
ead9bbb
Update index.md
Athanaseus Nov 8, 2024
2a5dbb0
Merge branch 'write_regions_catalogs' of https://github.com/ratt-ru/b…
Athanaseus Nov 8, 2024
e35df02
Optional deps
Athanaseus Nov 8, 2024
db804fd
Update deps
Athanaseus Dec 13, 2024
56ffc96
use clickify_parameters
Athanaseus Dec 13, 2024
19dbbec
Pin numpy to < 2 for older Python
Athanaseus Dec 13, 2024
438e8bd
test help command
Athanaseus Dec 13, 2024
7104796
update deps
Athanaseus Dec 13, 2024
53fef7e
exit 0
Athanaseus Dec 13, 2024
285d453
Upate config structure
Athanaseus Dec 14, 2024
d32db93
Clean up
Athanaseus Dec 14, 2024
3d26852
add metavar
Athanaseus Dec 14, 2024
866e08d
Update repeat policies
Athanaseus Dec 18, 2024
11d9211
Update dtype and add examples
Athanaseus Dec 19, 2024
4d0d609
Use rather than
Athanaseus Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -64,4 +64,4 @@ jobs:

- name: Test command
run: |
poetry run breizorro -h
poetry run breizorro --help
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include LICENSE
include README.rst
include requirements.txt
include breizorro/breizorro.yaml
63 changes: 6 additions & 57 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,63 +30,11 @@ 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 ...]]
[--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.
=============
Documentation
=============

Documentation is available on the GitHub page_.

=======
License
Expand Down Expand Up @@ -116,3 +64,4 @@ standards pep8_.
.. _source: https://github.com/ratt-ru/breizorro
.. _license: https://github.com/ratt-ru/breizorro/blob/main/LICENSE
.. _pep8: https://www.python.org/dev/peps/pep-0008
.. _page: https://ratt-ru.github.io/breizorro
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: Breizorro
description: Image masking and cataloguing suite
show_downloads: true
google_analytics:
theme: jekyll-theme-midnight
63 changes: 63 additions & 0 deletions breizorro.html

Large diffs are not rendered by default.

Empty file added breizorro/__init__.py
Empty file.
Loading
Loading