odc.geo.geobox.scaled_down_geobox
- odc.geo.geobox.scaled_down_geobox(src_geobox, scaler)[source]
Compute
GeoBox
of a zoomed image.Given a source geobox and an 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
:rtype:GeoBox
Note
We assume that pixel coordinates are
0,0
at the top-left corner of a top-left pixel.