Skip to content

Commit 370df81

Browse files
doc: improve definition of 'clockwise' parameter (#57)
1 parent f45955b commit 370df81

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

docs/user_guide/concepts_utils/grid.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ a grid, we need information about the assumed 'wave convention'. Two boolean
3333
parameters are needed:
3434

3535
*clockwise*
36-
Describes the direction of positive rotation.
37-
36+
Describes the direction of positive rotation. ``clockwise=True`` means that the
37+
directions follow the right-hand rule with an axis pointing downwards.
3838
*waves_coming_from*
3939
Describes the direction in which the waves are propagating.
4040

src/waveresponse/_core.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ class Grid:
332332
degrees : bool
333333
If direction is given in 'degrees'. If ``False``, 'radians' is assumed.
334334
clockwise : bool
335-
If positive directions are defined to be 'clockwise'. If ``False``, 'counterclockwise'
336-
is assumed.
335+
If positive directions are defined to be 'clockwise' (``True``) or 'counterclockwise'
336+
(``False``). Clockwise means that the directions follow the right-hand rule
337+
with an axis pointing downwards.
337338
waves_coming_from : bool
338339
If waves are 'coming from' the given directions. If ``False``, 'going towards'
339340
convention is assumed.
@@ -501,8 +502,9 @@ def set_wave_convention(self, clockwise=True, waves_coming_from=True):
501502
Parameters
502503
----------
503504
clockwise : bool
504-
If positive directions are defined to be 'clockwise'. If ``False``,
505-
'counterclockwise' is assumed.
505+
If positive directions are defined to be 'clockwise' (``True``) or
506+
'counterclockwise' (``False``). Clockwise means that the directions
507+
follow the right-hand rule with an axis pointing downwards.
506508
waves_coming_from : bool
507509
If waves are 'coming from' the given directions. If ``False``, 'going towards'
508510
convention is assumed.
@@ -939,8 +941,9 @@ class RAO(Grid):
939941
degrees : bool
940942
If direction is given in 'degrees'. If ``False``, 'radians' is assumed.
941943
clockwise : bool
942-
If positive directions are defined to be 'clockwise'. If ``False``, 'counterclockwise'
943-
is assumed.
944+
If positive directions are defined to be 'clockwise' (``True``) or 'counterclockwise'
945+
(``False``). Clockwise means that the directions follow the right-hand rule
946+
with an axis pointing downwards.
944947
waves_coming_from : bool
945948
If waves are 'coming from' the given directions. If ``False``, 'going towards'
946949
convention is assumed.
@@ -1174,8 +1177,9 @@ class DirectionalSpectrum(DisableComplexMixin, Grid):
11741177
degrees : bool
11751178
If direction is given in 'degrees'. If ``False``, 'radians' is assumed.
11761179
clockwise : bool
1177-
If positive directions are defined to be 'clockwise'. If ``False``, 'counterclockwise'
1178-
is assumed.
1180+
If positive directions are defined to be 'clockwise' (``True``) or 'counterclockwise'
1181+
(``False``). Clockwise means that the directions follow the right-hand rule
1182+
with an axis pointing downwards.
11791183
waves_coming_from : bool
11801184
If waves are 'coming from' the given directions. If ``False``, 'going towards'
11811185
convention is assumed.

0 commit comments

Comments
 (0)