IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2006, 2:16:50 PM (21 years ago)
Author:
Paul Price
Message:

Fixed up inverses to clarify.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/eoc_testing.txt

    r5775 r5908  
    100100Check that:
    101101
    102     X = 3.05224300720406e-07
    103     Y = -1.39441339235822e-07
     102    X = 3.05224300720406e-10
     103    Y = -1.39441339235822e-10
    104104    S = 0
    105105
     
    134134(a) Generate the transformation:
    135135
    136     psSphereRot *earthRotInv = psSphereRot_TEOtoCEO(time); // This is TEO->CEO
    137     psSphereRot *earthRot = psSphereRotInvert(earthRotInv); // This is CEO->TEO
    138 
    139 Check that the rotation quaternion of earthRotInv is:
     136    psSphereRot *earthRot = psSphereRot_TEOtoCEO(time); // This is TEO->CEO
     137
     138Check that the rotation quaternion of earthRot is:
    140139
    141140    0.0
    142141    0.0
    143142    0.9625401009002903
    144     0.2711393629830588
     143    -0.2711393629830588
    145144
    146145Within psSphereRot_TEOtoCEO, the Earth rotation angle should be 428251.4641536639 degrees
     
    148147(b) Apply the rotation to the position:
    149148
    150     obj = psSphereRotApply(obj, earthRot, obj);
     149    psSphereRot *earthRotInv = psSphereRotInvert(earthRot); // This is CEO->TEO
     150    obj = psSphereRotApply(obj, earthRotInv, obj);
    151151
    152152Convert obj to a psCube and check that:
     
    172172    x=-6.43607313124045e-07
    173173    y=2.11351436973568e-06
    174     s=-2.05449328145735e-15
     174    s=-7.39617581324646e-12
    175175
    176176(c) Generate the transformation:
    177177
    178    psSphereRot *polarMotionInv = psSphereRot_ITRStoTEO(earthPM); // This is ITRS->TEO
    179    psSphereRot *polarMotion = psSphereRotInvert(polarMotionInv); // This is TEO->ITRS
    180 
    181 Check that the rotation quaternion of polarMotionInv is:
     178   psSphereRot *polarMotion = psSphereRot_ITRStoTEO(earthPM); // This is ITRS->TEO
     179
     180Check that the rotation quaternion of polarMotion is:
    182181
    183182    -1.0567571848664005E-6
     
    188187(d) Apply these to the position:
    189188
    190    obj = psSphereRotApply(obj, polarMotion, obj);
     189   psSphereRot *polarMotionInv = psSphereRotInvert(polarMotion); // This is TEO->ITRS
     190   obj = psSphereRotApply(obj, polarMotionInv, obj);
    191191
    192192Convert obj to a psCube, should get:
Note: See TracChangeset for help on using the changeset viewer.