Loading

FILLVALUE

bucketize gts

The FILLVALUE function fills gaps in a bucketized Geo Time Series™ instance with a fixed value/location/elevation.

It expects a GTS or a list thereof on the top of the stack after having consumed a list of parameters (latitude, longitude, elevation, value) sitting on top of the stack prior to the call.

Location must be floating point numbers (e.g. 0.0 not 0). Elevation must be an integer. If no location or elevation should be set, NaN can be used instead of specific value.

This function has no effect on non bucketized GTS instances.

The value is cast to the type of the GTS value

FILLVALUE is available since version 1.0.0.

See also

Signatures

Examples

NEWGTS 100 NaN NaN NaN 10 ADDVALUE 200 NaN NaN NaN 9 ADDVALUE 300 NaN NaN NaN 8 ADDVALUE 400 NaN NaN NaN 7 ADDVALUE 500 NaN NaN NaN 6 ADDVALUE [ SWAP bucketizer.mean 500 50 0 ] BUCKETIZE // Create the list of parameters for FILLVALUE [ 0.0 0.0 0 42 ] // And we apply FILLVALUE to fill the gaps FILLVALUE // And then sort to see the result SORT