Band band = inputProduct.addBand("radiance_" + (i + 1), ProductData.TYPE_FLOAT32); band.setSpectralWavelength(wl[i]); band.setSpectralBandIndex(i);
private void addBandToProduct(Product product, NITFReaderWrapper reader, int bandIndex) { Assert.notNull(product); Assert.notNull(reader); NITFMetadata nitfMetadata = reader.getMetadata(); Band band = product.addBand(RapidEyeConstants.BAND_NAMES[bandIndex], nitfMetadata.getDataType()); band.setSpectralWavelength(nitfMetadata.getWavelength()); band.setUnit(nitfMetadata.getUnit()); band.setSpectralBandIndex(bandIndex); } }
band.setSpectralWavelength((float) spectralInfo.getWavelengthCentral()); band.setSpectralBandwidth((float) spectralInfo.getSpectralBandwith()); band.setSpectralBandIndex(spectralInfo.getBandId()); band.setSpectralWavelength(0); band.setSpectralBandwidth(0); band.setSpectralBandIndex(-1); band.setSampleCoding(indexBandInfo.getIndexCoding()); band.setImageInfo(indexBandInfo.getImageInfo()); band.setSpectralWavelength(0); band.setSpectralBandwidth(0); band.setSpectralBandIndex(-1);
targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex()); targetBand.setDescription(bandName);
targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex()); targetBand.setDescription(bandName); return targetBand;
targetBand.setSpectralBandIndex(band.getSpectralBandIndex()); targetBand.setSpectralWavelength(band.getSpectralWavelength()); targetBand.setSpectralBandwidth(band.getSpectralBandwidth());
targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(srcBand.getSpectralBandIndex()); targetBand.setDescription(srcBand.getDescription());
targetBand.setImageInfo(srcBand.getImageInfo()); targetBand.setSpectralBandIndex(idx + 1); readBandStatistics(targetBand, idx, componentMetadata); if (targetBand.getDescription() == null)
targetBand.setSampleCoding(srcBand.getSampleCoding()); targetBand.setSpectralBandIndex(bandIndex); targetBand.setDescription(srcBand.getDescription()); targetBand.setSourceImage(srcBand.getSourceImage()); targetBand.setUnit("cW/m\u00B2 sr μm"); targetBand.setSpectralBandwidth(RapidEyeConstants.BANDWIDTHS[bandIndex]); targetBand.setSpectralBandIndex(bandIndex); targetBand.setScalingFactor(metadata.getScaleFactor(bandIndex)); product.addBand(targetBand);
Band targetBand = new ColorPaletteBand(bandInfos[i].getId(), pixelDataType, Math.round(width / factorX), Math.round(height / factorY), colorPaletteFilePath); targetBand.setSpectralBandIndex(numBands > 1 ? i : -1); targetBand.setSpectralWavelength(bandInfos[i].getCentralWavelength()); targetBand.setSpectralBandwidth(bandInfos[i].getBandwidth());
Band targetBand = new ColorPaletteBand(bandInfos[i].getId(), pixelDataType, Math.round(width / factorX), Math.round(height / factorY), colorPaletteFilePath); targetBand.setSpectralBandIndex(numBands > 1 ? i : -1); targetBand.setSpectralWavelength(bandInfos[i].getCentralWavelength()); targetBand.setSpectralBandwidth(bandInfos[i].getBandwidth());
private void setBandProperties(Band targetBand, Band band) { targetBand.setSpectralBandIndex(band.getSpectralBandIndex()); targetBand.setSpectralWavelength(band.getSpectralWavelength()); targetBand.setSpectralBandwidth(band.getSpectralBandwidth()); targetBand.setSolarFlux(band.getSolarFlux()); targetBand.setUnit(band.getUnit()); targetBand.setNoDataValue(band.getNoDataValue()); targetBand.setNoDataValueUsed(true); targetBand.setScalingFactor(band.getScalingFactor()); targetBand.setScalingOffset(band.getScalingOffset()); targetBand.setUnit(band.getUnit()); targetBand.setDescription(band.getDescription()); }
band.setSpectralWavelength(0); band.setSpectralBandwidth(0); band.setSpectralBandIndex(-1); band.setSampleCoding(indexBandInfo.getIndexCoding()); band.setImageInfo(indexBandInfo.getImageInfo());
band.setSpectralWavelength(0); band.setSpectralBandwidth(0); band.setSpectralBandIndex(-1); band.setSampleCoding(indexBandInfo.getIndexCoding()); band.setImageInfo(indexBandInfo.getImageInfo());