xee.set_scale
- xee.set_scale(crs_transform, scaling)
Return a new CRS transform with updated scale components.
Useful for adjusting an existing transform’s pixel size while retaining its origin. A negative y scale preserves north-up orientation.
- Parameters:
crs_transform (tuple[float, float, float, float, float, float]) – Existing 6-value transform tuple.
scaling (tuple[float, float]) –
(x_scale, y_scale)pair.y_scalemay be negative for north-up images.
- Returns:
A list of the 6 affine transform values with updated scale components.
- Raises:
TypeError – If
scalingis not a length-2 tuple.- Return type:
list