def find_next_matching_line(self, match_func, count=1):
        result = None

        for index, line in enumerate(self.lines[self.cursor_position_row + 1:]):
            if match_func(line):
                result = 1 + index
                count -= 1

            if count == 0:
                break

        return result
Return a window for the non-nodata pixels within the input array.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.find_next_matching_line--crossover with--dataset/ETHPy150Open mapbox/rasterio/rasterio/windows.py/get_data_window