Replace Value in Array

Group (Subgroup)

Core (Misc)

Description

This Filter replaces a user specified value in a user specified Attribute Array with a second user specified value. For example, if the user entered a Remove Value of 2.0 and a Replace Value of 5.5, then every occurence of 2.0 in the selected Attribute Array would be changed to 5.5. Below are the ranges for the values that can be entered for the different primitive types of arrays (for user reference). The selected Attribute Array must be a scalar array.

Primitive Data Types

Type Size Range
Signed Integer 8 bit 0 to 255
Unsigned Integer 8 bit -128 to 127
Signed Integer 16 bit -32,768 to 32,767
Unsigned Integer 16 bit 0 to 65,535
Signed Integer 32 bit -2,147,483,648 to 2,147,483,647
Unsigned Integer 32 bit 0 to 4,294,967,295
Signed Integer 64 bit 9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Unsigned Integer 64 bit 0 to 18,446,744,073,709,551,615
Float 32 bit -3.4e+38 to -1.1e-38, 0.0, 1.1e-38 to 3.4e+38 (7 digits)
Double 64 bit -1.7e+308 to -2.2e-308, 0.0, 2.2e-308 to 1.7e+308 (15 digits)
Boolean 8 bit 0 = false and any other value will be forced to 1 = true

Parameters

Name Type Description
Value to Replace double Value to be removed from array
New Value double Value to replace the removed values in the array

Required Geometry

Not Applicable

Required Objects

Kind Default Name Type Component Dimensions Description
Any Attribute Array None Any (1) Path to Attribute Array that will have values replaced

Created Objects

None

Example Pipelines

Please see the description file distributed with this Plugin

DREAM.3D Mailing Lists

If you need more help with a Filter, please consider asking your question on the DREAM.3D Users Google group!