NOAA-PMEL / PyFerret

The PyFerret program and Python module from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
60 stars 22 forks source link

stats_histogram not working #57

Closed karlmsmith closed 6 years ago

karlmsmith commented 6 years ago

Al Hermann reported failure messages when trying to use stats_histogram function. The only time it worked was when the data input was the same as the midpoints input.

This function is a PyEF - external function written in Python making use of numpy.histogram

Investigation shows that the influences array somehow got reversed, so the axis of the result were coming from the data array when it should be coming from the midpoints array.

karlmsmith commented 6 years ago

fixed, tested with commit https://github.com/NOAA-PMEL/PyFerret/commit/c310ada1ab647529dc26454fd1f70b4f42ec4421