Skip to content

Commit

Permalink
Add link for boundary conditions in -n (#8589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban82 authored Sep 30, 2024
1 parent 5ae3a7e commit 54dbea3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/rst/source/explain_-n_full.rst_
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ The following modifiers are supported:
- **+a** - Switch off antialiasing (where supported) [default uses antialiasing].
- **+b** - Override boundary conditions used, by appending *g* for geographic, *p* for periodic, or *n* for
natural boundary conditions. For the latter two you may append **x** or **y** to specify just one direction, otherwise
both are assumed.
both are assumed. For more information see :ref:`grid-boundary-conditions`.

- **+c** - Clip the interpolated grid to input z-min/z-max [default may exceed limits].
- **+t** - Control how close to nodes with NaNs the interpolation will go based on *threshold*. A *threshold* of 1.0
requires all (4 or 16) nodes involved in interpolation to be non-NaN. For example, 0.5 will interpolate about half
Expand Down
4 changes: 3 additions & 1 deletion doc/rst/source/reference/file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,16 @@ option (see Section :ref:`option_nodereg`). **Note**: The smallest
pixel-registered grid can be 1x1 (storing a single value), while a
gridline-registered grid cannot be smaller than 2x2.

.. _grid-boundary-conditions:

Boundary Conditions for operations on grids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GMT has the option to specify boundary conditions in some programs
that operate on grids (e.g.,
:doc:`/grdsample`, :doc:`/grdgradient`,
:doc:`/grdtrack`, :doc:`/nearneighbor`, and
:doc:`/grdview`, to name a few. The desired
:doc:`/grdview`, to name a few). The desired
condition can be set with the common GMT option **-n**; see Section
:ref:`option_-n`. The boundary conditions come into play when
interpolating or computing derivatives near the limits of the region
Expand Down

0 comments on commit 54dbea3

Please sign in to comment.