Add common alias spacing (-I) for specifying grid increments#1288
Add common alias spacing (-I) for specifying grid increments#1288
Conversation
|
One thing I've been meaning to ask about at the |
The +e|n are modifiers that can be appended in addition to the units. For example: |
I can't find the original discussions in the GMT repository, but I believe the GMT developers agree with omitting units in the synopsis to make it shorter. |
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Ok, fixed with cab6ac1 (thanks @seisman)! Preview now looks ok, though not sure why it's starting on a different line still:
I've followed the format in https://github.com/GenericMappingTools/gmt/blob/6.2.0rc1/doc/rst/source/explain_-I.rst_ which is used in most of upstream GMT, though you're right that there is some inconsistency throughout the documentation pages. Personally, the |
…MappingTools#1288) Used to specify the grid spacing. See also https://github.com/GenericMappingTools/gmt/blob/6.2.0rc1/doc/rst/source/explain_-I.rst_. * Use standardized spacing (I) docstring in blockmean, blockmedian, grdfilter and surface Co-authored-by: Dongdong Tian <seisman.info@gmail.com>


Description of proposed changes
Used to specify the grid spacing. See also https://github.com/GenericMappingTools/gmt/blob/6.2.0rc1/doc/rst/source/explain_-I.rst_
Preview at https://pygmt-git-common-aliases-spacing-gmt.vercel.app/api/generated/pygmt.surface.html
This PR expands and standardizes the spacing (-I) parameter's docstring in
blockmean,blockmedian,grdfilterandsurface. The{I}common option will also be useful for many future PyGMT modules according to https://github.com/GenericMappingTools/pygmt/pull/1273/files#r637586300:Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version