Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pygmt/base_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def grdcontour(self, grid, **kwargs):
I="shading",
C="cmap",
t="transparency",
x="cores",
)
@kwargs_to_strings(R="sequence")
def grdimage(self, grid, **kwargs):
Expand All @@ -327,6 +328,7 @@ def grdimage(self, grid, **kwargs):
grid : str or xarray.DataArray
The file name of the input grid or the grid loaded as a DataArray.
{t}
{x}

"""
kwargs = self._preprocess(**kwargs)
Expand Down
10 changes: 10 additions & 0 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@
Only visible when PDF or raster format output is selected.
Only the PNG format selection adds a transparency layer
in the image (for further processing). """,
"x": """\
cores : int
``[[-]n]``.
Limit the number of cores to be used in any OpenMP-enabled
multi-threaded algorithms. By default we try to use all available
cores. Set a number *n* to only use n cores (if too large it will
be truncated to the maximum cores available). Finally, give a
negative number *-n* to select (all - n) cores (or at least 1 if
n equals or exceeds all).
""",
}


Expand Down