Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kujaku11 committed Oct 7, 2024
1 parent 1085596 commit a1029fa
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions mtpy/core/transfer_function/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,26 @@ def rotate(self, alpha, inplace=False, coordinate_reference_frame="ned"):
"""Rotate transfer function array by angle alpha.
Rotation angle must be given in degrees. All angles are referenced
to geographic North, positive in clockwise direction.
(Mathematically negative!)
to the `coordinate_reference_frame` where the rotation angle is
clockwise positive, rotating North into East.
In non-rotated state, X refs to North and Y to East direction.
Most transfer functions are referenced an NED coordinate system, which
is what MTpy uses as the default.
In the NED coordinate system:
x=North, y=East, z=+down and a positve clockwise rotation is a positive
angle. In this coordinate system the rotation matrix is the
conventional rotation matrix.
In the ENU coordinate system:
x=East, y=North, z=+up and a positve clockwise rotation is a positive
angle. In this coordinate system the rotation matrix is the
inverser of the conventional rotation matrix.
:param alpha: Angle to rotate by assuming a clockwise rotation from
north. If this is not what you want you can set
`positive_clockwise_from_north` to False and that will assume
counter-clockwise rotation from the axis x1.
north in the `coordinate_reference_frame`
:type alpha: float (in degrees)
:param inplace: rotate in place. Will add alpha to `rotation_angle`
:type inplace: bool
Expand Down

0 comments on commit a1029fa

Please sign in to comment.