Next: CURSOR - Reports the co-ordinates of positions selected using the cursor
Up: Specifications of KAPPA applications
Previous: CSUB - Subtracts a scalar from an NDF data structure
CUMULVEC
- Sums the values cumulatively in a one-dimensional NDF
- Description:
- This application forms the cumulative sum of the values of a
one-dimensional NDF starting from the first to the last element.
thus the first output pixel will be unchanged but the second will
be the sum of the first two input pixels, third output pixel is the
sum of the first three input pixels and so on. Anomalous values
may be excluded from the summation by setting a threshold.
- Usage:
-
cumulvec in out [thresh]
-
- Parameters:
-
IN = NDF (Read)
-
The one-dimensional NDF containing the vector to be summed.
-
OUT = NDF (Write)
-
The NDF to contain the summed image.
-
THRESH = _DOUBLE (Read)
-
The maximum difference between adjacent elements for the
summation to ocur. For increments outside the allowed
range, the increment becomes zero. If null, !, is
given, then there is no limit. [!]
-
TITLE = LITERAL (Read)
-
The title of the output NDF. A null (!) value means using the
title of the input NDF. [!]
- Examples:
- cumulvec gradient profile
- The one-dimensional NDF called gradient is summed cumulatively to
form NDF profile.
- cumulvec in=gradient out=profile thresh=20
- As above but only adjacent values separated by less than 20
are included in the summation.
-
Related Applications
:
- KAPPA: HISTOGRAM.
- Implementation Status:
-
Next: CURSOR - Reports the co-ordinates of positions selected using the cursor
Up: Specifications of KAPPA applications
Previous: CSUB - Subtracts a scalar from an NDF data structure
KAPPA --- Kernel Application Package
Starlink User Note 95
Malcolm J. Currie & David S. Berry
2013 February 14
E-mail:starlink@jiscmail.ac.uk
Copyright © 2013 Science and Technology Facilities Council