Is it possible to combine the N_ELEMENTS function with the greater
than operator? I just want to search through an array and find out
how many elements exist which are greater than zero (I don't need to
know where they are, just how many), but I can't get it to work. I
have an array called good_index which I happen to know has 6 values >
zero, but when I run the following code, it tells me I only have 1
value > zero:
number =3D (N_ELEMENTS(good_index) gt 0)
print, number
Is there a way to do this without using a where function?
Thanks
Chlo=E9