Appendix A
FC_ISUBSET(index_list, lengths, nx, FullData) Returns a subset of a feature collection
Concatenates the values of two variables into one list on an abstract E axis.
Arguments: |
Index_list |
Starting indices of the features of interest |
lengths |
Lengths of the features of interest | |
Arguments: |
nx |
length of result (sum of lengths in argument 2) |
Arguments: |
FullData |
input data: 1D list from which to select features |
Result Axes: |
X |
CUSTOM: length is the sum of the lengths in arg 2 |
Y |
NORMAL |
|
Z |
NORMAL |
|
T |
NORMAL |
|
E |
NORMAL |
|
F |
NORMAL |
Note:
This is a grid-changing function. It is generally advisable to include explicit limits when working with functions that replace axes.
Example:
Define a list which represents several features:Feature 1 starts with index 1, Feature 2 starts with index 2, Feature 3 starts with index 9.
yes? let alldata = {1,2,3, 31,32,33,34,35, 101,102,103,104,105,106} ! Pick out the second and third features. yes? let indexlist = {4,9} yes? let lengths = {5, 6} yes? let nx = `lengths[x=@sum]` yes? let fci = fc_isubset(indexlist, lengths, nx, alldata) yes? list fci VARIABLE : FC_ISUBSET(INDEXLIST, LENGTHS, NX, ALLDATA) SUBSET : 11 points (X (X)) 1 / 1: 31.0 2 / 2: 32.0 3 / 3: 33.0 4 / 4: 34.0 5 / 5: 35.0 6 / 6: 101.0 7 / 7: 102.0 8 / 8: 103.0 9 / 9: 104.0 10 / 10: 105.0 11 / 11: 106.0
Note that a similar thing could be accomplished by calling EXPNDI_BY_Z_COUNTS or EXPNDI_BY_M_COUNTS and then applying a mask in the Z or E direction.