@Test public void testExtractBandName() { assertEquals("band_name", ModisUtils.extractBandName("band_name")); assertEquals("EV_250_Aggr500_RefSB", ModisUtils.extractBandName("MODIS_SWATH_Type_L1B/Data Fields/EV_250_Aggr500_RefSB")); assertEquals("EV_500_RefSB_Uncert_Indexes", ModisUtils.extractBandName("MODIS_SWATH_Type_L1B/Data Fields/EV_500_RefSB_Uncert_Indexes")); }
public static String extractBandName(String variableName) { final int slashIndex = variableName.lastIndexOf('/'); if (slashIndex > 0) { return variableName.substring(slashIndex + 1, variableName.length()); } return variableName; }
ModisUtils { public static String extractBandName(String variableName) { final int slashIndex = variableName.lastIndexOf('/'); if (slashIndex > 0) { return variableName.substring(slashIndex + 1, variableName.length()); } return variableName; } }
ModisUtils { public static String extractBandName(String variableName) { final int slashIndex = variableName.lastIndexOf('/'); if (slashIndex > 0) { return variableName.substring(slashIndex + 1, variableName.length()); } return variableName; }  }
ModisUtils { public static String extractBandName(String variableName) { final int slashIndex = variableName.lastIndexOf('/'); if (slashIndex > 0) { return variableName.substring(slashIndex + 1, variableName.length()); } return variableName; }  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 extractBandName(String variableName) { final int slashIndex = variableName.lastIndexOf('/'); if (slashIndex > 0) { return variableName.substring(slashIndex + 1, variableName.length()); } return variableName; }  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);  }