xdem.coreg.AffineCoreg.from_translations

xdem.coreg.AffineCoreg.from_translations#

classmethod AffineCoreg.from_translations(x_off=0.0, y_off=0.0, z_off=0.0)[source]#

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

Parameters:
  • x_off (float) – The offset to apply in the X (west-east) direction.

  • y_off (float) – The offset to apply in the Y (south-north) direction.

  • z_off (float) – The offset to apply in the Z (vertical) direction.

Raises:

ValueError – If the given translation contained invalid values.

Return type:

AffineCoreg

Returns:

An instantiated generic Coreg class.