odc.geo.geobox.GeoBox.rotate

GeoBox.rotate(deg)[source]

Rotate GeoBox around the center.

It’s as if you stick a needle through the center of the GeoBox footprint and rotate it counter clock wise by supplied number of degrees.

Note that from the pixel point of view image rotates the other way. If you have source image with an arrow pointing right, and you rotate GeoBox 90 degrees, in that view arrow should point down (this is assuming usual case of inverted y-axis)

Return type:

GeoBox