SEPARATE(A, Rowsize, FixLongitudes)
Insert a bad-value between features (Discrete Sampling Geometries datasets)
Arguments: | A | Variable to edit on I axis |
Rowsize |
array with per-feature row lengths, in the E direction |
|
FixLongitudes | Option to fix longitude branch-point jumps 1 if A is longitudes needing modulo fixes, 0 otherwise |
|
Result Axes: |
X |
Inherited from argument A |
Y |
Normal |
|
Z |
Normal |
|
T |
Normal |
|
E |
Normal |
|
F |
Normal |
Argument 3 is set to 1 if the variable given in argument 1 is a longitude variable which is longitude along a track line which is limited e.g. to -180:180 and which crosses the dateline, thus having values which approach 180 then jump to negative values. The Fix is to add or subtract 360 when a longitude value differs from the previous longitude by more than 200. This fix is applied only within a single feature (e.g. within a trajectory). If Argument 3 = 0 the function will not apply this option.
Example
yes? LIST SEPARATE({6,5,4,3,2,1}, esequence({1,2,3}), 0) VARIABLE : SEPARATE({6,5,4,3,2,1}, ESEQUENCE({1,2,3}), 0) SUBSET : 8 points (X) 1 / 1: 6.000 2 / 2: .... 3 / 3: 5.000 4 / 4: 4.000 5 / 5: .... 6 / 6: 3.000 7 / 7: 2.000 8 / 8: 1.000 yes? list separate ({179.1,179.7,-179.3,178.4, 234.,235.1,233.}, esequence({4,3}), 1) VARIABLE : SEPARATE ({179.1,179.7,-179.3,178.4, 234.,235.1,233.}, ESEQUENCE({4,3}), 1) SUBSET : 8 points (X) 1 / 1: 179.1 2 / 2: 179.7 3 / 3: 180.7 4 / 4: 178.4 5 / 5: .... 6 / 6: 234.0 7 / 7: 235.1 8 / 8: 233.0