title: Find locale minimum in histogram (1D array) (Python)
body: <p>I have processed radar image and to detect water I have to find local minimum in the histogram. Histogram is little bit different for every area so I have to automatically find local minimum based on every histogram. </p>
  
  <p><a href="https://i.stack.imgur.com/V7u0i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V7u0i.png" alt="Histogram for Sigma0_VV"></a></p>
  
  <p>My input array is 1D array of image values (0.82154, 0.012211,...). I know how to create histogram in numpy and matplotlib but I do not know what should I do to determine locale minimum which is showed in the picture. I use python scipy libraries.</p>
  
  <p>First step should be to smooth the histogram for easier determination of minimum, could you tell me what to use to smooth data ? Something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/aYdGe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aYdGe.png" alt="Smoothed/Unsmoothed"></a></p>