odc.geo.cog.cog_gbox

odc.geo.cog.cog_gbox(gbox, *, tile=None, nlevels=None)[source]

Return padded gbox with safe dimensions for COG. :rtype: GeoBox

  1. Compute number of desired overviews

  2. Expand gebox on the right/bottom to have exact pixel shrink across all levels