code: def perc_fltr(dem, perc=(1.0, 99.0)):
      
      rangelim = malib.calcperc(dem, perc)
      print('Excluding values outside of percentile range: {0:0.2f} to {1:0.2f}'.format(*perc))
      out = range_fltr(dem, rangelim)
      return out
docs: Percentile filter