I have a numpy ndarray with shape of (30,480,640), the 1th and 2th axis representing locations(latitude and longitute), the 0th axis contains actual data points.I want to us
flatten your array, then build a collections.Counter from it. As usual, take special care when comparing floating-point numbers.
flatten