Links

Mass Arithmetic Operation

- [source code]
Perform a "mass" arithmetic operation between Data Collections. For example, adding a list of Data Collections into one Data Collection.
Note that Data Collections must be aligned in order for this component to run successfully.
Using this component will often be much faster and more elegant compared to deconstructing the data collection, performing the operation with native Grasshopper components, and rebuilding the collection.

Inputs

  • data [Required]
    A list of Data Collections to be used in the arithmetic operation.
  • operator
    Text for the operator to use between the Data Collections. Valid examples include (+, -, *, /). By default this is + for addition.
  • type
    Optional text for a new "type" key in the Data Collection's metadata. This will usually show up in most Ladybug visualiztions and it should usually change for most types of operations.

Outputs

  • data
    A Ladybug data collection object derived from the operation between the two data inputs.