"0"
where (i,j) - indices of the cells, - DEM value for the (i,j) cell.
where - informational weight,
surfit: open source gridding and contouring software.