IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2009, 10:07:36 AM (17 years ago)
Author:
bills
Message:

Don't fail if astrometry can't be linearized. Just leave the values in the header unchanged.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksremove.c

    r24691 r24716  
    483483    if (sf->bilevelAstrometry) {
    484484
    485         linearizeTransforms(sf->astrom);
     485        if (!linearizeTransforms(sf->astrom)) {
     486            // fit failed, leave the astrometry unchanged
     487            return;
     488        }
    486489
    487490        if (!pmAstromWriteWCS(sf->outImage->header, sf->inAstrom->fpa, sf->chip, 0.001)) {
Note: See TracChangeset for help on using the changeset viewer.