Expand a variable by inserting gaps
EXPNDI_BY(dat,mask,outsize)
|
Arguments: |
DAT |
Variable to expand on X axis |
|
MASK |
mask of valid/bad points to use in expanding the data in X |
|
|
OUTPTS |
length in X of output array: size of argument 1 plus number of valid points in the mask |
|
|
Result Axes: |
X |
Abstract |
|
Y |
Inherited from VAR and MASK |
|
|
Z |
Inherited from VAR and MASK |
|
|
T |
Inherited from VAR and MASK |
|
|
E |
Inherited from VAR and MASK |
|
|
F |
Inherited from VAR and MASK |
Example:
Simple example: Compress variable "dat" along its I axis using the mask supplied in the second argument.
yes? let a = {1,4,5,6,7,12,15,16}
yes? let b = {,1,,,1,1,}
yes? let apts = `a,return=isize`
!-> DEFINE VARIABLE apts = 8
yes? let maskpts = `b[i=@ngd]`
!-> DEFINE VARIABLE maskpts = 3
yes? let outpts = apts + maskpts
yes? list expndi_by(a,b,outpts)
VARIABLE : EXPNDI_BY(A,B,OUTPTS)
SUBSET : 11 points (X)
1 / 1: 1.00
2 / 2: ...
3 / 3: 4.00
4 / 4: 5.00
5 / 5: 6.00
6 / 6: ...
7 / 7: 7.00
8 / 8: ...
9 / 9: 12.00
10 / 10: 15.00
11 / 11: ...
