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

gmag bug in quickcat? #251

Closed
moustakas opened this issue Aug 1, 2017 · 8 comments
Closed

gmag bug in quickcat? #251

moustakas opened this issue Aug 1, 2017 · 8 comments
Assignees
Labels

Comments

@moustakas
Copy link
Member

@forero Is this code block in quickcat a bug?

DECAM_FLUX returns fluxes in nanomaggies but line 218 treats the g-band flux as a magnitude.

[If this is indeed a bug I can fix it on the branch I'm working on now, which is updating the targets and truth tables to the latest imaging data model.]

@forero
Copy link
Member

forero commented Aug 1, 2017

I don't know if that's a bug. It looks like it is one.
Consult first with @cballand . He wrote those lines.

@moustakas
Copy link
Member Author

Apologies, I thought you wrote quickcat, @forero!

@forero
Copy link
Member

forero commented Aug 1, 2017

Don't worry! quickcat has been a real collaborative effort!

@cballand
Copy link
Contributor

cballand commented Aug 1, 2017

I had a quick look and I'm not sure it's a bug (but I should check this in more detail): as far as true_gmag and qso_gmag_threshold are in the same units (nanomaggies), the flux ratio should be expressed as it is on line 218 (i.e., it should only depend on the difference true_gmag - qso_gmag_threshold).

@cballand
Copy link
Contributor

cballand commented Aug 1, 2017

In fact you're right, this is a bug, true_gmag is a flux in nanomaggies and should be converted into a magnitude before being used in line 218.

@moustakas
Copy link
Member Author

moustakas commented Aug 1, 2017 via email

@cballand
Copy link
Contributor

cballand commented Aug 2, 2017

Ok, thanks @moustakas

@moustakas
Copy link
Member Author

Fixed in #252.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants