Class MergeOp


  • @OperatorMetadata(alias="Merge",
                      category="Raster",
                      description="Allows merging of several source products by using specified \'master\' as reference product.",
                      authors="SNAP Team",
                      version="1.3",
                      copyright="(c) 2012 by Brockmann Consult")
    public class MergeOp
    extends Operator
    The merge operator allows copying raster data from other products to a specified product. The first product provided is considered the 'master product', into which the raster data coming from the other products is copied. Existing nodes are kept.

    It is mandatory that the products share the same scene, that is, their width and height need to match with those of the master product as well as their geographic position.

    • Constructor Detail

      • MergeOp

        public MergeOp()
    • Method Detail

      • computeTile

        public void computeTile​(Band band,
                                Tile targetTile,
                                ProgressMonitor pm)
                         throws OperatorException
        Description copied from class: Operator
        Called by the framework in order to compute a tile for the given target band.

        The default implementation throws a runtime exception with the message "not implemented".

        This method shall never be called directly.

        Overrides:
        computeTile in class Operator
        Parameters:
        band - The target band.
        targetTile - The current tile associated with the target band to be computed.
        pm - A progress monitor which should be used to determine computation cancellation requests.
        Throws:
        OperatorException - If an error occurs during computation of the target raster.