|
16 | 16 | )
|
17 | 17 | from pygmt.io import load_dataarray
|
18 | 18 |
|
| 19 | +__doctest_skip__ = ["grdhisteq.*"] |
| 20 | + |
19 | 21 |
|
20 | 22 | class grdhisteq: # pylint: disable=invalid-name
|
21 | 23 | r"""
|
@@ -187,16 +189,14 @@ def equalize_grid(
|
187 | 189 |
|
188 | 190 | Example
|
189 | 191 | -------
|
190 |
| - >>> import pygmt # doctest: +SKIP |
| 192 | + >>> import pygmt |
191 | 193 | >>> # Load a grid of @earth_relief_30m data, with an x-range of 10 to
|
192 | 194 | >>> # 30, and a y-range of 15 to 25
|
193 | 195 | >>> grid = pygmt.datasets.load_earth_relief(
|
194 | 196 | ... resolution="30m", region=[10, 30, 15, 25]
|
195 |
| - ... ) # doctest: +SKIP |
| 197 | + ... ) |
196 | 198 | >>> # Create a new grid with a Gaussian data distribution
|
197 |
| - >>> grid = pygmt.grdhisteq.equalize_grid( |
198 |
| - ... grid=grid, gaussian=True |
199 |
| - ... ) # doctest: +SKIP |
| 199 | + >>> grid = pygmt.grdhisteq.equalize_grid(grid=grid, gaussian=True) |
200 | 200 |
|
201 | 201 | See Also
|
202 | 202 | -------
|
@@ -288,18 +288,16 @@ def compute_bins(
|
288 | 288 |
|
289 | 289 | Example
|
290 | 290 | -------
|
291 |
| - >>> import pygmt # doctest: +SKIP |
| 291 | + >>> import pygmt |
292 | 292 | >>> # Load a grid of @earth_relief_30m data, with an x-range of 10 to
|
293 | 293 | >>> # 30, and a y-range of 15 to 25
|
294 | 294 | >>> grid = pygmt.datasets.load_earth_relief(
|
295 | 295 | ... resolution="30m", region=[10, 30, 15, 25]
|
296 |
| - ... ) # doctest: +SKIP |
| 296 | + ... ) |
297 | 297 | >>> # Find elevation intervals that splits the data range into 5
|
298 | 298 | >>> # divisions, each of which have an equal area in the original grid.
|
299 |
| - >>> bins = pygmt.grdhisteq.compute_bins( |
300 |
| - ... grid=grid, divisions=5 |
301 |
| - ... ) # doctest: +SKIP |
302 |
| - >>> print(bins) # doctest: +SKIP |
| 299 | + >>> bins = pygmt.grdhisteq.compute_bins(grid=grid, divisions=5) |
| 300 | + >>> print(bins) |
303 | 301 | start stop
|
304 | 302 | bin_id
|
305 | 303 | 0 179.0 397.5
|
|
0 commit comments