IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38873


Ignore:
Timestamp:
Oct 17, 2015, 6:06:53 AM (11 years ago)
Author:
eugene
Message:

fix comments re: M3c, M3s, M4c, M4s

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceMoments.c

    r36856 r38873  
    409409            float yy = yDiff * y;
    410410
     411            // the factor of 1/r makes these appropriate for measuring
     412            // \sum r^2 cos(3 theta), sin(3 theta) (psphotImageQuality.c:107)
    411413            float xxx = xDiff * xx / r;
    412414            float xxy = xDiff * xy / r;
     
    414416            float yyy = yDiff * yy / r;
    415417
     418            // the factor of 1/r^2 makes these appropriate for measuring
     419            // \sum r^2 cos(4 theta), sin(4 theta) (psphotImageQuality.c:107)
    416420            float xxxx = xDiff * xxx / r2;
    417421            float xxxy = xDiff * xxy / r2;
  • trunk/psphot/src/psphotImageQuality.c

    r32348 r38873  
    9898        // r^2 sin(2t) = r^2 2 cos t sin t = 2 x y
    9999
    100         // r^3 cos(3t) = r^3 cos^3 t - r^2 3 cos t sin^2 t = (x^3 - 3 x y^2)
    101         // r^3 sin(3t) = r^3 3 cos^2 t sin t - sin^3 t = (3 x^2 y - y^3)
    102 
    103         // r^4 cos(4t) = r^4 cos^4 t - r^2 6 cos^2 t sin^2 t + r^2 sin^4 t = (x^4 - 6 x^2 y^2 + y^4)
    104         // r^4 sin(4t) = r^4 4 cos^3 t sin t - 4 sin^3 t cos t = (4 x^3 y - 4 y^3 x)
     100        // r^2 cos(3t) = r^2 cos^3 t - r^2 3 cos t sin^2 t = (x^3 - 3 x y^2) / r
     101        // r^2 sin(3t) = r^2 3 cos^2 t sin t - sin^3 t = (3 x^2 y - y^3) / r
     102
     103        // r^2 cos(4t) = r^2 cos^4 t - r^2 6 cos^2 t sin^2 t + r^2 sin^4 t = (x^4 - 6 x^2 y^2 + y^4) / r^2
     104        // r^2 sin(4t) = r^2 4 cos^3 t sin t - 4 sin^3 t cos t = (4 x^3 y - 4 y^3 x) / r^2
     105
     106        // NOTE that Mxxx,etc have the factor of r in the denominator, while Mxxxx,etc have the factor of r^2.
     107        // See pmSourceMoments.c:418
    105108
    106109        num++;
Note: See TracChangeset for help on using the changeset viewer.