LSSTDESC / descwl_coadd

Tools for coadding using the LSST DM software stack
GNU General Public License v3.0
2 stars 2 forks source link

use a coadd bbox #45

Closed esheldon closed 3 years ago

esheldon commented 3 years ago

I think the coadd wcs is defined for an entire tract but we will be working with patches

the patch we are working on can have

>>> bbox.getDimensions()
    Extent2I(4100, 4200)
>>> bbox.getBeginX(), bbox.getEndX()
    (0, 4100)
>>> bbox.getBeginY(), bbox.getEndY()
    (19900, 24100)

I think this means we need to work in the bigger implied pixel grid, and input a bbox like this.

This also means we need to make the simulations return a bbox rather than simple dims

esheldon commented 3 years ago

(the above bbox examples are what I'm seeing in the task we have started)

esheldon commented 3 years ago

This means we need to be careful referring to coordinates; for getting the location in the image we need to subtract off start pixels for X and Y