raster.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:CHaMP_Metrics 作者: SouthForkResearch 项目源码 文件源码
def PrintArr(arr):
    """
    Print an ASCII representation of the array with an up-down flip if the
    the cell height is negative.

    Int this scenario:
        - '-' means masked
        - '_' means nodata
        - '#' means a number
        - '0' means 0
    :param arr:
    """
    print "\n"
    for row in range(arr.shape[0]):
        rowStr = ""
        for col in range(arr[row].shape[0]):
            rowStr += str(arr[row][col])
        print "{0}:: {1}".format(row, rowStr)
    print "\n"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号