IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21160


Ignore:
Timestamp:
Jan 23, 2009, 3:09:03 PM (17 years ago)
Author:
bills
Message:

call pmAstromLinearizeTransforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/ppstampMakeStamp.c

    r20757 r21160  
    2727    // Change the reference pixel to account for the change in origin between the stamp and
    2828    // the original image
     29    // XXX: shouldn't we be using the center of the stamp instead of the corner?
    2930    outChip->toFPA   = psPlaneTransformSetCenter(NULL, inChip->toFPA, (int) roi->x0, (int) roi->y0);
    3031
    3132    outChip->fromFPA = psPlaneTransformInvert(NULL, outChip->toFPA, *roi, 50);
     33
     34    if (outFPA->toSky->type != PS_PROJ_TAN) {
     35        if (!pmAstromLinearizeTransforms(outFPA, outChip)) {
     36            psError(PS_ERR_UNKNOWN, false, "Failed to linearize astrometry\n");
     37            return false;
     38        }
     39    }
    3240
    3341    if (!pmAstromWriteWCS(outHDU->header, outFPA, outChip, WCS_NONLIN_TOL)) {
Note: See TracChangeset for help on using the changeset viewer.