@Test public void testDecodeBandName() { assertEquals(".bla", ModisUtils.decodeBandName("schnipp,schnupp,bla,blubb", 2)); assertEquals(".schnipp", ModisUtils.decodeBandName("schnipp,schnupp,bla,blubb", 0)); }
public static String decodeBandName(String names, int layerIdx) { String strRet = "."; String[] namesArray; namesArray = StringUtils.toStringArray(names, ","); strRet += namesArray[layerIdx]; strRet = strRet.trim(); return strRet; }
ModisUtils { public static String decodeBandName(String names, int layerIdx) { String strRet = "."; String[] namesArray; namesArray = StringUtils.toStringArray(names, ","); strRet += namesArray[layerIdx]; strRet = strRet.trim(); return strRet; } }
ModisUtils { public static String decodeBandName(String names, int layerIdx) { String strRet = "."; String[] namesArray; namesArray = StringUtils.toStringArray(names, ","); strRet += namesArray[layerIdx]; strRet = strRet.trim(); return strRet; }  }
ModisUtils { public static String decodeBandName(String names, int layerIdx) { String strRet = "."; String[] namesArray; namesArray = StringUtils.toStringArray(names, ","); strRet += namesArray[layerIdx]; strRet = strRet.trim(); return strRet; }  static String decodeBandName(String names, int layerIdx); static float[] decodeSpectralInformation(String bandExt, float[] recycle); static String extractValueForKey(String metaDataString, String key); static Date createDateFromStrings(final String date, final String time); static IncrementOffset getIncrementOffset(String attribute); static Range getRangeFromString(String rangeString); static String extractBandName(String variableName); }
ModisUtils { public static String decodeBandName(String names, int layerIdx) { String strRet = "."; String[] namesArray; namesArray = StringUtils.toStringArray(names, ","); strRet += namesArray[layerIdx]; strRet = strRet.trim(); return strRet; }  static String decodeBandName(String names, int layerIdx); static float[] decodeSpectralInformation(String bandExt, float[] recycle); static String extractValueForKey(String metaDataString, String key); static Date createDateFromStrings(final String date, final String time); static IncrementOffset getIncrementOffset(String attribute); static Range getRangeFromString(String rangeString); static String extractBandName(String variableName);  }