moved DEM data processing fomula to chapter 4