BigGeoTiffProductReader extends AbstractProductReader { static boolean isPixelScaleValid(double[] pixelScales) { return pixelScales != null && !Double.isNaN(pixelScales[0]) && !Double.isInfinite(pixelScales[0]) && !Double.isNaN(pixelScales[1]) && !Double.isInfinite(pixelScales[1]); } protected  BigGeoTiffProductReader(ProductReaderPlugIn readerPlugIn); @Override synchronized void close();  }
@Test public void testIsPixelScaleValid() { assertFalse(BigGeoTiffProductReader.isPixelScaleValid(null)); final double[] scales = new double[2]; scales[0] = Double.NaN; scales[1] = 9.1; assertFalse(BigGeoTiffProductReader.isPixelScaleValid(scales)); scales[0] = 9.2; scales[1] = Double.NaN; assertFalse(BigGeoTiffProductReader.isPixelScaleValid(scales)); scales[0] = Double.NEGATIVE_INFINITY; scales[1] = 9.3; assertFalse(BigGeoTiffProductReader.isPixelScaleValid(scales)); scales[0] = 9.4; scales[1] = Double.POSITIVE_INFINITY; assertFalse(BigGeoTiffProductReader.isPixelScaleValid(scales)); scales[0] = 9.5; scales[1] = 9.6; assertTrue(BigGeoTiffProductReader.isPixelScaleValid(scales)); scales[0] = -9.7; scales[1] = 0.0; assertTrue(BigGeoTiffProductReader.isPixelScaleValid(scales)); }