From 837e81f4812ccb0e48ee9aeba1feee733ba6c40e Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Thu, 7 Oct 2021 06:32:39 +0100 Subject: [PATCH] Add missing aliases to grdproject (#1514) *Add center, spacing, dpi, scaling, and unit aliases to grdproject Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> Co-authored-by: Dongdong Tian --- pygmt/src/grdproject.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/pygmt/src/grdproject.py b/pygmt/src/grdproject.py index d50c654438e..b3fde8be248 100644 --- a/pygmt/src/grdproject.py +++ b/pygmt/src/grdproject.py @@ -16,15 +16,20 @@ @fmt_docstring @use_alias( + C="center", + D="spacing", + E="dpi", + F="scaling", G="outgrid", J="projection", I="inverse", + M="unit", R="region", V="verbose", n="interpolation", r="registration", ) -@kwargs_to_strings(R="sequence") +@kwargs_to_strings(C="sequence", R="sequence") def grdproject(grid, **kwargs): r""" Change projection of gridded data between geographical and rectangular. @@ -58,6 +63,26 @@ def grdproject(grid, **kwargs): geographical [Default is False]. {J} {R} + center : str or list + [*dx*, *dy*]. + Let projected coordinates be relative to projection center [Default + is relative to lower left corner]. Optionally, add offsets in the + projected units to be added (or subtracted when ``inverse`` is set) to + (from) the projected coordinates, such as false eastings and + northings for particular projection zones [0/0]. + {I} + dpi : int + Set the resolution for the new grid in dots per inch. + scaling : str + [**c**\|\ **i**\|\ **p**\|\ **e**\|\ **f**\|\ + **k**\|\ **M**\|\ **n**\|\ **u**]. + Force 1:1 scaling, i.e., output or output data are in actual projected + meters [**e**]. To specify other units, append **f** (foot), + **k** (km), **M** (statute mile), **n** (nautical mile), **u** + (US survey foot), **i** (inch), **c** (cm), or **p** (point). + unit : str + Append **c**, **i**, or **p** to indicate that cm, inch, or point + should be the projected measure unit. Cannot be used with ``scaling``. {V} {n} {r}