Personal tools
You are here: Home Documentation Users Guide Appendix A: External Functions COMPRESSI_BY
Document Actions

COMPRESSI_BY

COMPRESSI_BY (var, mask), Compress data according to a mask

Arguments:

VAR

Variable to compress according to MASK


MASK

mask to use in compressing the data

Result Axes:

X

Abstract


Y

Inherited from VAR and MASK


Z

Inherited from VAR and MASK


T

Inherited from VAR and MASK

Compress variable "dat" along its I axis using the (multi-dimensional) mask supplied in the second argument.

For example:

yes? LET mask = {1,,1,,1} + 0*L[l=101:102] + 0*K[k=10:11] 
yes? LIST mask
{1,,1,,1} + 0*L[L=101:102] + 0*K[K=10:11]
1 2 3 4 5
1 2 3 4 5
---- L:101 T: 101
10 / 10: 1.000 .... 1.000 .... 1.000
11 / 11: 1.000 .... 1.000 .... 1.000
---- L:102 T: 102
10 / 10: 1.000 .... 1.000 .... 1.000
11 / 11: 1.000 .... 1.000 .... 1.000

yes? LIST compressi_by({11,22,33,44,55},mask)
COMPRESSI_BY({11,22,33,44,55},MASK)
1 2 3 4 5
1 2 3 4 5
---- L:101 T: 101
10 / 10: 11.00 33.00 55.00 .... ....
11 / 11: 11.00 33.00 55.00 .... ....
---- L:102 T: 102
10 / 10: 11.00 33.00 55.00 .... ....
11 / 11: 11.00 33.00 55.00 .... ....



Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: