astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
73 stars 9 forks source link

Restricting source position projections onto the measurement images #556

Closed mkuemmel closed 9 months ago

mkuemmel commented 1 year ago

When identifying the pixel data in the measurement images for the flexible model fitting the RA/Dec positions of all sources are projected into pixel coordinates of each measurement image.

The measurement images have non-linear astrometric solutions, which can result in an error in WCSLIB if the projection does not have a unique solution, and SE++ just stops (see #554). This happens only for sources far off the boundaries of a the measurement images and we need to find ways to avoid these breaks.

mkuemmel commented 9 months ago

Solved in v0.21: * WCS tranform errors are caught and display a warning instead of stopping everything