num


Counts the number of True values in input
Synopsis
function num(
val : logical
)
Arguments
- val
- An array of logical values of any dimensionality
Description
This function counts the number of True values in the input and ignores missing values.
Example
The following is a simplistic example. Try executing NCL with the following commands.
a = (/1,2,3,4,5/)
print(num(a.gt.3))
Reference Manual Control Panel
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?
$Revision: 1.4 $ $Date: 1998/06/15 21:30:20 $