Skip to content

For "forced_beam": limit brightness correction#184

Merged
HannoSpreeuw merged 1 commit intomasterfrom
Fix_180
Nov 30, 2025
Merged

For "forced_beam": limit brightness correction#184
HannoSpreeuw merged 1 commit intomasterfrom
Fix_180

Conversation

@HannoSpreeuw
Copy link
Copy Markdown
Collaborator

Fixes #180

What we have seen is that there are wider islands where the position of the pixel with the maximum value is several pixels away from the island's barycenter position. When the beam shape is forced to be as small as the clean beam, the extrapolation from the maximum pixel position to the barycenter position fails, i.e. the derived brightness value at the barycenter becomes huge. This fix limits the extrapolations from the rounded barycenter position to the barycenter position such that the subtended angle of interpolation remains at the subpixel level. This bug did not show up when designing our two extensive test_measured_vectorized_forced_beam (167,281 inserted sources) and test_measured_vectorized_free_shape (90,000 inserted sources) regression tests, probably because these artificial sources are "well-formed" and do not share the peculiarities of sources in real aperture synthesis images.

Fixes issue 180. What we have seen is that there are wider islands where the position of the pixel with the maximum value is several pixels away from the island's barycenter position. When the beam shape is forced to be as small as the clean beam, the extrapolation from the maximum pixel position to the barycenter position fails, i.e. the derived brightness value at the barycenter becomes huge. This fix limits the extrapolations from the rounded barycenter position to the barycenter position such that the subtended angle of interpolation remains at the subpixel level.
This bug did not show up when designing our two extensive "test_measured_vectorized_forced_beam" (167,281 inserted sources) and "test_measured_vectorized_free_shape" (90,000 inserted sources) regression tests, probably because these artificial sources are "well-formed" and do not share the peculiarities of sources in real aperture synthesis images.
@HannoSpreeuw HannoSpreeuw self-assigned this Nov 30, 2025
@HannoSpreeuw HannoSpreeuw merged commit 40396a4 into master Nov 30, 2025
9 checks passed
@HannoSpreeuw HannoSpreeuw deleted the Fix_180 branch November 30, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unrealistic values with --force-beam and --vectorize

1 participant