Skip to content

Commit c2f5453

Browse files
committed
Remove the optional position input (never used) in earthtide
1 parent 5f14b27 commit c2f5453

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/geodesy/earthtide.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
earthtide(cmd0::String=""; kwargs...)
2+
earthtide(; kwargs...)
33
44
Compute grids or time-series of solid Earth tides.
55
@@ -10,7 +10,7 @@ See full GMT (not the `GMT.jl` one) docs at [`earthtide`]($(GMTdoc)supplements/g
1010
imshow(G)
1111
```
1212
"""
13-
function earthtide(cmd0::String=""; kwargs...)
13+
function earthtide(; kwargs...)
1414

1515
d = init_module(false, kwargs...)[1] # Also checks if the user wants ONLY the HELP mode
1616

@@ -27,7 +27,7 @@ function earthtide(cmd0::String=""; kwargs...)
2727
return R
2828
end
2929

30-
cmd = ((opt_C = add_opt(d, "", "C", [:C :components])) != "") ? cmd * opt_C : cmd * " -Cz"
30+
cmd = ((opt_C = add_opt(d, "", "C", [:C :component :components])) != "") ? cmd * opt_C : cmd * " -Cz"
3131
opt_G = add_opt(d, "", "G", [:G :grid :outgrid])
3232
(length(opt_G) > 3) && (cmd *= opt_G) # G=true will give " -G", which we'll ignore (Have to)
3333

src/windbarbs/windbarbs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function windbarbs(arg1::Union{String, GMTgrid}, arg2::Union{String, GMTgrid}; f
5050
d, cmd, arg1, arg2, arg3 = grdvector(arg1, arg2; first=first, barbs=true, kwargs...) # arg3 is a possible CPT
5151
cmd[1] = replace(cmd[1], "grdvector" => "grdbarb")
5252
cmd[1] = add_opt(d, cmd[1], "Q", [:Q :barbs], (len=("", arg2str, 1), length=("", arg2str, 1), angle="+a", fill="+g", pen="+p", just="+j", justify="+j", speed="+s", width="+w"))
53+
delete!(d, :barbs) # Because if we used 'Q', 'barbs' was still in the dictionary
5354
cmd[1] = parse_these_opts(cmd[1], d, [[:A :polar], [:T :signs :sign_scale], [:Z :azim :azimuth :azimuths]])
5455

5556
finish_PS_module(d, cmd, "", first, !first, true, arg1, arg2, arg3)

0 commit comments

Comments
 (0)