def get_data_window(arr, nodata=None):
    from rasterio._io import get_data_window
    return get_data_window(arr, nodata)
Return a window for the non-nodata pixels within the input array.
dataset/ETHPy150Open mapbox/rasterio/rasterio/windows.py/get_data_window