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
DM-5419 #38
DM-5419 #38
Conversation
After DM-4692, icSrc no longer has its coord fields set, because we don't have a Wcs available before it's persisted. So when we later match icSrc against the coadd catalog, we first have to populate the coords.
d71e378
to
c8bb2e2
Compare
I'm not happy about this. If we are still using icSrc why wasn't this done before the file was written? I understand that the Wcs solution has been moved later, but why couldn't we delay the write until after the coordinates were updated? I thought that the argument was that we weren't using icSrc, but now I see this ticket. Is this a temporary hack -- if so, it should have been called out as such |
The reason we can't easily delay the write is that we've now split ProcessCcdTask into two components which are both CmdLineTasks and hence handle their own I/O - this was in response to a feature request to allow them both to be run from the command-line separately. So if we delay the icSrc write until we have a Wcs, we'd have to make it the responsibility of a different command-line task, making the first one less self-contained and/or changing its I/O behavior based on whether or not it's being used as a subtask. This is also in some respects a temporary change, because we'd like to be matching to All that said, I should say that I'm actually not at all bothered by this, because I think it might actually be better to not save celestial coordinates in any SourceCatalogs, for the same reason we save raw fluxes instead of calibrated magnitudes - things get confusing when the calibrations change. Obviously, having the coordinates there is also really convenient, so I'm not actually proposing that we remove them right now. But if we had some way to create coordinate columns on the fly, it'd be worth considering. |
The only missing features I am aware of in the new ProcessCcdTask and subtasks, compared to specifications, are:
— Russell |
It looks like |
Please create an issue. This would probably take me an hour at most, but it might also be a good starter mini-project for Pim. The tricky part is figuring out exactly where to put it, since SourceCatalog is just a typedef, but I have some ideas. |
After DM-4692, icSrc no longer has its coord fields set, because we
don't have a Wcs available before it's persisted. So when we later
match icSrc against the coadd catalog, we first have to populate the
coords.