-
Notifications
You must be signed in to change notification settings - Fork 10
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
What units are the fluxes in? #10
Comments
Ah.... this might be an indication that something went horrendously wrong. I have other catalogs with reasonable numbers in them. |
Right, so, it was something going wrong. I tried using the I don't understand why this would happen, though, as the fluxes should be nearly independent of the weights. |
The fluxes are in the same units as the images. The goal was to not know about image units, but I did fail in that goal in that the choice of PSF stamp size depends on the flux at the location of the sources---we want to use larger PSF stamps for very bright sources to do a better job preventing diffraction spikes, etc., from contaminating other sources. I would need to do something more elegant there to actually make the pipeline agnostic to units. I don't know anything about the WHT HDU provided by JWST. One possible likely source of confusion is that the 'weight' that fit_im wants is 1/sigma, rather than 1/sigma^2. I should really go through the code and replace weight -> isig everywhere. I agree that if the weight image is close to constant that it's hard for me to see problems occurring here unless the weights are so large or small that they're leading to underflow / overflow problems. I would need more information to say something helpful. When I want to make sure the weights aren't crazy I usually do something like verify that (image - median(sky)) * isig ~ N(0, 1), though it sounds like your images have enough exciting structure in them that that might not be adequate. |
Oh, that definitely is a source of confusion - I had assumed inverse variance, not inverse error, weighting. Hopefully that explains why some of the faint stars were being missed. |
To be clear, the actual weighting is what you expect---we're minimizing chi^2. But the 'weight' argument is a ~misnomer and should be inverse sigma. |
I'm seeing fluxes that don't make a ton of sense to me. The data are in units of MJy/sr with values typically ranging from ~10 (very faint) to ~1000 (just shy of saturation). The fluxes I'm getting out are ~10^12. I haven't figured out a plausible way to go from my values to these large values; my best guess is that I'm using the wrong column of the data.
The text was updated successfully, but these errors were encountered: