@Test public void testGetBandDescriptors_ECMWF() { final Family<BandDescriptor> descriptors = dddb.getBandDescriptors(DBL_SM_XXXX_AUX_ECMWF__0200); assertEquals(57, descriptors.asList().size()); final BandDescriptor descriptor = descriptors.getMember("RR"); assertNotNull(descriptor); assertEquals("RR", descriptor.getBandName()); assertEquals("Rain_Rate", descriptor.getMemberName()); assertTrue(descriptor.hasTypicalMin()); assertTrue(descriptor.hasTypicalMax()); assertFalse(descriptor.isCyclic()); assertTrue(descriptor.hasFillValue()); assertFalse(descriptor.getValidPixelExpression().isEmpty()); assertEquals("RR.raw != -99999.0 && RR.raw != -99998.0", descriptor.getValidPixelExpression()); assertFalse(descriptor.getUnit().isEmpty()); assertFalse(descriptor.getDescription().isEmpty()); assertEquals(0.0, descriptor.getTypicalMin(), 0.0); assertEquals("m 3h-1", descriptor.getUnit()); }
public Family<BandDescriptor> getBandDescriptors(String formatName) { if (!bandDescriptorMap.containsKey(formatName)) { InputStream inputStream = null; try { inputStream = getBandDescriptorResource(formatName); if (inputStream != null) { final BandDescriptors descriptors = readBandDescriptors(inputStream); bandDescriptorMap.putIfAbsent(formatName, descriptors); } } catch (Throwable t) { throw new IllegalStateException(MessageFormat.format( "An error occurred while reading band descriptors for format name ''{0}''.", formatName)); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } } return bandDescriptorMap.get(formatName); }
Dddb { public Family<BandDescriptor> getBandDescriptors(String formatName) { if (!bandDescriptorMap.containsKey(formatName)) { InputStream inputStream = null; try { inputStream = getBandDescriptorResource(formatName); if (inputStream != null) { final BandDescriptors descriptors = readBandDescriptors(inputStream); bandDescriptorMap.putIfAbsent(formatName, descriptors); } } catch (Throwable t) { throw new IllegalStateException(MessageFormat.format( "An error occurred while reading band descriptors for format name ''{0}''.", formatName)); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } } return bandDescriptorMap.get(formatName); } }
Dddb { public Family<BandDescriptor> getBandDescriptors(String formatName) { if (!bandDescriptorMap.containsKey(formatName)) { InputStream inputStream = null; try { inputStream = getBandDescriptorResource(formatName); if (inputStream != null) { final BandDescriptors descriptors = readBandDescriptors(inputStream); bandDescriptorMap.putIfAbsent(formatName, descriptors); } } catch (Throwable t) { throw new IllegalStateException(MessageFormat.format( "An error occurred while reading band descriptors for format name ''{0}''.", formatName)); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } } return bandDescriptorMap.get(formatName); } private  Dddb(); }
Dddb { public Family<BandDescriptor> getBandDescriptors(String formatName) { if (!bandDescriptorMap.containsKey(formatName)) { InputStream inputStream = null; try { inputStream = getBandDescriptorResource(formatName); if (inputStream != null) { final BandDescriptors descriptors = readBandDescriptors(inputStream); bandDescriptorMap.putIfAbsent(formatName, descriptors); } } catch (Throwable t) { throw new IllegalStateException(MessageFormat.format( "An error occurred while reading band descriptors for format name ''{0}''.", formatName)); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } } return bandDescriptorMap.get(formatName); } private  Dddb(); static Dddb getInstance(); DataFormat getDataFormat(File hdrFile); BandDescriptor findBandDescriptorForMember(String formatName, String memberName); Family<BandDescriptor> getBandDescriptors(String formatName); Family<FlagDescriptor> getFlagDescriptors(String identifier); Family<MemberDescriptor> getMemberDescriptors(File hdrFile); }
Dddb { public Family<BandDescriptor> getBandDescriptors(String formatName) { if (!bandDescriptorMap.containsKey(formatName)) { InputStream inputStream = null; try { inputStream = getBandDescriptorResource(formatName); if (inputStream != null) { final BandDescriptors descriptors = readBandDescriptors(inputStream); bandDescriptorMap.putIfAbsent(formatName, descriptors); } } catch (Throwable t) { throw new IllegalStateException(MessageFormat.format( "An error occurred while reading band descriptors for format name ''{0}''.", formatName)); } finally { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } } } return bandDescriptorMap.get(formatName); } private  Dddb(); static Dddb getInstance(); DataFormat getDataFormat(File hdrFile); BandDescriptor findBandDescriptorForMember(String formatName, String memberName); Family<BandDescriptor> getBandDescriptors(String formatName); Family<FlagDescriptor> getFlagDescriptors(String identifier); Family<MemberDescriptor> getMemberDescriptors(File hdrFile);  }