Create an unregular matrix from a DEM file for Modcou model