Commit 2a66a224 authored by Jeannie Backer's avatar Jeannie Backer
Browse files

PROG: Fixed typo and added line to unitTest for SpicePosition class. This...

PROG: Fixed typo and added line to unitTest for SpicePosition class. This change merged from IPCE branch.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6460 41f8697f-d340-4b68-9986-7bafba869bb8
parent ad2e3549
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -477,7 +477,7 @@ namespace Isis {


  /**
   * Set surface point in spherical body-fixed coordinates (lat/lon/radius) wtih
   * Set surface point in spherical body-fixed coordinates (lat/lon/radius) with
   *   its variance/covariance matrix in radians squared.
   *
   * @param lat  Body-fixed latitude of surface point
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ UnitTest for SurfacePoint
    latitude sigma=1.64192315 degrees, longitude sigma=1.78752107 degrees, radius sigma=38.4548873 m
    latitude sigma=0.0286569649 radians, longitude sigma=0.0311981281 radians, radius sigma=38.4548873 m
    latitude sigma=28.6569649 m, longitude sigma=36.7881588 m, radius sigma=38.4548873 m
    latitude weight =1217.69806, longitude weight =1027.40796, radius weight =676.233861
    spherical covariance matrix = 0.00082122164  0.000649383279  -0.674095535
                                  0.000649383279  0.000973323195  -1.03923048
                                  -0.674095535  -1.03923048  1478.77836
+12 −0
Original line number Diff line number Diff line
@@ -18,6 +18,14 @@ using namespace Isis;
using namespace std;
using namespace boost::numeric::ublas;

/**
 *
 * @author 2010-07-30 Tracie Sucharski, Ken L. Edmunson, and Debbie A. Cook
 *
 * @internal
 *   @history 2015-02-20 Jeannie Backer - Added print statement for
 *            latitude, longitude and radius weight accessor methods.
 */
int main(int argc, char *argv[]) {
  Isis::Preference::Preferences(true);
  symmetric_matrix<double,upper> cvRect,cvOc;
@@ -72,6 +80,10 @@ int main(int argc, char *argv[]) {
         " m, longitude sigma=" << spRec.GetLonSigmaDistance().meters() <<
         " m, radius sigma=" << spRec.GetLocalRadiusSigma().meters()
         <<  " m" << endl;
    cout << "    latitude weight =" << spRec.GetLatWeight() <<
         ", longitude weight =" << spRec.GetLonWeight() <<
         ", radius weight =" << spRec.GetLocalRadiusWeight() << endl;

    cout << "    spherical covariance matrix = " << covarSphere(0,0) << "  " <<
         covarSphere(0,1) << "  " << covarSphere(0,2) << endl;
    cout << "                                  " << covarSphere(1,0) << "  " <<