BPI function

Calculates Bathymetric Position Index