/** * Computes the grouping of bands if the product has multiple raster files. * @return the grouping expression or an empty string if there is at most one raster file. */ protected String computeGroupPattern() { String groupPattern = ""; rasterFileNames = getRasterFileNames(); if (rasterFileNames.size() > 1) { for (int idx = 0; idx < rasterFileNames.size(); idx++) { groupPattern += "scene_" + String.valueOf(idx) + ":"; } } return groupPattern.substring(0, groupPattern.length() - 1); }
for(String inputFile: getRasterFileNames()){ TreeNode<File> productFile = new TreeNode<>(inputFile); result.addChild(productFile);
rasterFileNames = getRasterFileNames(); if (componentIndex >= rasterFileNames.size()) { throw new ArrayIndexOutOfBoundsException(String.format("Invalid component index: %d", componentIndex));