I am trying to use the statistics from hydra in a script. I have a FlatField object that has missing values that should be NaN. When I run the statistics, I would like to know the number of points without counting the values that are missing. In the jython shell of McIDAS-V the code would be
Be certain that you have the "commons-math3-3.2.jar" file in your classpath, since this is where all the stats code is located. It is part of the McIDAS-V distribution and is located in the installation McIDAS-V-System directory.
Do you see any error message when you try to print numGoodPoints?
Also FWIW, numGoodPoints is actually an array of integers with length determined by the number of range components in your flatfield. Probably not the cause of the problem, but maybe worth mentioning.
I saw that it was an array, but I don't think that is the problem. Could it be an attribute that was added by Tom and is not part of the math commons library?