private Band addBand(RasterDataNode raster, TimeCoding rasterTimeCoding, String bandName) { final Band band = new Band(bandName, raster.getDataType(), tsProduct.getSceneRasterWidth(), tsProduct.getSceneRasterHeight()); band.setSourceImage(raster.getSourceImage()); ProductUtils.copyRasterDataNodeProperties(raster, band); // todo copy also referenced band in valid pixel expression band.setValidPixelExpression(null); rasterTimeMap.put(band, rasterTimeCoding); tsProduct.addBand(band); return band; }
static Band createSubset(Band sourceBand, Scene targetScene, ProductSubsetDef subsetDef) { final Band targetBand = new Band(sourceBand.getName(), sourceBand.getDataType(), targetScene.getRasterWidth(), targetScene.getRasterHeight()); ProductUtils.copyRasterDataNodeProperties(sourceBand, targetBand); targetBand.setSourceImage(getSourceImage(subsetDef, sourceBand)); return targetBand; }
static Band createSubset(Band sourceBand, Scene targetScene, ProductSubsetDef subsetDef) { final Band targetBand = new Band(sourceBand.getName(), sourceBand.getDataType(), targetScene.getRasterWidth(), targetScene.getRasterHeight()); ProductUtils.copyRasterDataNodeProperties(sourceBand, targetBand); targetBand.setSourceImage(getSourceImage(subsetDef, sourceBand)); return targetBand; }
copyRasterDataNodeProperties(sourceBand, targetBand); if (copySourceImage) { targetBand.setSourceImage(sourceBand.getSourceImage());
ProductUtils.copyRasterDataNodeProperties(sourceBand, targetBand); handleSampleCodings(sourceBand, targetBand, renameSlaveComponents, slaveComponentPattern); sourceRasterMap.put(targetBand, sourceBand); ProductUtils.copyRasterDataNodeProperties(sourceGrid, targetBand); sourceRasterMap.put(targetBand, sourceGrid);
ProductUtils.copyRasterDataNodeProperties(sourceGrid, targetBand); targetBand.setSourceImage(createTargetImage(sourceGrid, operationName, operationParameters, renderingHints)); targetProduct.addBand(targetBand);