Skip to content

Commit 5fc9680

Browse files
Meghan Jonesseisman
andauthored
Fix common options in blockm, surface, histogram, rose, and grdtrack (#1519)
* Remove -g gap from histogram, rose * Add -i incols to histogram * Remove -s skiprows from blockm.py, surface * Add -a aspatial to grdtrack Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
1 parent 2d2eb65 commit 5fc9680

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

pygmt/src/blockm.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def _blockm(block_method, table, outfile, x, y, z, **kwargs):
7979
i="incols",
8080
o="outcols",
8181
r="registration",
82-
s="skiprows",
8382
w="wrap",
8483
)
8584
@kwargs_to_strings(R="sequence", i="sequence_comma", o="sequence_comma")
@@ -126,7 +125,6 @@ def blockmean(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
126125
{h}
127126
{o}
128127
{r}
129-
{s}
130128
{w}
131129
132130
Returns
@@ -158,7 +156,6 @@ def blockmean(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
158156
i="incols",
159157
o="outcols",
160158
r="registration",
161-
s="skiprows",
162159
w="wrap",
163160
)
164161
@kwargs_to_strings(R="sequence", i="sequence_comma", o="sequence_comma")
@@ -205,7 +202,6 @@ def blockmedian(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
205202
{i}
206203
{o}
207204
{r}
208-
{s}
209205
{w}
210206
211207
Returns
@@ -243,7 +239,6 @@ def blockmedian(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
243239
i="incols",
244240
o="outcols",
245241
r="registration",
246-
s="skiprows",
247242
w="wrap",
248243
)
249244
@kwargs_to_strings(R="sequence", i="sequence_comma", o="sequence_comma")
@@ -290,7 +285,6 @@ def blockmode(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
290285
{i}
291286
{o}
292287
{r}
293-
{s}
294288
{w}
295289
296290
Returns

pygmt/src/grdtrack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
T="radius",
2727
V="verbose",
2828
Z="z_only",
29+
a="aspatial",
2930
b="binary",
3031
d="nodata",
3132
e="find",
@@ -240,6 +241,7 @@ def grdtrack(points, grid, newcolname=None, outfile=None, **kwargs):
240241
{V}
241242
z_only : bool
242243
Only write out the sampled z-values [Default writes all columns].
244+
{a}
243245
{b}
244246
{d}
245247
{e}

pygmt/src/histogram.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@
3131
c="panel",
3232
d="nodata",
3333
e="find",
34-
g="gap",
3534
h="header",
35+
i="incols",
3636
l="label",
3737
p="perspective",
3838
t="transparency",
3939
w="wrap",
4040
)
41-
@kwargs_to_strings(R="sequence", T="sequence", c="sequence_comma", p="sequence")
41+
@kwargs_to_strings(
42+
R="sequence", T="sequence", c="sequence_comma", i="sequence_comma", p="sequence"
43+
)
4244
def histogram(self, table, **kwargs):
4345
r"""
4446
Plots a histogram, and can read data from a file or
@@ -128,8 +130,8 @@ def histogram(self, table, **kwargs):
128130
{b}
129131
{d}
130132
{e}
131-
{g}
132133
{h}
134+
{i}
133135
{l}
134136
{p}
135137
{t}

pygmt/src/rose.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
b="binary",
4040
d="nodata",
4141
e="find",
42-
g="gap",
4342
h="header",
4443
i="incols",
4544
c="panel",
@@ -196,7 +195,6 @@ def rose(self, length=None, azimuth=None, data=None, **kwargs):
196195
{c}
197196
{d}
198197
{e}
199-
{g}
200198
{h}
201199
{i}
202200
{p}

pygmt/src/surface.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
h="header",
3333
i="incols",
3434
r="registration",
35-
s="skiprows",
3635
w="wrap",
3736
)
3837
@kwargs_to_strings(R="sequence")
@@ -82,7 +81,6 @@ def surface(x=None, y=None, z=None, data=None, **kwargs):
8281
{h}
8382
{i}
8483
{r}
85-
{s}
8684
{w}
8785
8886
Returns

0 commit comments

Comments
 (0)