org.esa.snap.core.gpf.Operator.getSourceTile()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中org.esa.snap.core.gpf.Operator.getSourceTile()方法的一些代码示例,展示了Operator.getSourceTile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operator.getSourceTile()方法的具体详情如下:
包路径:org.esa.snap.core.gpf.Operator
类名称:Operator
方法名:getSourceTile

Operator.getSourceTile介绍

暂无

代码示例

代码示例来源:origin: senbox-org/s1tbx

/**
 * Gets a {@link Tile} for a given band and rectangle.
 *
 * @param rasterDataNode the raster data node of a data product,
 *                       e.g. a {@link Band Band} or
 *                       {@link TiePointGrid TiePointGrid}.
 * @param rectangle      the raster rectangle in pixel coordinates
 * @return a tile.
 * @throws OperatorException if the tile request cannot be processed
 */
public Tile getSourceTile(RasterDataNode rasterDataNode, Rectangle rectangle) throws OperatorException {
  return calibrationOp.getSourceTile(rasterDataNode, rectangle);
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(Band targetBand, Tile targetTile, String srcBandName) throws OperatorException {

    Band sourceBand = sourceProduct.getBand(targetBand.getName());
    Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
    targetTile.setRawSamples(sourceTile.getRawSamples());
  }
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(final Band targetBand, final Tile targetTile,
                    final String srcBandName) throws OperatorException {
  final Band sourceBand = sourceProduct.getBand(targetBand.getName());
  final Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
  targetTile.setRawSamples(sourceTile.getRawSamples());
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(Band targetBand, Tile targetTile, String srcBandName)
    throws OperatorException {
  Band sourceBand = sourceProduct.getBand(targetBand.getName());
  Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
  targetTile.setRawSamples(sourceTile.getRawSamples());
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(Band targetBand, Tile targetTile, String srcBandName) throws OperatorException {

    Band sourceBand = sourceProduct.getBand(targetBand.getName());
    Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
    targetTile.setRawSamples(sourceTile.getRawSamples());
  }
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(final Band targetBand, final Tile targetTile,
                      final String srcBandName) throws OperatorException {

    final Band sourceBand = sourceProduct.getBand(targetBand.getName());
    final Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
    targetTile.setRawSamples(sourceTile.getRawSamples());
  }
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(final Band targetBand, final Tile targetTile,
                    final String srcBandName) throws OperatorException {
  final Band sourceBand = sourceProduct.getBand(targetBand.getName());
  final Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
  targetTile.setRawSamples(sourceTile.getRawSamples());
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(Band targetBand, Tile targetTile,
                      String srcBandName) throws OperatorException {
    Band sourceBand = sourceProduct.getBand(targetBand.getName());
    Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
    targetTile.setRawSamples(sourceTile.getRawSamples());
  }
}

代码示例来源:origin: senbox-org/s1tbx

public void removeFactorsForCurrentTile(Band targetBand, Tile targetTile,
                      String srcBandName) throws OperatorException {
    Band sourceBand = sourceProduct.getBand(targetBand.getName());
    Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTile.getRectangle());
    targetTile.setRawSamples(sourceTile.getRawSamples());
  }
}

代码示例来源:origin: senbox-org/s1tbx

final ProductData[] dataBuffers = new ProductData[bandList.srcBands.length];
for (int i = 0; i < bandList.srcBands.length; i++) {
  sourceTiles[i] = op.getSourceTile(bandList.srcBands[i], sourceRectangle);
  dataBuffers[i] = sourceTiles[i].getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

if (srcBandNames.length == 1) {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, targetTileRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
} else {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  final Band sourceBand2 = sourceProduct.getBand(srcBandNames[1]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, targetTileRectangle);
  final Tile sourceRaster2 = calibrationOp.getSourceTile(sourceBand2, targetTileRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
  srcData2 = sourceRaster2.getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

final ProductData[] dataBuffers = new ProductData[bandList.srcBands.length];
for (int i = 0; i < bandList.srcBands.length; i++) {
  sourceTiles[i] = op.getSourceTile(bandList.srcBands[i], sourceRectangle);
  dataBuffers[i] = sourceTiles[i].getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

final ProductData[] dataBuffers = new ProductData[bandList.srcBands.length];
for (int i = 0; i < bandList.srcBands.length; i++) {
  sourceTiles[i] = op.getSourceTile(bandList.srcBands[i], sourceRectangle);
  dataBuffers[i] = sourceTiles[i].getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

final ProductData[] dataBuffers = new ProductData[bandList.srcBands.length];
for (int i = 0; i < bandList.srcBands.length; i++) {
  sourceTiles[i] = op.getSourceTile(bandList.srcBands[i], sourceRectangle);
  dataBuffers[i] = sourceTiles[i].getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

if (srcBandNames.length == 1) {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, targetTileRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
} else {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  final Band sourceBand2 = sourceProduct.getBand(srcBandNames[1]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, targetTileRectangle);
  final Tile sourceRaster2 = calibrationOp.getSourceTile(sourceBand2, targetTileRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
  srcData2 = sourceRaster2.getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

if (srcBandNames.length == 1) {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, sourceRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
} else {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  sourceBand2 = sourceProduct.getBand(srcBandNames[1]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, sourceRectangle);
  sourceRaster2 = calibrationOp.getSourceTile(sourceBand2, sourceRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
  srcData2 = sourceRaster2.getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

if (srcBandNames.length == 1) {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, targetTileRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
} else {
  sourceBand1 = sourceProduct.getBand(srcBandNames[0]);
  final Band sourceBand2 = sourceProduct.getBand(srcBandNames[1]);
  sourceRaster1 = calibrationOp.getSourceTile(sourceBand1, targetTileRectangle);
  final Tile sourceRaster2 = calibrationOp.getSourceTile(sourceBand2, targetTileRectangle);
  srcData1 = sourceRaster1.getDataBuffer();
  srcData2 = sourceRaster2.getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

final ProductData[] dataBuffers = new ProductData[bandList.srcBands.length];
for (int i = 0; i < bandList.srcBands.length; i++) {
  sourceTiles[i] = op.getSourceTile(bandList.srcBands[i], sourceRectangle);
  dataBuffers[i] = sourceTiles[i].getDataBuffer();

代码示例来源:origin: senbox-org/s1tbx

final Tile sourceTile = calibrationOp.getSourceTile(sourceBand, targetTileRectangle);
final ProductData srcData = sourceTile.getDataBuffer();
final Unit.UnitType bandUnit = Unit.getUnitType(sourceBand);

代码示例来源:origin: senbox-org/s1tbx

sourceTile = operator.getSourceTile(sourceBand, sourceRectangle);

相关文章