IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 20, 2016, 1:32:59 PM (10 years ago)
Author:
eugene
Message:

change the sign

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/psastro/src/psastroModelAdjust.c

    r39686 r39706  
    9191
    9292    // get the current posangle of the ref chip
    93     float chipAngle = atan2 (refChip->toFPA->y->coeff[1][0], refChip->toFPA->x->coeff[1][0]);
     93    // this should have a negative sign : chipAngle = -atan2 (dM/dy, dM/dx)
     94    float chipAngle = -atan2 (refChip->toFPA->y->coeff[1][0], refChip->toFPA->x->coeff[1][0]);
    9495
    9596    // chipAngle should be refChipAngleNominal @ POSANGLE = 0.0
     
    110111        psRegion *region = pmChipPixels (chip);
    111112
     113        // this should ALSO have a negative sign: this rotates by +posAngleOffset
    112114        psPlaneTransform *toFPA = psPlaneTransformRotate (NULL, chip->toFPA, posAngleOffset);
    113115        psFree (chip->toFPA);
Note: See TracChangeset for help on using the changeset viewer.