Class ReadOp


  • @OperatorMetadata(alias="Read",
                      category="Input-Output",
                      version="1.2",
                      authors="Marco Zuehlke, Norman Fomferra",
                      copyright="(c) 2010 by Brockmann Consult",
                      description="Reads a data product from a given file location.")
    public class ReadOp
    extends Operator
    Reads the specified file as product. This operator may serve as a source node in processing graphs, especially if multiple data products need to be read in.

    Here is a sample of how the Read operator can be integrated as a node within a processing graph:

        <node id="readNode">
            <operator>Read</operator>
            <parameters>
                <file>/eodata/SST.nc</file>
                <formatName>GeoTIFF</formatName>
            </parameters>
        </node>
     
    Since:
    BEAM 4.2
    • Constructor Detail

      • ReadOp

        public ReadOp()
    • 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.