snfactory / cubefit

Fit supernova + galaxy model on a SNFactory spectral data cube
MIT License
5 stars 5 forks source link

Inconsistent position between B and R channels #27

Open kbarbary opened 8 years ago

kbarbary commented 8 years ago

Mickael reports a few SN with positions that look inconsistent between the B and R channel by up to 6 spaxels. PTF11dzm, at least, is a case where the galaxy is obvious, and the SN position with respect to the galaxy is obviously inconsistent. Epochs:

ycopin commented 8 years ago

Please clarify the issue: all these exposures are obviously references, and ES is not supposed to run on them.

kbarbary commented 8 years ago

This is about the cubefit-determined position, not ExtractStar. Since these are reference images, this likely means that something is going wrong with the alignment between the reference and exposures with the SN.

ycopin commented 8 years ago

Sorry, I thought it was an issue which was assigned to me.

kbarbary commented 8 years ago

For PTF11dzm R band, cubefit is not getting the SN right at all:

image

You can see here that the SN does not appear in the scene model in the first three epochs, but is clearly visible in the residual. It appears that the minimizer converged to a local minimum, where the SN is positioned on top of the galaxy.

kbarbary commented 8 years ago

I think the initial position for the SN is pretty far off the true position, and this is causing us to miss the true minimum. Expanding the bounds for the fit doesn't help. To fix this, we need a robust solution for finding a global minimum. This could take the form of:

We just need to get within a spaxel or so and then we can use the normal minimizer.

ycopin commented 8 years ago

Could you just have a look at the residuals, see if there's anything structured there and use it as a new starting point?