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
FWHM #34
Comments
I would like to know this too. SEP returns a, b and theta, I guess one could choose max(a,b) as FWHM? (I'm not a contributor to sep) |
My bet would be something like: FWHM = 2 * sqrt ( ln(2) * (x2 + y2)) where x2 and y2 are the second order moment (assuming Gaussian shape, etc. etc.). But I would like to know what the sep developers think. Stefano Mobilis in mobile
|
sep doesn't have the equivalent of source extractor's Currently, you can use some approximation you suggest, but I'd probably do it in terms of I'll leave this open as a reminder to look into adding the SoureExtractor-style FWHM calculation to sep. |
The other fun thing is that for a Gaussian source (which may or may not be a good assumption) the 50% flux radius is the HWHM. |
I worked on this a bit and only got it partially working, in that I got about half the sources in the test image to agree with FWHM values from Source Extractor. The other half are off by varying degrees (sometimes a lot!) and it's not clear why. The code is copied from Source Extractor. One difference is that SE treats saturated pixels, but SEP does not. This doesn't seem to be the root of the FWHM differences though. I probably won't work on this any more, but my progress is in the 822f553 commit on the |
I think the issue might be related to the difference between the windowed and un-windowed 2nd moments. The FWHM should be the same for bright stars and faint stars, but I find that the un-windowed A and B parameters for stars increase with flux and so will not give reliable measures of FWHM. I think computing windowed 2nd moments analogous to SExtractor's |
Hello everybody,
this is not a bug report. I am just asking wether there is a way to derive an estimate of the FWHM of the sources extracted by "sep" more or less as SExtractor does.
Thanks,
Stefano
The text was updated successfully, but these errors were encountered: