xdem.coreg.AffineCoreg.from_rotations

xdem.coreg.AffineCoreg.from_rotations#

classmethod AffineCoreg.from_rotations(x_rot=0.0, y_rot=0.0, z_rot=0.0)[source]#

Instantiate a generic Coreg class from a X/Y/Z rotation.

Parameters:
  • x_rot (float) – The rotation (degrees) to apply around the X (west-east) direction.

  • y_rot (float) – The rotation (degrees) to apply around the Y (south-north) direction.

  • z_rot (float) – The rotation (degrees) to apply around the Z (vertical) direction.

Raises:

ValueError – If the given rotation contained invalid values.

Return type:

AffineCoreg

Returns:

An instantiated generic Coreg class.