rfinn / halphagui

development of gui interface for H-alpha narrowband imaging
GNU General Public License v3.0
0 stars 0 forks source link

migrate maskwrapper to use photutils to create segmentation map #107

Open rfinn opened 5 months ago

rfinn commented 5 months ago

Describe the bug source extractor does not handle image edges will. catastrophic failure for VFID5855-NGC5348-INT-20190206-p120, where the edge from the weird orientation of chip 4. The blank area comes in as zeros, and so the noise estimate is really low. Then SE detects every noise spike in the regular part of the image.

Photutils can create an object mask without running into this issue. Somehow it must ignore the zeros, whereas SE does not.

To Reproduce /home/rfinn/research/Virgo-dev/cont-sub-gr/VFID5855-NGC5348-INT-20190206-p120

run maskwrapper on this image

python ~/github/halphagui/maskwrapper.py --image VFID5855-NGC5348-INT-20190206-p120-R.fits  --objra 208.546919 --objdec 5.22729 --objsma 179.7 --objBA 0.2 --objPA 266.7 --sesnr 25 --minarea 100

Expected behavior Should get the object mask that photutils creates.

Screenshots photutils result image

vs SE result image