From 88ae004fdbd038918310a2fde3bad6e12e201972 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Mon, 22 Feb 2021 20:50:20 +0000 Subject: [PATCH 1/6] Update blockmedian.py --- pygmt/src/blockmedian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/blockmedian.py b/pygmt/src/blockmedian.py index 1a5f80337dd..23147c68205 100644 --- a/pygmt/src/blockmedian.py +++ b/pygmt/src/blockmedian.py @@ -25,7 +25,7 @@ def blockmedian(table, outfile=None, **kwargs): Reads arbitrarily located (x,y,z) triples [or optionally weighted quadruples (x,y,z,w)] from a table and writes to the output a median position and value for every non-empty block in a grid region defined by - the region and spacing arguments. + the ``region`` and ``spacing`` parameters. Full option list at :gmt-docs:`blockmedian.html` From cd9b518a7a5dc14252bed1a04b15968de594af87 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Mon, 22 Feb 2021 20:51:06 +0000 Subject: [PATCH 2/6] Update coast.py --- pygmt/src/coast.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/coast.py b/pygmt/src/coast.py index f75fa885643..6155651cc68 100644 --- a/pygmt/src/coast.py +++ b/pygmt/src/coast.py @@ -76,7 +76,7 @@ def coast(self, **kwargs): *fill*\ [**+l**\|\ **+r**]. Set the shade, color, or pattern for lakes and river-lakes. The default is the fill chosen for wet areas set by the ``water`` - argument. Optionally, specify separate fills by appending + parameter. Optionally, specify separate fills by appending **+l** for lakes or **+r** for river-lakes, and passing multiple strings in a list. resolution : str @@ -189,7 +189,7 @@ def coast(self, **kwargs): kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access if not args_in_kwargs(args=["C", "G", "S", "I", "N", "E", "Q", "W"], kwargs=kwargs): raise GMTInvalidInput( - """At least one of the following arguments must be specified: + """At least one of the following parameters must be specified: lakes, land, water, rivers, borders, dcw, Q, or shorelines""" ) with Session() as lib: From cc5f1c10c68f8c422559a2feb62dd2a09423d270 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Mon, 22 Feb 2021 20:53:52 +0000 Subject: [PATCH 3/6] Update grd2cpt.py --- pygmt/src/grd2cpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/grd2cpt.py b/pygmt/src/grd2cpt.py index 569a3232060..dc51d11bb44 100644 --- a/pygmt/src/grd2cpt.py +++ b/pygmt/src/grd2cpt.py @@ -130,7 +130,7 @@ def grd2cpt(grid, **kwargs): the CPT alone. The truncation takes place before any resampling. See also :gmt-docs:`cookbook/features.html#manipulating-cpts`. output : str - Optional argument to set the file name with extension .cpt to store + Optional parameter to set the file name with extension .cpt to store the generated CPT file. If not given or False (default), saves the CPT as the session current CPT. reverse : str From 2f5a976429a1f44f45d191758fff2f20dff6f246 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Mon, 22 Feb 2021 20:55:13 +0000 Subject: [PATCH 4/6] Update grdinfo.py --- pygmt/src/grdinfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/grdinfo.py b/pygmt/src/grdinfo.py index ab9ad6b26fa..43be9292aab 100644 --- a/pygmt/src/grdinfo.py +++ b/pygmt/src/grdinfo.py @@ -39,7 +39,7 @@ def grdinfo(grid, **kwargs): ---------- grid : str or xarray.DataArray The file name of the input grid or the grid loaded as a DataArray. - This is the only required argument. + This is the only required parameter. {R} per_column : str or bool **n**\|\ **t**. @@ -47,7 +47,7 @@ def grdinfo(grid, **kwargs): output is name *w e s n z0 z1 dx dy nx ny* [ *x0 y0 x1 y1* ] [ *med scale* ] [ *mean std rms* ] [ *n_nan* ] *registration gtype*. The data in brackets are outputted depending on the ``force_scan`` - and ``minmax_pos`` arguments. Use **t** to place file name at the end + and ``minmax_pos`` parameters. Use **t** to place file name at the end of the output record or, **n** or ``True`` to only output numerical columns. The registration is either 0 (gridline) or 1 (pixel), while gtype is either 0 (Cartesian) or 1 (geographic). The default value is From 7090f7bc415dbfea3a9ba5515234c5f07ecca98d Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Mon, 22 Feb 2021 20:57:17 +0000 Subject: [PATCH 5/6] Update text.py --- pygmt/src/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/text.py b/pygmt/src/text.py index 3ab49e61508..bdc59950bc1 100644 --- a/pygmt/src/text.py +++ b/pygmt/src/text.py @@ -165,7 +165,7 @@ def text_( if kind == "vectors" and text is None: raise GMTInvalidInput("Must provide text with x/y pairs or position") - # Build the `-F` argument in gmt text. + # Build the `-F` parameter in gmt text. if "F" not in kwargs.keys() and ( ( position is not None From 6101adfe21e0d75012837b9a316c2769c07c486e Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Mon, 22 Feb 2021 21:46:34 +0000 Subject: [PATCH 6/6] Update pygmt/src/text.py Co-authored-by: Dongdong Tian --- pygmt/src/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/text.py b/pygmt/src/text.py index bdc59950bc1..e21bcc8b6e4 100644 --- a/pygmt/src/text.py +++ b/pygmt/src/text.py @@ -165,7 +165,7 @@ def text_( if kind == "vectors" and text is None: raise GMTInvalidInput("Must provide text with x/y pairs or position") - # Build the `-F` parameter in gmt text. + # Build the -F option in gmt text. if "F" not in kwargs.keys() and ( ( position is not None