gempy.core.data.Transform¶
- class gempy.core.data.Transform(position: typing.Annotated[numpy.ndarray, BeforeValidator(func=<function <lambda> at 0x7fbd0cb9b400>, json_schema_input_type=PydanticUndefined)], rotation: typing.Annotated[numpy.ndarray, BeforeValidator(func=<function <lambda> at 0x7fbd0cb9b400>, json_schema_input_type=PydanticUndefined)], scale: typing.Annotated[numpy.ndarray, BeforeValidator(func=<function <lambda> at 0x7fbd0cb9b400>, json_schema_input_type=PydanticUndefined)], _is_default_transform: bool = False, _cached_pivot: Optional[Annotated[numpy.ndarray, BeforeValidator(func=<function <lambda> at 0x7fbd0cb9b400>, json_schema_input_type=PydanticUndefined)]] = None)[source]¶
Methods
__init__
(position, rotation, scale[, ...])apply
(points[, transform_op_order])apply_anisotropy
(anisotropy_type[, ...])apply_inverse
(points[, transform_op_order])apply_inverse_with_cached_pivot
(points[, ...])apply_inverse_with_pivot
(points, pivot[, ...])apply_with_cached_pivot
(points[, ...])apply_with_pivot
(points, pivot[, ...])These are used for ellipsoids for finite faults
from_input_points
(surface_points, orientations)from_matrix
(matrix)get_transform_matrix
([transform_type])init_neutral
()scale_points
(points)transform_gradient
(gradients[, ...])Attributes
cached_pivot
isometric_scale
position
rotation
scale
- apply_with_pivot(points: ndarray, pivot: ndarray, transform_op_order: TransformOpsOrder = TransformOpsOrder.SRT)[source]¶
These are used for ellipsoids for finite faults
- __init__(position: ~numpy.Annotated[~numpy.ndarray, ~pydantic.functional_validators.BeforeValidator(func=~gempy_engine.core.data.encoders.converters.<lambda>, json_schema_input_type=PydanticUndefined)], rotation: ~numpy.Annotated[~numpy.ndarray, ~pydantic.functional_validators.BeforeValidator(func=~gempy_engine.core.data.encoders.converters.<lambda>, json_schema_input_type=PydanticUndefined)], scale: ~numpy.Annotated[~numpy.ndarray, ~pydantic.functional_validators.BeforeValidator(func=~gempy_engine.core.data.encoders.converters.<lambda>, json_schema_input_type=PydanticUndefined)], _is_default_transform: bool = False, _cached_pivot: ~numpy.Annotated[~numpy.ndarray, ~pydantic.functional_validators.BeforeValidator(func=~gempy_engine.core.data.encoders.converters.<lambda>, json_schema_input_type=PydanticUndefined)] | None = None) None ¶