Skip to content

Fix coordinate offsets for extended sources - #347

Open
AlexKurek wants to merge 1 commit into
lofar-astron:masterfrom
AlexKurek:Fix-coordinate-offsets-for-extended-sources
Open

Fix coordinate offsets for extended sources#347
AlexKurek wants to merge 1 commit into
lofar-astron:masterfrom
AlexKurek:Fix-coordinate-offsets-for-extended-sources

Conversation

@AlexKurek

Copy link
Copy Markdown
Contributor

This improves astrometry for multi-component sources.

The intention was to create a square, but due to boundary effects these subimages are not always square.
The happens when the emission peak is located close to the edge of the island.

Eg.:
width of the island = 10
maxx = 8
maxy = 5
ssubimsize = 7

X axis:
blc[0] = max(0, 8 - 3) = 5
trc[0] = min(10, 8 + 3) = 10
X dimension: 10 - 5 + 1 = 6 (the boundary truncates the window by one pixel).

Y axis:
blc[1] = max(0, 5 - 3) = 2
trc[1] = min(10, 5 + 3) = 8
Y dimension: 8 - 2 + 1 = 7.

s_imsize will be [6, 7], so no longer square.

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