@Test public void testGetForwardAndInverseKeys_pixelCoding_fractionalAccuracy() { final String fractionalAccuracy = System.getProperty(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY); try { System.setProperty(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, "true"); final String[] codingKeys = OlciProductFactory.getForwardAndInverseKeys_pixelCoding(); assertEquals("FWD_PIXEL_INTERPOLATING", codingKeys[0]); assertEquals("INV_PIXEL_QUAD_TREE", codingKeys[1]); } finally { if (fractionalAccuracy != null) { System.setProperty(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, fractionalAccuracy); } else { System.clearProperty(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY); } } }
static String[] getForwardAndInverseKeys_pixelCoding() { final String[] codingNames = new String[2]; final Preferences preferences = Config.instance("s3tbx").preferences(); final boolean useFractAccuracy = preferences.getBoolean(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, false); if (useFractAccuracy) { codingNames[0] = PixelInterpolatingForward.KEY; } else { codingNames[0] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_FORWARD, PixelForward.KEY); } codingNames[1] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_INVERSE, PixelQuadTreeInverse.KEY); return codingNames; }
OlciProductFactory extends AbstractProductFactory { static String[] getForwardAndInverseKeys_pixelCoding() { final String[] codingNames = new String[2]; final Preferences preferences = Config.instance("s3tbx").preferences(); final boolean useFractAccuracy = preferences.getBoolean(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, false); if (useFractAccuracy) { codingNames[0] = PixelInterpolatingForward.KEY; } else { codingNames[0] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_FORWARD, PixelForward.KEY); } codingNames[1] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_INVERSE, PixelQuadTreeInverse.KEY); return codingNames; } }
OlciProductFactory extends AbstractProductFactory { static String[] getForwardAndInverseKeys_pixelCoding() { final String[] codingNames = new String[2]; final Preferences preferences = Config.instance("s3tbx").preferences(); final boolean useFractAccuracy = preferences.getBoolean(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, false); if (useFractAccuracy) { codingNames[0] = PixelInterpolatingForward.KEY; } else { codingNames[0] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_FORWARD, PixelForward.KEY); } codingNames[1] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_INVERSE, PixelQuadTreeInverse.KEY); return codingNames; } OlciProductFactory(Sentinel3ProductReader productReader); }
OlciProductFactory extends AbstractProductFactory { static String[] getForwardAndInverseKeys_pixelCoding() { final String[] codingNames = new String[2]; final Preferences preferences = Config.instance("s3tbx").preferences(); final boolean useFractAccuracy = preferences.getBoolean(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, false); if (useFractAccuracy) { codingNames[0] = PixelInterpolatingForward.KEY; } else { codingNames[0] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_FORWARD, PixelForward.KEY); } codingNames[1] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_INVERSE, PixelQuadTreeInverse.KEY); return codingNames; } OlciProductFactory(Sentinel3ProductReader productReader);  }
OlciProductFactory extends AbstractProductFactory { static String[] getForwardAndInverseKeys_pixelCoding() { final String[] codingNames = new String[2]; final Preferences preferences = Config.instance("s3tbx").preferences(); final boolean useFractAccuracy = preferences.getBoolean(SYSPROP_OLCI_USE_FRACTIONAL_ACCURACY, false); if (useFractAccuracy) { codingNames[0] = PixelInterpolatingForward.KEY; } else { codingNames[0] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_FORWARD, PixelForward.KEY); } codingNames[1] = preferences.get(SYSPROP_OLCI_PIXEL_CODING_INVERSE, PixelQuadTreeInverse.KEY); return codingNames; } OlciProductFactory(Sentinel3ProductReader productReader);  final static String OLCI_USE_PIXELGEOCODING; }