Class ReprojectionOp

java.lang.Object
org.esa.snap.core.gpf.Operator
org.esa.snap.core.gpf.common.reproject.ReprojectionOp

@OperatorMetadata(alias="Reproject", category="Raster/Geometric", version="1.0", authors="Marco Z\u00fchlke, Marco Peters, Ralf Quast, Norman Fomferra", copyright="(c) 2009 by Brockmann Consult", description="Reprojection of a source product to a target Coordinate Reference System.") public class ReprojectionOp extends Operator

The reprojection operator is used to geo-reference data products. Beside plain reprojection it is able to use a Digital Elevation Model (DEM) to orthorectify a data product and to collocate one product with another.

The following XML sample shows how to integrate the Reproject operator in a processing graph (an Lambert_Azimuthal_Equal_Area projection using the WGS-84 datum):

    <node id="reprojectNode">
        <operator>Reproject</operator>
        <sources>
            <sourceProducts>readNode</sourceProducts>
        </sources>
        <parameters>
            <wktFile/>
            <crs>
              PROJCS["Lambert_Azimuthal_Equal_Area / World Geodetic System 1984",
                GEOGCS["World Geodetic System 1984",
                   DATUM["World Geodetic System 1984",
                      SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
                   AUTHORITY["EPSG","6326"]],
                   PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
                   UNIT["degree", 0.017453292519943295],
                   AXIS["Geodetic longitude", EAST],
                   AXIS["Geodetic latitude", NORTH]],
                PROJECTION["Lambert_Azimuthal_Equal_Area"],
                PARAMETER["latitude_of_center", 0.0],
                PARAMETER["longitude_of_center", 0.0],
                PARAMETER["false_easting", 0.0],
                PARAMETER["false_northing", 0.0],
                UNIT["m", 1.0],
                AXIS["Easting", EAST],
                AXIS["Northing", NORTH]]
            </crs>
            <resampling>Nearest</resampling>
            <referencePixelX>0.5</referencePixelX>
            <referencePixelY>0.5</referencePixelY>
            <easting>9.5</easting>
            <northing>56.84</northing>
            <orientation>0.0</orientation>
            <pixelSizeX>0.012</pixelSizeX>
            <pixelSizeY>0.012</pixelSizeY>
            <width>135010246</width>
            <height>116629771</height>
            <orthorectify>false</orthorectify>
            <elevationModelName/>
            <noDataValue>NaN</noDataValue>
            <includeTiePointGrids>true</includeTiePointGrids>
            <addDeltaBands>false</addDeltaBands>
        </parameters>
    </node>
 
Since:
BEAM 4.7
Version:
$Revision$ $Date$
  • Constructor Details

    • ReprojectionOp

      public ReprojectionOp()
  • Method Details

    • initialize

      public void initialize() throws OperatorException
      Description copied from class: Operator
      Initializes this operator and sets the one and only target product.

      The target product can be either defined by a field of type Product annotated with the TargetProduct annotation or by calling Operator.setTargetProduct(org.esa.snap.core.datamodel.Product) method.

      This method shall never be called directly. The framework calls this method after it has created an instance of this Operator. This will occur only once durting the lifetime of an Operator instance. If not already done, calling the Operator.getTargetProduct() will always trigger a call to the initialize() method.

      Any client code that must be performed before computation of tile data should be placed here.

      Specified by:
      initialize in class Operator
      Throws:
      OperatorException - If an error occurs during operator initialisation.
      See Also:
    • dispose

      public void dispose()
      Description copied from class: Operator
      Releases the resources the operator has acquired during its lifetime. The default implementation does nothing.

      Overrides should make sure to call super.dispose() as well.

      Overrides:
      dispose in class Operator
    • validateCrsParameters

      protected void validateCrsParameters()