Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unit test for Kaguya TC to match output of updated camera model #3241

Merged
merged 1 commit into from
Apr 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions isis/src/kaguya/objs/KaguyaTcCamera/KaguyaTcCamera.truth
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ DeltaSample = 0
DeltaLine = 0

For center pixel position ...
Latitude off by: -9.37449768301235054e-05
Longitude off by: -5.93533007986479788e-05
Latitude OK
Longitude OK


Testing TC1 s L2B0 image...
Expand Down Expand Up @@ -61,5 +61,5 @@ DeltaSample = 0
DeltaLine = 0

For center pixel position ...
Latitude off by: 0.000266978116243876684
Longitude off by: 0.000317664115719651363
Latitude OK
Longitude OK
8 changes: 4 additions & 4 deletions isis/src/kaguya/objs/KaguyaTcCamera/unitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ int main(void) {
// These should be lat/lon at center of image. To obtain these numbers for a new cube/camera,
// set both the known lat and known lon to zero and copy the unit test output
// "Latitude off by: " and "Longitude off by: " values directly into these variables.
double knownLat = 59.0972605733461691;
double knownLon = 311.467742700096323;
double knownLat = 58.3498029142273396;
double knownLon = 311.458498980458671;

qDebug() << "Testing TC2 w L2B0 image...";
Cube c("$kaguya/testData/TC2W2B0_01_02735N583E3115.cub", "r");
Expand Down Expand Up @@ -114,8 +114,8 @@ int main(void) {
qDebug() << "";
qDebug() << "";
qDebug() << "Testing TC1 s L2B0 image...";
knownLat = -81.2150653963736175;
knownLon = 47.1989499604665284;
knownLat = -82.0214347373044603;
knownLon = 46.4180177580203335;

Cube c2("$kaguya/testData/TC1S2B0_01_06691S820E0465.cub", "r");
KaguyaTcCamera *cam2 = (KaguyaTcCamera *) CameraFactory::Create(c2);
Expand Down