c3-time-domain / SeeChange

A time-domain data reduction pipeline (e.g., for handling images->lightcurves) for surveys like DECam and LS4
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Cutting and pasting subimages #161

Open guynir42 opened 7 months ago

guynir42 commented 7 months ago

Need to get a generic tool to cut an image into subsections (with overlap) and then paste them back together with linear interpolation between the overlapping regions (feather).

This could be useful for coaddition/subtraction where we can use a smaller sub image where the PSF and background levels are more-or-less the same across the region, instead of assume that on the whole image.

guynir42 commented 5 months ago

This might be easier to do using overlapping Hann windows, as in signal processing.

https://en.wikipedia.org/wiki/Hann_function

https://en.wikipedia.org/wiki/Short-time_Fourier_transform

https://en.wikipedia.org/wiki/Overlap%E2%80%93add_method

guynir42 commented 2 months ago

This will be useful for ZOGY subtraction, as it will save a lot of memory. I am not sure if this will make the runs faster or slower. There could be other advantages such as doing alignment and background/flux matching better on small windows.