Skip to content

Commit

Permalink
Updated SNR map function to start calculating SNR values beyond 1 FWHM
Browse files Browse the repository at this point in the history
  • Loading branch information
VChristiaens committed Feb 18, 2025
1 parent dd0740f commit 9d92d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vip_hci/metrics/snr_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def snrmap(array, fwhm, approximated=False, plot=False, known_sources=None,
sizey, sizex = array.shape
snrmap_array = np.zeros_like(array)
width = min(sizey, sizex) / 2 - 1.5*fwhm
mask = get_annulus_segments(array, (fwhm / 2) + 1, width, mode="mask")[0]
mask = get_annulus_segments(array, fwhm, width, mode="mask")[0]
mask = np.ma.make_mask(mask)
# by making a bool mask *after* applying the mask to the array, we also mask
# out zero values from the array. This logic cannot be simplified by using
Expand Down

0 comments on commit 9d92d3a

Please sign in to comment.