Skip to content

Commit c7cde49

Browse files
Change parameter name from 'direction' to 'component'
1 parent fb04665 commit c7cde49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygmt/datasets/earth_deflection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def load_earth_deflection(
7070
Grid registration type. Either ``"pixel"`` for pixel registration or
7171
``"gridline"`` for gridline registration. Default is ``None``, means
7272
``"gridline"`` for all resolutions except ``"01m"`` which is ``"pixel"`` only.
73-
direction
74-
By default, the east-west deflection (``direction="east"``) is returned,
75-
``direction="north"`` to return the north-south deflection.
73+
component
74+
By default, the east-west deflection (``component="east"``) is returned,
75+
``component="north"`` to return the north-south deflection.
7676
7777
Returns
7878
-------
@@ -106,7 +106,7 @@ def load_earth_deflection(
106106
... resolution="05m", region=[120, 160, 30, 60], registration="gridline"
107107
... )
108108
"""
109-
prefix = "earth_ndefl" if direction == "north" else "earth_edefl"
109+
prefix = "earth_ndefl" if component == "north" else "earth_edefl"
110110
grid = _load_remote_dataset(
111111
name=prefix,
112112
prefix=prefix,

0 commit comments

Comments
 (0)