@Test public void testGetResolutionInKm() { assertEquals(0.3, OlciProductFactory.getResolutionInKm("OL_1_EFR"), 1e-8); assertEquals(0.3, OlciProductFactory.getResolutionInKm("OL_2_LFR"), 1e-8); assertEquals(0.3, OlciProductFactory.getResolutionInKm("OL_2_WFR"), 1e-8); assertEquals(1.2, OlciProductFactory.getResolutionInKm("OL_1_ERR"), 1e-8); assertEquals(1.2, OlciProductFactory.getResolutionInKm("OL_2_LRR"), 1e-8); assertEquals(1.2, OlciProductFactory.getResolutionInKm("OL_2_WRR"), 1e-8); }
static double getResolutionInKm(String productType) { switch (productType) { case "OL_1_EFR": case "OL_2_LFR": case "OL_2_WFR": return 0.3; case "OL_1_ERR": case "OL_2_LRR": case "OL_2_WRR": return 1.2; default: throw new IllegalArgumentException("unsupported product of type: " + productType); } }
OlciProductFactory extends AbstractProductFactory { static double getResolutionInKm(String productType) { switch (productType) { case "OL_1_EFR": case "OL_2_LFR": case "OL_2_WFR": return 0.3; case "OL_1_ERR": case "OL_2_LRR": case "OL_2_WRR": return 1.2; default: throw new IllegalArgumentException("unsupported product of type: " + productType); } } }
OlciProductFactory extends AbstractProductFactory { static double getResolutionInKm(String productType) { switch (productType) { case "OL_1_EFR": case "OL_2_LFR": case "OL_2_WFR": return 0.3; case "OL_1_ERR": case "OL_2_LRR": case "OL_2_WRR": return 1.2; default: throw new IllegalArgumentException("unsupported product of type: " + productType); } } OlciProductFactory(Sentinel3ProductReader productReader); }
OlciProductFactory extends AbstractProductFactory { static double getResolutionInKm(String productType) { switch (productType) { case "OL_1_EFR": case "OL_2_LFR": case "OL_2_WFR": return 0.3; case "OL_1_ERR": case "OL_2_LRR": case "OL_2_WRR": return 1.2; default: throw new IllegalArgumentException("unsupported product of type: " + productType); } } OlciProductFactory(Sentinel3ProductReader productReader);  }
OlciProductFactory extends AbstractProductFactory { static double getResolutionInKm(String productType) { switch (productType) { case "OL_1_EFR": case "OL_2_LFR": case "OL_2_WFR": return 0.3; case "OL_1_ERR": case "OL_2_LRR": case "OL_2_WRR": return 1.2; default: throw new IllegalArgumentException("unsupported product of type: " + productType); } } OlciProductFactory(Sentinel3ProductReader productReader);  final static String OLCI_USE_PIXELGEOCODING; }