datacube.utils.geometry.scaled_down_geobox(src_geobox, scaler)[source]

Given a source geobox and integer scaler compute geobox of a scaled down image.

Output geobox will be padded when shape is not a multiple of scaler. Example: 5x4, scaler=2 -> 3x2

NOTE: here we assume that pixel coordinates are 0,0 at the top-left

corner of a top-left pixel.

Return type