dirac-institute / kbmod

KBMOD (Kernel-Based Moving Object Detection)
BSD 2-Clause "Simplified" License
46 stars 14 forks source link

Single Method to Reproject an ImageCollection #622

Open wilsonbb opened 6 months ago

wilsonbb commented 6 months ago

Currently build scripts are taking a region search produced ImageCollection, calculating the ebd WCS, creating the new ebd WorkUnit, and then reprojecting it to a common WCS.

Would be nice to just have a method like

ic = ImageCollection.read(ic_path)
reprojected_wu = ic.to_reprojected_work_unit(
    search_config,
    heliocentric_guess_dist,
    point_on_earth,
    common_wcs,
    /*various reprojection args I may be forgetting*/)

Especially nice since this lets us avoid various intermediate WorkUnits all with different constructor arguments.