Skip to content

Commit fdfe687

Browse files
authored
Update the one-sentence description of wrappers to match upstream documentation (#3857)
1 parent abf6f37 commit fdfe687

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+70
-70
lines changed

pygmt/src/basemap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
basemap - Plot base maps and frames for the figure.
2+
basemap - Plot base maps and frames.
33
"""
44

55
from pygmt.clib import Session
@@ -26,7 +26,7 @@
2626
@kwargs_to_strings(R="sequence", c="sequence_comma", p="sequence")
2727
def basemap(self, **kwargs):
2828
r"""
29-
Plot base maps and frames for the figure.
29+
Plot base maps and frames.
3030
3131
Creates a basic or fancy basemap with axes, fill, and titles. Several
3232
map projections are available, and the user may specify separate

pygmt/src/binstats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
binstats - Bin spatial data and determine statistics per bin
2+
binstats - Bin spatial data and determine statistics per bin.
33
"""
44

55
import xarray as xr

pygmt/src/coast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
coast - Plot land and water.
2+
coast - Plot continents, countries, shorelines, rivers, and borders.
33
"""
44

55
from pygmt.clib import Session
@@ -39,7 +39,7 @@
3939
@kwargs_to_strings(R="sequence", c="sequence_comma", p="sequence")
4040
def coast(self, **kwargs):
4141
r"""
42-
Plot continents, shorelines, rivers, and borders on maps.
42+
Plot continents, countries, shorelines, rivers, and borders.
4343
4444
Plots grayshaded, colored, or textured land masses [or water masses] on
4545
maps and [optionally] draws coastlines, rivers, and political

pygmt/src/colorbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
colorbar - Plot a colorbar.
2+
colorbar - Plot gray scale or color scale bar.
33
"""
44

55
from pygmt.clib import Session
@@ -32,7 +32,7 @@
3232
)
3333
def colorbar(self, **kwargs):
3434
r"""
35-
Plot colorbars on figures.
35+
Plot gray scale or color scale bar.
3636
3737
Both horizontal and vertical colorbars are supported. For CPTs with
3838
gradational colors (i.e., the lower and upper boundary of an interval

pygmt/src/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
config - set GMT defaults globally or locally.
2+
config - Change GMT default settings globally or locally.
33
"""
44

55
from inspect import Parameter, Signature
@@ -10,18 +10,18 @@
1010

1111
class config: # noqa: N801
1212
"""
13-
Set GMT defaults globally or locally.
13+
Change GMT default settings globally or locally.
1414
15-
Change GMT defaults globally::
15+
Change GMT default settings globally::
1616
1717
pygmt.config(PARAMETER=value)
1818
19-
Change GMT defaults locally by using it as a context manager::
19+
Change GMT default settings locally by using it as a context manager::
2020
2121
with pygmt.config(PARAMETER=value):
2222
...
2323
24-
Full GMT defaults list at :gmt-docs:`gmt.conf.html`
24+
Full GMT defaults list at :gmt-docs:`gmt.conf.html`.
2525
"""
2626

2727
# Manually set the __signature__ attribute to enable tab autocompletion

pygmt/src/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
contour - Plot contour table data.
2+
contour - Contour table data by direct triangulation.
33
"""
44

55
from pygmt.clib import Session

pygmt/src/dimfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@kwargs_to_strings(I="sequence", R="sequence")
2323
def dimfilter(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
2424
r"""
25-
Filter a grid by dividing the filter circle.
25+
Directional filtering of grids in the space domain.
2626
2727
Filter a grid in the space (or time) domain by
2828
dividing the given filter circle into the given number of sectors,

pygmt/src/filter1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
filter1d - Time domain filtering of 1-D data tables
2+
filter1d - Time domain filtering of 1-D data tables.
33
"""
44

55
from typing import Literal

pygmt/src/grd2cpt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grd2cpt - Create a CPT from a grid file.
2+
grd2cpt - Make linear or histogram-equalized color palette table from grid.
33
"""
44

55
from pygmt.clib import Session
@@ -33,7 +33,7 @@
3333
@kwargs_to_strings(G="sequence", L="sequence", R="sequence", T="sequence")
3434
def grd2cpt(grid, **kwargs):
3535
r"""
36-
Make GMT color palette tables from a grid file.
36+
Make linear or histogram-equalized color palette table from grid.
3737
3838
This function will help you to make static color palette tables (CPTs).
3939
By default, the CPT will be saved as the current CPT of the session,

pygmt/src/grd2xyz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grd2xyz - Convert grid to data table
2+
grd2xyz - Convert grid to data table.
33
"""
44

55
from typing import Literal

pygmt/src/grdclip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdclip - Change the range and extremes of grid values.
2+
grdclip - Clip the range of grid values.
33
"""
44

55
import xarray as xr
@@ -27,7 +27,7 @@
2727
)
2828
def grdclip(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
2929
r"""
30-
Set values in a grid that meet certain criteria to a new value.
30+
Clip the range of grid values.
3131
3232
Produce a clipped ``outgrid`` or :class:`xarray.DataArray` version of the
3333
input ``grid`` file.

pygmt/src/grdcontour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdcontour - Plot a contour figure.
2+
grdcontour - Make contour map using a grid.
33
"""
44

55
from pygmt.clib import Session
@@ -38,7 +38,7 @@
3838
@kwargs_to_strings(R="sequence", L="sequence", c="sequence_comma", p="sequence")
3939
def grdcontour(self, grid, **kwargs):
4040
r"""
41-
Convert grids or images to contours and plot them on maps.
41+
Make contour map using a grid.
4242
4343
Takes a grid file name or an :class:`xarray.DataArray` object as input.
4444

pygmt/src/grdcut.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdcut - Extract subregion from a grid.
2+
grdcut - Extract subregion from a grid or image or a slice from a cube.
33
"""
44

55
from typing import Literal
@@ -33,7 +33,7 @@ def grdcut(
3333
grid, kind: Literal["grid", "image"] = "grid", outgrid: str | None = None, **kwargs
3434
) -> xr.DataArray | None:
3535
r"""
36-
Extract subregion from a grid or image.
36+
Extract subregion from a grid or image or a slice from a cube.
3737
3838
Produce a new ``outgrid`` file which is a subregion of ``grid``. The
3939
subregion is specified with ``region``; the specified range must not exceed

pygmt/src/grdgradient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@kwargs_to_strings(A="sequence", E="sequence", R="sequence")
3333
def grdgradient(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
3434
r"""
35-
Compute the directional derivative of the vector gradient of the data.
35+
Compute directional gradients from a grid.
3636
3737
Can accept ``azimuth``, ``direction``, and ``radiance`` input to create
3838
the resulting gradient.

pygmt/src/grdimage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdimage - Plot grids or images.
2+
grdimage - Project and plot grids or images.
33
"""
44

55
from pygmt.clib import Session

pygmt/src/grdinfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdinfo - Retrieve info about grid file.
2+
grdinfo - Extract information from 2-D grids or 3-D cubes.
33
"""
44

55
from pygmt.clib import Session
@@ -28,7 +28,7 @@
2828
@kwargs_to_strings(D="sequence", I="sequence", R="sequence")
2929
def grdinfo(grid, **kwargs):
3030
r"""
31-
Get information about a grid.
31+
Extract information from 2-D grids or 3-D cubes.
3232
3333
Can read the grid from a file or given as an :class:`xarray.DataArray` grid.
3434

pygmt/src/grdlandmask.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdlandmask - Create a "wet-dry" mask grid from shoreline data base
2+
grdlandmask - Create a "wet-dry" mask grid from shoreline database.
33
"""
44

55
import xarray as xr
@@ -25,7 +25,7 @@
2525
@kwargs_to_strings(I="sequence", R="sequence", N="sequence", E="sequence")
2626
def grdlandmask(outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
2727
r"""
28-
Create a grid file with set values for land and water.
28+
Create a "wet-dry" mask grid from shoreline database.
2929
3030
Read the selected shoreline database and create a grid to specify which
3131
nodes in the specified grid are over land or over water. The nodes defined

pygmt/src/grdproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@kwargs_to_strings(C="sequence", D="sequence", R="sequence")
2828
def grdproject(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
2929
r"""
30-
Change projection of gridded data between geographical and rectangular.
30+
Forward and inverse map transformation of grids.
3131
3232
This method will project a geographical gridded data set onto a
3333
rectangular grid. If ``inverse`` is ``True``, it will project a

pygmt/src/grdsample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdsample - Resample a grid onto a new lattice
2+
grdsample - Resample a grid onto a new lattice.
33
"""
44

55
import xarray as xr
@@ -23,7 +23,7 @@
2323
@kwargs_to_strings(I="sequence", R="sequence")
2424
def grdsample(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
2525
r"""
26-
Change the registration, spacing, or nodes in a grid file.
26+
Resample a grid onto a new lattice.
2727
2828
This reads a grid file and interpolates it to create a new grid
2929
file. It can change the registration with ``translate`` or

pygmt/src/grdtrack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdtrack - Sample grids at specified (x,y) locations.
2+
grdtrack - Sample one or more grids at specified locations.
33
"""
44

55
from typing import Literal
@@ -56,7 +56,7 @@ def grdtrack(
5656
**kwargs,
5757
) -> pd.DataFrame | np.ndarray | None:
5858
r"""
59-
Sample grids at specified (x,y) locations.
59+
Sample one or more grids at specified locations.
6060
6161
Reads one or more grid files and a table (from file or an array input; but
6262
see ``profile`` for exception) with (x,y) [or (lon,lat)] positions in the

pygmt/src/grdview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
grdview - Create a three-dimensional plot from a grid.
2+
grdview - Create 3-D perspective image or surface mesh from a grid.
33
"""
44

55
from pygmt.clib import Session

pygmt/src/grdvolume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def grdvolume(
3333
**kwargs,
3434
) -> pd.DataFrame | np.ndarray | None:
3535
r"""
36-
Determine the volume between the surface of a grid and a plane.
36+
Calculate grid volume and area constrained by a contour.
3737
3838
Read a 2-D grid file and calculate the volume contained below the surface
3939
and above the plane specified by the given contour (or zero if not given)

pygmt/src/histogram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Histogram - Create a histogram.
2+
Histogram - Calculate and plot histograms.
33
"""
44

55
from pygmt.clib import Session
@@ -41,7 +41,7 @@
4141
)
4242
def histogram(self, data, **kwargs):
4343
r"""
44-
Plot Cartesian histograms.
44+
Calculate and plot histograms.
4545
4646
Full option list at :gmt-docs:`histogram.html`
4747

pygmt/src/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
image - Plot an image.
2+
image - Plot raster or EPS images.
33
"""
44

55
from pygmt.clib import Session
@@ -22,7 +22,7 @@
2222
@kwargs_to_strings(R="sequence", c="sequence_comma", p="sequence")
2323
def image(self, imagefile, **kwargs):
2424
r"""
25-
Place images or EPS files on maps.
25+
Plot raster or EPS images.
2626
2727
Reads an Encapsulated PostScript file or a raster image file and plots
2828
it on a map.

pygmt/src/inset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
inset - Create inset figures.
2+
inset - Manage figure inset setup and completion.
33
"""
44

55
import contextlib
@@ -24,7 +24,7 @@
2424
@kwargs_to_strings(D="sequence", M="sequence", R="sequence")
2525
def inset(self, **kwargs):
2626
r"""
27-
Create an inset figure to be placed within a larger figure.
27+
Manage figure inset setup and completion.
2828
2929
This method sets the position, frame, and margins for a smaller figure
3030
inside of the larger figure. Plotting methods that are called within the

pygmt/src/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def legend(
3737
**kwargs,
3838
):
3939
r"""
40-
Plot legends on maps.
40+
Plot a legend.
4141
4242
Makes legends that can be overlaid on maps. Reads specific
4343
legend-related information from an input file, or automatically creates

pygmt/src/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
logo - Plot the GMT logo
2+
logo - Plot the GMT logo.
33
"""
44

55
from pygmt.clib import Session

pygmt/src/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
plot - Plot in two dimensions.
2+
plot - Plot lines, polygons, and symbols in 2-D.
33
"""
44

55
from typing import Literal

pygmt/src/plot3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
plot3d - Plot in three dimensions.
2+
plot3d - Plot lines, polygons, and symbols in 3-D.
33
"""
44

55
from typing import Literal

pygmt/src/psconvert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
psconvert - Convert [E]PS file(s) to other formats.
2+
psconvert - Convert [E]PS file(s) to other formats using Ghostscript.
33
"""
44

55
from pathlib import Path
@@ -25,7 +25,7 @@
2525
@kwargs_to_strings()
2626
def psconvert(self, **kwargs):
2727
r"""
28-
Convert [E]PS file(s) to other formats.
28+
Convert [E]PS file(s) to other formats using Ghostscript.
2929
3030
Converts one or more PostScript files to other formats (BMP, EPS, JPEG,
3131
PDF, PNG, PPM, TIFF) using Ghostscript.

pygmt/src/rose.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
rose - Plot windrose diagrams or polar histograms.
2+
rose - Plot a polar histogram (rose, sector, windrose diagrams).
33
"""
44

55
from pygmt.clib import Session
@@ -44,7 +44,7 @@
4444
@kwargs_to_strings(R="sequence", c="sequence_comma", i="sequence_comma", p="sequence")
4545
def rose(self, data=None, length=None, azimuth=None, **kwargs):
4646
"""
47-
Plot windrose diagrams or polar histograms.
47+
Plot a polar histogram (rose, sector, windrose diagrams).
4848
4949
Takes a matrix, (length,azimuth) pairs, or a file name as input
5050
and plots windrose diagrams or polar histograms (sector diagram

0 commit comments

Comments
 (0)