@Test public void testInvert() { final float[] scales = new float[]{24.7f, 0.f, -100.f}; ModisFileReader.invert(scales); assertEquals(0.04048583f, scales[0], 1e-8); assertEquals(0.f, scales[1], 1e-8); assertEquals(-0.01f, scales[2], 1e-8); }
static void invert(float[] scales) { for (int i = 0; i < scales.length; i++) { if (scales[i] != 0.f) { scales[i] = 1.f / scales[i]; } } }
ModisFileReader { static void invert(float[] scales) { for (int i = 0; i < scales.length; i++) { if (scales[i] != 0.f) { scales[i] = 1.f / scales[i]; } } } }
ModisFileReader { static void invert(float[] scales) { for (int i = 0; i < scales.length; i++) { if (scales[i] != 0.f) { scales[i] = 1.f / scales[i]; } } } ModisFileReader(); }
ModisFileReader { static void invert(float[] scales) { for (int i = 0; i < scales.length; i++) { if (scales[i] != 0.f) { scales[i] = 1.f / scales[i]; } } } ModisFileReader(); void addRastersAndGeoCoding(final Product product, ModisGlobalAttributes globalAttribs, NetCDFVariables netCDFVariables); ModisBandReader getBandReader(final Band band); void close(); }
ModisFileReader { static void invert(float[] scales) { for (int i = 0; i < scales.length; i++) { if (scales[i] != 0.f) { scales[i] = 1.f / scales[i]; } } } ModisFileReader(); void addRastersAndGeoCoding(final Product product, ModisGlobalAttributes globalAttribs, NetCDFVariables netCDFVariables); ModisBandReader getBandReader(final Band band); void close();  }