#NEWLINE# def bounds_window( bounds , affine ) : #NEWLINE# #INDENT# 'Create a full cover rasterio-style window\n    ' #NEWLINE# ( w , s , e , n ) = bounds #NEWLINE# ( row_start , col_start ) = rowcol ( w , n , affine ) #NEWLINE# ( row_stop , col_stop ) = rowcol ( e , s , affine , op = math . ceil ) #NEWLINE# return ( ( row_start , row_stop ) , ( col_start , col_stop ) )