Skip to content

Commit

Permalink
Fixed WEIGHT_TYPE='NONE' in making the PY_SWarp configdict in swarp_c…
Browse files Browse the repository at this point in the history
…oadd_img(). Set correct default gain and saturation levels in PYSEx.PS(), addressing issue #9.
  • Loading branch information
laldoroty committed Jul 19, 2024
1 parent 61f3635 commit 47bcdbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phrosty/imagesubtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def bkg_mask(imgpath):
BACK_TYPE='MANUAL', BACK_VALUE=0.0, BACK_SIZE=64, BACK_FILTERSIZE=3, DETECT_THRESH=1.5, \
DETECT_MINAREA=5, DETECT_MAXAREA=0, DEBLEND_MINCONT=0.001, BACKPHOTO_TYPE='LOCAL', \
CHECKIMAGE_TYPE='SEGMENTATION', AddRD=True, ONLY_FLAGS=None, XBoundary=0.0, YBoundary=0.0, \
MDIR=None, VERBOSE_LEVEL=1)[1][0]
DEFAULT_GAIN=1.0, DEFAULT_SATUR=100000, MDIR=None, VERBOSE_LEVEL=1)[1][0]

bkg_mask = (scatalog == 0)

Expand Down Expand Up @@ -551,7 +551,7 @@ def swarp_coadd_img(imgpath_list,refpath,out_name,out_path=output_files_rootdir,
:rtype: str
"""
cd = PY_SWarp.Mk_ConfigDict(GAIN_DEFAULT=1., SATLEV_DEFAULT=100000.,
RESAMPLING_TYPE='BILINEAR', WEIGHT_TYPE='MAP_WEIGHT',
RESAMPLING_TYPE='BILINEAR', WEIGHT_TYPE='NONE',
RESCALE_WEIGHTS='N', **kwargs)

imgpaths = []
Expand Down

0 comments on commit 47bcdbe

Please sign in to comment.