Skip to content

Commit

Permalink
reduced comparison accuracy - inter JDK differences
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBlock committed Jan 8, 2025
1 parent 3d4ff6f commit fe22961
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public void testGetPixelLocator() throws IOException {
Point2D[] pixelLocation = pixelLocator.getPixelLocation(48.574527740478516, 8.604050636291504);
assertEquals(1, pixelLocation.length);
assertEquals(127.48316325755054, pixelLocation[0].getX(), 1e-8);
assertEquals(1122.479083995203, pixelLocation[0].getY(), 1e-8);
assertEquals(1122.479083995203, pixelLocation[0].getY(), 1e-6);

pixelLocation = pixelLocator.getPixelLocation(-4, 1176);
assertEquals(0, pixelLocation.length);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public void testGetPixelLocator_AMSUB_NOAA15() throws IOException {

pixelLocation = pixelLocator.getPixelLocation(-9.3541, 46.5467);
assertEquals(1, pixelLocation.length);
assertEquals(20.549521097468954, pixelLocation[0].getX(), 1e-8); // original 20.5
assertEquals(20.549521097468954, pixelLocation[0].getX(), 1e-6); // original 20.5
assertEquals(484.47231359716176, pixelLocation[0].getY(), 1e-8); // original 484.5

//-------------------------------------------------------------
Expand All @@ -433,7 +433,7 @@ public void testGetPixelLocator_AMSUB_NOAA15() throws IOException {

pixelLocation = pixelLocator.getPixelLocation(-35.8302, -37.3806);
assertEquals(1, pixelLocation.length);
assertEquals(40.47791010604271, pixelLocation[0].getX(), 1e-8); // original 40.5
assertEquals(40.47791010604271, pixelLocation[0].getX(), 1e-6); // original 40.5
assertEquals(1024.3933174972674, pixelLocation[0].getY(), 1e-8); // original 1024.5

//-------------------------------------------------------------
Expand All @@ -453,8 +453,8 @@ public void testGetPixelLocator_AMSUB_NOAA15() throws IOException {

pixelLocation = pixelLocator.getPixelLocation(168.4784, -64.352);
assertEquals(1, pixelLocation.length); // is part of self intersecting area
assertEquals(60.49976819818859, pixelLocation[0].getX(), 1e-8); // original 60.5
assertEquals(1504.4747569343847, pixelLocation[0].getY(), 1e-8); // original 1504.5
assertEquals(60.49976819818859, pixelLocation[0].getX(), 1e-6); // original 60.5
assertEquals(1504.4747569343847, pixelLocation[0].getY(), 1e-6); // original 1504.5

} finally {
reader.close();
Expand All @@ -481,7 +481,7 @@ public void testSubScenePixelLocator_MHS_NOAA18() throws IOException {
Point2D[] pixelLocation = subScenePixelLocator.getPixelLocation(-169.9742, -55.0959);
assertEquals(1, pixelLocation.length);
assertEquals(18.4837931639385, pixelLocation[0].getX(), 1e-8); // original 18.5
assertEquals(1061.542564721166, pixelLocation[0].getY(), 1e-8); // original 1061.5
assertEquals(1061.542564721166, pixelLocation[0].getY(), 1e-6); // original 1061.5

} finally {
reader.close();
Expand Down

0 comments on commit fe22961

Please sign in to comment.