odc.geo.geobox.affine_transform_pix
- odc.geo.geobox.affine_transform_pix(gbox, transform)[source]
Apply affine transform on pixel side.
- Parameters
transform (
Affine
) – Affine matrix mapping from new pixel coordinate space to pixel coordinate space of input gbox- Return type
- Returns
GeoBox of the same pixel shape but covering different region, pixels in the output gbox relate to input geobox via
transform
X_old_pix = transform * X_new_pix