Loading isis/src/base/objs/SpiceRotation/SpiceRotation.truth +7 −0 Original line number Diff line number Diff line Loading @@ -624,6 +624,13 @@ Frame type is binary PCK and cannot be updated End of PCK testing Testing CK based body rotation with 67P/Churyumov–Gerasimenko data ... Time = 4.6285471e+08 CJ = 0.93816333 -0.34618155 -0.002810256 0.30996014 0.84356223 -0.43855157 0.15418909 0.41056193 0.89870163 Testing exceptions... **I/O ERROR** Cannot find [INS-99999_TRANSX] in text kernels. Loading isis/src/base/objs/SpiceRotation/unitTest.cpp +46 −29 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ int main(int argc, char *argv[]) { QString mocbsp(dir + "moc.bsp"); QString de(dir + "de405.bsp"); QString pck("/usgs/cpkgs/isis3/data/base/kernels/pck/pck00009.tpc"); QString cgFK(dir + "ROS_V29.TF"); QString cgCK(dir + "CATT_DV_145_02_______00216.BC"); //QString mocadd(dir+"mocAddendum.ti"); QString mocspice(dir + "mocSpiceRotationUnitTest.ti"); furnsh_c(naif.toLatin1().data()); Loading @@ -47,6 +49,8 @@ int main(int argc, char *argv[]) { furnsh_c(de.toLatin1().data()); furnsh_c(pck.toLatin1().data()); furnsh_c(mocspice.toLatin1().data()); furnsh_c(cgFK.toLatin1().data()); furnsh_c(cgCK.toLatin1().data()); double startTime = -69382819.0; double endTime = -69382512.0; Loading Loading @@ -592,6 +596,19 @@ int main(int argc, char *argv[]) { cout << "End of PCK testing" << endl; // Test CK based body rotation cout << endl << endl << "Testing CK based body rotation with 67P/Churyumov–Gerasimenko data ..." << endl; SpiceRotation cgRotation(-1000012000); // Test time from Rosetta OSIRIS NAC image n20140901t144253568id30f22 double cgTestTime = 462854709.88606; cgRotation.SetEphemerisTime(cgTestTime); vector<double> cgCJ = cgRotation.Matrix(); cout << "Time = " << cgRotation.EphemerisTime() << endl; cout << "CJ = " << cgCJ[0] << " " << cgCJ[1] << " " << cgCJ[2] << endl; cout << " " << cgCJ[3] << " " << cgCJ[4] << " " << cgCJ[5] << endl; cout << " " << cgCJ[6] << " " << cgCJ[7] << " " << cgCJ[8] << endl; //Test exceptions cout << endl << endl << "Testing exceptions..." << endl; Loading Loading
isis/src/base/objs/SpiceRotation/SpiceRotation.truth +7 −0 Original line number Diff line number Diff line Loading @@ -624,6 +624,13 @@ Frame type is binary PCK and cannot be updated End of PCK testing Testing CK based body rotation with 67P/Churyumov–Gerasimenko data ... Time = 4.6285471e+08 CJ = 0.93816333 -0.34618155 -0.002810256 0.30996014 0.84356223 -0.43855157 0.15418909 0.41056193 0.89870163 Testing exceptions... **I/O ERROR** Cannot find [INS-99999_TRANSX] in text kernels. Loading
isis/src/base/objs/SpiceRotation/unitTest.cpp +46 −29 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ int main(int argc, char *argv[]) { QString mocbsp(dir + "moc.bsp"); QString de(dir + "de405.bsp"); QString pck("/usgs/cpkgs/isis3/data/base/kernels/pck/pck00009.tpc"); QString cgFK(dir + "ROS_V29.TF"); QString cgCK(dir + "CATT_DV_145_02_______00216.BC"); //QString mocadd(dir+"mocAddendum.ti"); QString mocspice(dir + "mocSpiceRotationUnitTest.ti"); furnsh_c(naif.toLatin1().data()); Loading @@ -47,6 +49,8 @@ int main(int argc, char *argv[]) { furnsh_c(de.toLatin1().data()); furnsh_c(pck.toLatin1().data()); furnsh_c(mocspice.toLatin1().data()); furnsh_c(cgFK.toLatin1().data()); furnsh_c(cgCK.toLatin1().data()); double startTime = -69382819.0; double endTime = -69382512.0; Loading Loading @@ -592,6 +596,19 @@ int main(int argc, char *argv[]) { cout << "End of PCK testing" << endl; // Test CK based body rotation cout << endl << endl << "Testing CK based body rotation with 67P/Churyumov–Gerasimenko data ..." << endl; SpiceRotation cgRotation(-1000012000); // Test time from Rosetta OSIRIS NAC image n20140901t144253568id30f22 double cgTestTime = 462854709.88606; cgRotation.SetEphemerisTime(cgTestTime); vector<double> cgCJ = cgRotation.Matrix(); cout << "Time = " << cgRotation.EphemerisTime() << endl; cout << "CJ = " << cgCJ[0] << " " << cgCJ[1] << " " << cgCJ[2] << endl; cout << " " << cgCJ[3] << " " << cgCJ[4] << " " << cgCJ[5] << endl; cout << " " << cgCJ[6] << " " << cgCJ[7] << " " << cgCJ[8] << endl; //Test exceptions cout << endl << endl << "Testing exceptions..." << endl; Loading