IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 13, 2005, 1:16:22 PM (21 years ago)
Author:
eugene
Message:

development work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/pmAstromGrid.c

    r5495 r5510  
    4747        st2r = pmAstromRotateObj (st2, center, angle);
    4848        newStat = pmAstromGridMatchAngle (st1, st2r, config);
    49         newStat.angle = angle;
     49        newStat.angle  = angle;
     50        newStat.center = center;
    5051        if (newStat.minMetric < minStat.minMetric) {
    5152            minStat = newStat;
     
    147148                    minMetric = metric;
    148149                    minVar    = var;
    149                     minP      = i;
    150                     minQ      = j;
     150                    minX      = i;
     151                    minY      = j;
    151152                }
    152153            }
     
    154155
    155156        // convert the bin to delta-delta
    156         matchStats.dX        = DP[minY][minX] / NP[minY][minX];
    157         matchStats.dY        = DQ[minY][minX] / NP[minY][minX];
     157        matchStats.offset.x  = DP[minY][minX] / NP[minY][minX];
     158        matchStats.offset.y  = DQ[minY][minX] / NP[minY][minX];
    158159        matchStats.minMetric = minMetric;
    159160        matchStats.minVar    = minVar;
     
    164165
    165166// apply the measured FPA offset and rotation (stat) to the fpa astrom structures
    166 psFPA *pmAstromApplyGridMatch (psFPA *fpa, pmAstromGridMatchStat stat) {
     167psFPA *pmAstromGridApply (psPlaneTransform *map, pmAstromGridMatchStat stat) {
    167168
    168     // stat.angle modifies fpa.toTangentPlane (effective angle)
    169     // stat.dP, stat.dQ modifies fpa.projection (Ro, Do)
     169    // stat.angle, stat.center, stat.offse
     170    // I think i need to know the center reference....
    170171
    171172    return (fpa);
Note: See TracChangeset for help on using the changeset viewer.