def get_gdalReadInputs_from_boxImYX(boxImYX):
    """Return row_start,col_start,rows_count,cols_count and assumes boxImYX as [UL_YX,UR_YX,LR_YX,LL_YX)."""
    rS, cS = boxImYX[0]
    clip_sz_x = abs(boxImYX[1][1] - boxImYX[0][1])
    clip_sz_y = abs(boxImYX[0][0] - boxImYX[3][0])
    return cS, rS, clip_sz_x, clip_sz_y
