Loading

reducer.sum.nonnull


reducer
Since v1.0.11
Available on all platforms
See also

Alias of reducer.sum.forbid-nulls.

The reducer.sum.nonnull function computes at each tick the sum of the values of Geo Time Series™ which are in the same equivalence class.

It operates on LONG and DOUBLE.

The location and elevation returned are the first one encountered, which may vary depending on the order of the parameters.

It will return null for any tick where one or more GTS have null values.

Signature

Examples

[ [ NEWGTS "GTS1" RENAME 10 NaN NaN NaN 10 ADDVALUE 20 NaN NaN NaN -15 ADDVALUE NEWGTS "GTS2" RENAME 10 NaN NaN NaN 20 ADDVALUE 20 NaN NaN NaN 3 ADDVALUE NEWGTS "GTS3" RENAME 10 NaN NaN NaN 13 ADDVALUE 20 NaN NaN NaN -30 ADDVALUE NEWGTS "GTS4" RENAME 10 NaN NaN NaN -1 ADDVALUE ] [] reducer.sum.nonnull ] REDUCE