Skip to content

Commit

Permalink
Define segment thresholds for basically empty images (#1152) (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsci-hack authored Oct 7, 2021
1 parent 3876f55 commit ea1203a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drizzlepac/haputils/catalog_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,12 @@ def identify_sources(self, **pars):
sigma_for_threshold = self._nsigma * 2.0
rw2d_sigma_for_threshold = self._rw2d_nsigma * 2.0

# Define thresholds for empty/zero background
else:
log.info("Defining the threshold image based on nsigma for source detection.")
sigma_for_threshold = self._nsigma
rw2d_sigma_for_threshold = self._rw2d_nsigma

# Detect segments and evaluate the detection in terms of big sources/islands or crowded fields
# Round 2
ncount += 1
Expand Down

0 comments on commit ea1203a

Please sign in to comment.