def main():
    """Test code"""
    import os
    # wp = r'C:\z_code\subrepos\PyGeoC\tests\data\tmp_results\wtsd_delineation'
    wp = r'C:\z_data_m\SEIMS2018\zhongtianshe_100m\taudem_delineated'
    dinfflowang = wp + os.sep + 'flowDirDinfTau.tif'
    compdinffile = wp + os.sep + 'dirCodeDinfTau.tif'
    weightfile = wp + os.sep + 'weightDinfTau.tif'
    DinfUtil.output_compressed_dinf(dinfflowang, compdinffile, weightfile)
Test code