Skip to content

Commit

Permalink
JP-3625: Switch to IRAF starfinder default (#8487)
Browse files Browse the repository at this point in the history
Co-authored-by: Howard Bushouse <bushouse@stsci.edu>
  • Loading branch information
drlaw1558 and hbushouse committed May 18, 2024
1 parent 6fe0ef3 commit e915bb2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ tweakreg

- Improve error handling in the absolute alignment. [#8450, #8477]

- Change code default to use IRAF StarFinder instead of
DAO StarFinder [#8487]

wfss_contam
-----------

Expand Down
2 changes: 1 addition & 1 deletion docs/jwst/tweakreg/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ The ``tweakreg`` step has the following optional arguments:
in pixels. (Default=400)

* ``starfinder``: A `str` indicating the source detection algorithm to use.
Allowed values: `'iraf'`, `'dao'`, `'segmentation'`. (Default= `'dao'`)
Allowed values: `'iraf'`, `'dao'`, `'segmentation'`. (Default= `'iraf'`)

* ``snr_threshold``: A `float` value indicating SNR threshold above the
background. Required for all star finders. (Default=10.0)
Expand Down
2 changes: 1 addition & 1 deletion jwst/tweakreg/tweakreg_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _DaoStarFinderWrapper(data, threshold, mask=None, **kwargs):
return sources


def make_tweakreg_catalog(model, snr_threshold, bkg_boxsize=400, starfinder='dao', starfinder_kwargs={}):
def make_tweakreg_catalog(model, snr_threshold, bkg_boxsize=400, starfinder='iraf', starfinder_kwargs={}):
"""
Create a catalog of point-line sources to be used for image
alignment in tweakreg.
Expand Down
2 changes: 1 addition & 1 deletion jwst/tweakreg/tweakreg_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class TweakRegStep(Step):
use_custom_catalogs = boolean(default=False) # Use custom user-provided catalogs?
catalog_format = string(default='ecsv') # Catalog output file format
catfile = string(default='') # Name of the file with a list of custom user-provided catalogs
starfinder = option('dao', 'iraf', 'segmentation', default='iraf') # Star finder to use.
# general starfinder options
starfinder = option('dao', 'iraf', 'segmentation', default='dao') # Star finder to use.
snr_threshold = float(default=10.0) # SNR threshold above the bkg for star finder
bkg_boxsize = integer(default=400) # The background mesh box size in pixels.
Expand Down

0 comments on commit e915bb2

Please sign in to comment.