RasterSingularCellValueCalculator
Performs an arithmetic operation on two operands: the cell values of a raster and a numeric value.
Input Ports
Input features have the following restrictions:
- All input features must have raster geometry.
- Bands may not contain a palette.
Parameters
This parameter sets the operation that will be performed:
+ | add |
- | subtract |
* | multiply |
/ | divide |
For example, if you select the plus sign (+), the two input rasters A and B will be added together (and therefore, the output raster will be A+B).
Specify the numeric value portion of the arithmetic operation. The value can be specified either as a constant or an attribute.
This parameter specifies the order of the operands. This parameter only impacts non-commutative operations such as subtraction.
If this parameter is set to Yes, each output band will have the same interpretation as the corresponding input band. If Preserve Interpretation is set to No, the interpretation of each output band will be automatically determined.
Note that when converting between different data types, a Bounded Cast is used. As a result, when a calculated value does not fit in the specified destination interpretation, the corresponding destination value will either be set to the minimum or maximum value possible in the destination data type.
Usage Notes
This transformer supports raster band selection. The RasterSelector can be used to modify the selection.
Related Transformers
- Nodata values can be set with the RasterBandNodataSetter or removed with the RasterBandNodataRemover.
- Palettes may be resolved using the RasterPaletteResolver or removed using the RasterPaletteRemover.
- You can use the RasterCellValueCalculator to operate on a pair of rasters.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.