/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit("rad"); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY); }
/** * Sets the unit for the new target band * * @param targetBandName the band name * @param targetBand the new target band */ public void setBandUnit(final String targetBandName, final Band targetBand) { targetBand.setUnit(Unit.INTENSITY_DB); }
private void copyReflectances() { for (int i = 0; i < S2IdepixConstants.S2_MSI_REFLECTANCE_BAND_NAMES.length; i++) { final Band b = ProductUtils.copyBand(S2IdepixConstants.S2_MSI_REFLECTANCE_BAND_NAMES[i], sourceProduct, targetProduct, true); b.setUnit("dl"); } }
private static void configureBand(Band band05X, ImageInfo imageInfo, String unit, String description) { band05X.setUnit(unit); band05X.setDescription(description); band05X.setImageInfo(imageInfo); band05X.setNoDataValue(Double.NaN); band05X.setNoDataValueUsed(true); }
private static Band addVarianceBand(Product product, Band sourceBand, String varianceExpr) { Band varianceBand; varianceBand = product.addBand(sourceBand.getName() + "_variance", varianceExpr, ProductData.TYPE_FLOAT32); varianceBand.setUnit(sourceBand.getUnit()); ProductUtils.copySpectralBandProperties(sourceBand, varianceBand); return varianceBand; }
@Before public void setUp() { band = new Band("name", ProductData.TYPE_INT8, 1, 1); band.setUnit("unit"); }
static private SpectrumBand createBand(int index) { final Band band = new Band("Radiance_" + (index + 1), ProductData.TYPE_INT16, 100, 100); band.setDescription("Radiance for band " + (index + 1)); band.setSpectralWavelength((float) Math.random()); band.setSpectralBandwidth((float) Math.random()); band.setUnit("sr^-1"); if (index == 7) { band.setUnit("dl"); } return new SpectrumBand(band, true); }
private void setBandProperties(Band band, String validMaskExpression) { band.setDescription(bandDescription); band.setUnit(bandUnit); band.setSpectralWavelength(bandWavelength); band.setGeophysicalNoDataValue(noDataValue); band.setNoDataValueUsed(noDataValueUsed); band.setValidPixelExpression(validMaskExpression); }
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); } }
private static void addElevationBand(Product product, ElevationModel dem, String elevationBandName) { final GeoCoding geoCoding = product.getSceneGeoCoding(); ElevationModelDescriptor demDescriptor = dem.getDescriptor(); final float noDataValue = dem.getDescriptor().getNoDataValue(); final Band elevationBand = product.addBand(elevationBandName, ProductData.TYPE_FLOAT32); elevationBand.setNoDataValueUsed(true); elevationBand.setNoDataValue(noDataValue); elevationBand.setUnit(Unit.METERS); elevationBand.setDescription(demDescriptor.getName()); elevationBand.setSourceImage(createElevationSourceImage(dem, geoCoding, elevationBand)); }
@Test public void testdBToLinear() { final Product product = createTestProduct(16, 4); final Band band1 = product.getBandAt(0); band1.setName(band1.getName() + dBStr); band1.setUnit(band1.getUnit() + dBStr); LinearTodBAction.convert(product, band1, false); assertTrue(product.getNumBands() == 2); final Band band2 = product.getBandAt(1); assertTrue(band2.getUnit().equals(Unit.AMPLITUDE)); assertTrue(band2.getName().equals("Amplitude")); }