

def get_mask_indices(path):
    'Helper function to get raster mask for NYC\n\n    Returns:\n      list: returns list of tuples (row, column) that represent area of interest\n    '
    raster = tiff_to_array(path)
    indices = []
    it = np.nditer(raster, flags=['multi_index'])
    while (not it.finished):
        if (it[0] == 1):
            (r, c) = it.multi_index
            indices.append((c, c))
        it.iternext()
    return indices

dataset/ETHPy150Open notthatbreezy/nyc-taxi-spark-ml/python/geo_vars.py get_mask_indices/VarMisuse@76/146 `r`->`c`