Closed esheldon closed 3 years ago
Not following here. The sims have some metadata associated with them that may not be amenable to an LSST exposure, right?
We should return additional metadata, but use an exposure to store the image, bmask, variance plane.
This has bumped up to high priority. It is important that the downstream code in descwl_coadd takes in exposures so that we don't have different code paths for simluated and real data
For variable psfs, we are evaluating it at the center of the single epoch image and using that in a FixedPSF. We had intended to evaluate it at the coadd center, so this seems like a bug. I will try to fix, but I guess this means we are not very sensitive to this.
To make the code path consistent with what we'll do with real data, we need to return a mocked up DM psf and make sure to evaluate at the coadd center in the coadding code
Note it looks like we are doing the right thing in the coadd code.
For your previous comment where is that code snippet? I think this must be the rewritten code and not what I made originally.
no doubt this is my mistake: https://github.com/LSSTDESC/descwl-shear-sims/blob/master/descwl_shear_sims/sim/objlists.py#L87
We need to also return a bbox rather than coadd sims, see https://github.com/LSSTDESC/descwl_coadd/issues/45
That is what we will get off disk when we convert to butler, better to make the sim deliver that.
Also, that is the only way we will be able to keep straight the mask bits.