Skip to content

Commit

Permalink
Fix common options in blockm, surface, histogram, rose, and grdtrack (G…
Browse files Browse the repository at this point in the history
…enericMappingTools#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 <seisman@users.noreply.github.com>

Co-authored-by: Dongdong Tian <seisman@users.noreply.github.com>
  • Loading branch information
2 people authored and Josh Sixsmith committed Dec 21, 2022
1 parent 8227e3a commit 9eb7205
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
6 changes: 0 additions & 6 deletions pygmt/src/blockm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def _blockm(block_method, table, outfile, x, y, z, **kwargs):
i="incols",
o="outcols",
r="registration",
s="skiprows",
w="wrap",
)
@kwargs_to_strings(R="sequence", i="sequence_comma", o="sequence_comma")
Expand Down Expand Up @@ -126,7 +125,6 @@ def blockmean(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
{h}
{o}
{r}
{s}
{w}
Returns
Expand Down Expand Up @@ -158,7 +156,6 @@ def blockmean(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
i="incols",
o="outcols",
r="registration",
s="skiprows",
w="wrap",
)
@kwargs_to_strings(R="sequence", i="sequence_comma", o="sequence_comma")
Expand Down Expand Up @@ -205,7 +202,6 @@ def blockmedian(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
{i}
{o}
{r}
{s}
{w}
Returns
Expand Down Expand Up @@ -243,7 +239,6 @@ def blockmedian(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
i="incols",
o="outcols",
r="registration",
s="skiprows",
w="wrap",
)
@kwargs_to_strings(R="sequence", i="sequence_comma", o="sequence_comma")
Expand Down Expand Up @@ -290,7 +285,6 @@ def blockmode(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
{i}
{o}
{r}
{s}
{w}
Returns
Expand Down
2 changes: 2 additions & 0 deletions pygmt/src/grdtrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
T="radius",
V="verbose",
Z="z_only",
a="aspatial",
b="binary",
d="nodata",
e="find",
Expand Down Expand Up @@ -240,6 +241,7 @@ def grdtrack(points, grid, newcolname=None, outfile=None, **kwargs):
{V}
z_only : bool
Only write out the sampled z-values [Default writes all columns].
{a}
{b}
{d}
{e}
Expand Down
8 changes: 5 additions & 3 deletions pygmt/src/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@
c="panel",
d="nodata",
e="find",
g="gap",
h="header",
i="incols",
l="label",
p="perspective",
t="transparency",
w="wrap",
)
@kwargs_to_strings(R="sequence", T="sequence", c="sequence_comma", p="sequence")
@kwargs_to_strings(
R="sequence", T="sequence", c="sequence_comma", i="sequence_comma", p="sequence"
)
def histogram(self, table, **kwargs):
r"""
Plots a histogram, and can read data from a file or
Expand Down Expand Up @@ -128,8 +130,8 @@ def histogram(self, table, **kwargs):
{b}
{d}
{e}
{g}
{h}
{i}
{l}
{p}
{t}
Expand Down
2 changes: 0 additions & 2 deletions pygmt/src/rose.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
b="binary",
d="nodata",
e="find",
g="gap",
h="header",
i="incols",
c="panel",
Expand Down Expand Up @@ -196,7 +195,6 @@ def rose(self, length=None, azimuth=None, data=None, **kwargs):
{c}
{d}
{e}
{g}
{h}
{i}
{p}
Expand Down
2 changes: 0 additions & 2 deletions pygmt/src/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
h="header",
i="incols",
r="registration",
s="skiprows",
w="wrap",
)
@kwargs_to_strings(R="sequence")
Expand Down Expand Up @@ -82,7 +81,6 @@ def surface(x=None, y=None, z=None, data=None, **kwargs):
{h}
{i}
{r}
{s}
{w}
Returns
Expand Down

0 comments on commit 9eb7205

Please sign in to comment.