Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative variance scaling. #71

Closed
jackcturner opened this issue Sep 9, 2024 Discussed in #70 · 1 comment
Closed

Relative variance scaling. #71

jackcturner opened this issue Sep 9, 2024 Discussed in #70 · 1 comment

Comments

@jackcturner
Copy link

Hello,

I'm trying to understand the Source Extractor approach to weighting, but I'm struggling to understand the conversion from relative to absolute variance. The manual states that "A robust scaling to the appropriate absolute level is then performed by comparing this variance map to an internal, low-resolution, absolute variance map built from the science image itself". It's not clear to me what this "comparison" would be and I haven't been able to find it within the code.

Any help would be very much appreciated!

@ebertin
Copy link
Member

ebertin commented Oct 11, 2024

Hi @jackcturner,
good question and sorry for the late reply! What SExtractor does is compute in every valid background mesh the ratio between the estimated (clipped) standard deviation of the background noise and an estimate of the mode of the actual weight map. if RESCALE_WEIGHTS is set to Y (the default) then the weight-map is rescaled with a factor which is the median of all those ratios. It runs fast but of course this may lead to biased estimates. However in practice the dispersion in the ratios is low enough (for background meshes with reasonable sizes) that systematic errors are likely to be small compared to other factors, such as noise-correlation and contamination of the sky background by undetected sources.
I hope it helps!

@ebertin ebertin closed this as completed Jan 19, 2025
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

No branches or pull requests

2 participants