Skip to content

Fix order-dependent blending of small- and large-scale maps - #573

Open
AlexKurek wants to merge 2 commits into
lofar-astron:masterfrom
AlexKurek:Fix-order-dependent-blending-of-small--and-large-scale-maps
Open

AlexKurek wants to merge 2 commits into
lofar-astron:masterfrom
AlexKurek:Fix-order-dependent-blending-of-small--and-large-scale-maps

Conversation

@AlexKurek

Copy link
Copy Markdown
Contributor

map_2d blended the small-scale rms/mean maps into out_rms2/out_mean2 in place, one bright source at a time. With overlapping bounding boxes, later sources read already-blended values, so the result depended on the order of the sources.

Fix
Keep a copy of the large-scale maps, collect the small-scale weights of all sources into one weights_map (maximum where boxes overlap), and blend once.

Now the local rms/mean near a bright source should reflect the source and its artifacts, not the order in which sources happen to be listed, which has no physical meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant