odc.geo.geobox.scaled_down_geobox
- odc.geo.geobox.scaled_down_geobox(src_geobox, scaler)[source]
Compute
GeoBoxof 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:GeoBoxNote
We assume that pixel coordinates are
0,0at the top-left corner of a top-left pixel.