LocalGrid ¶
Similarity transform from a local mine grid to projected coordinates:
projected = shift + scale * R(rotation) @ local in xy and
z + z_shift.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scale
|
float
|
Ratio of projected to local horizontal distances. |
1.0
|
rotation
|
float
|
Azimuth of local grid north in projected coordinates, degrees clockwise. |
0.0
|
shift
|
(float, float)
|
Projected xy of the local origin. |
(0.0, 0.0)
|
z_shift
|
float
|
Added to local elevations. |
0.0
|
crs
|
str
|
CRS of the projected coordinates, set by |
required |
apply
method descriptor
¶
apply(object)
Local to projected coordinates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
object
|
(PointSet, Drillholes, Polylines, Mesh, BlockModel or array_like)
|
Containers come back in the grid's |
required |
Raises:
| Type | Description |
|---|---|
InvalidInput
|
When the container is already in the grid's |
fit
staticmethod
¶
fit(local, projected, *, z=True, crs=None)
Least-squares similarity from control point pairs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
local
|
(array_like, shape(n, 2) or (n, 3))
|
The same control points in local and projected coordinates; at least two distinct local positions. |
required |
projected
|
(array_like, shape(n, 2) or (n, 3))
|
The same control points in local and projected coordinates; at least two distinct local positions. |
required |
z
|
bool
|
Fit |
True
|
crs
|
str
|
CRS of the projected coordinates. |
None
|
Returns:
| Type | Description |
|---|---|
LocalGrid
|
|
Raises:
| Type | Description |
|---|---|
InvalidInput
|
With unequal lengths, fewer than two distinct points or non-finite coordinates. |
inverse
method descriptor
¶
inverse(object)
Projected to local coordinates, the exact inverse of apply;
containers come back without a CRS.
Raises:
| Type | Description |
|---|---|
InvalidInput
|
When the container declares a CRS other than the grid's. |
residuals
method descriptor
¶
residuals(local, projected)
projected - apply(local) per control point, shape (n, 3).
Used in