@Test public void testSEAWIFS() { Product product = new Product("dummy", "dummy-seawifs", 2, 2); MetadataElement root = product.getMetadataRoot(); MetadataElement dsd23 = new MetadataElement("Global_Attributes"); dsd23.setAttributeString("Title", "SeaWiFS Level-2 Data"); root.addElement(dsd23); assertEquals(Instrument.SEAWIFS, DetectInstrument.getInstrument(product)); }
private static boolean seawifs(Product product) { MetadataElement globalAttributes = product.getMetadataRoot().getElement(GLOBAL_ATTRIBUTES); String attribName = "Title"; if (globalAttributes != null && globalAttributes.containsAttribute(attribName)) { final String title = globalAttributes.getAttributeString(attribName); if (title.equals(SEAWIFS_TITLE)) { return true; } } return false; }
DetectInstrument { private static boolean seawifs(Product product) { MetadataElement globalAttributes = product.getMetadataRoot().getElement(GLOBAL_ATTRIBUTES); String attribName = "Title"; if (globalAttributes != null && globalAttributes.containsAttribute(attribName)) { final String title = globalAttributes.getAttributeString(attribName); if (title.equals(SEAWIFS_TITLE)) { return true; } } return false; } }
DetectInstrument { private static boolean seawifs(Product product) { MetadataElement globalAttributes = product.getMetadataRoot().getElement(GLOBAL_ATTRIBUTES); String attribName = "Title"; if (globalAttributes != null && globalAttributes.containsAttribute(attribName)) { final String title = globalAttributes.getAttributeString(attribName); if (title.equals(SEAWIFS_TITLE)) { return true; } } return false; }  }
DetectInstrument { private static boolean seawifs(Product product) { MetadataElement globalAttributes = product.getMetadataRoot().getElement(GLOBAL_ATTRIBUTES); String attribName = "Title"; if (globalAttributes != null && globalAttributes.containsAttribute(attribName)) { final String title = globalAttributes.getAttributeString(attribName); if (title.equals(SEAWIFS_TITLE)) { return true; } } return false; }   }
DetectInstrument { private static boolean seawifs(Product product) { MetadataElement globalAttributes = product.getMetadataRoot().getElement(GLOBAL_ATTRIBUTES); String attribName = "Title"; if (globalAttributes != null && globalAttributes.containsAttribute(attribName)) { final String title = globalAttributes.getAttributeString(attribName); if (title.equals(SEAWIFS_TITLE)) { return true; } } return false; }    }