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. TheRasterSelectorcan be used to modify the selection.
Related Transformers
- Nodata values can be set with theRasterBandNodataSetteror removed with theRasterBandNodataRemover.
- Palettes may be resolved using theRasterPaletteResolveror removed using theRasterPaletteRemover.
- You can use theRasterCellValueCalculatorto operate on a pair of rasters.
Editing Transformer Parameters
使用一组菜单选项,变压器参数s 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, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center.