Skip to content

Commit

Permalink
Update the doctest output due to changes in the default grid registra…
Browse files Browse the repository at this point in the history
…tion (#2284)
  • Loading branch information
seisman authored Dec 29, 2022
1 parent 21ef836 commit f019bb0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions pygmt/src/grd2xyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def grd2xyz(grid, output_type="pandas", outfile=None, **kwargs):
>>> # Create a pandas DataFrame with the xyz data from an input grid
>>> xyz_dataframe = pygmt.grd2xyz(grid=grid, output_type="pandas")
>>> xyz_dataframe.head(n=2)
lon lat elevation
0 10.25 24.75 903.5
1 10.75 24.75 820.0
lon lat elevation
0 10.0 25.0 863.0
1 10.5 25.0 985.5
"""
if output_type not in ["numpy", "pandas", "file"]:
raise GMTInvalidInput(
Expand Down
2 changes: 1 addition & 1 deletion pygmt/src/grdclip.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def grdclip(grid, **kwargs):
... )
>>> # Report the minimum and maximum data values
>>> [grid.data.min(), grid.data.max()]
[179.0, 2103.0]
[170.0, 2275.5]
>>> # Create a new grid from an input grid. Set all values below 1,000 to
>>> # 0 and all values above 1,500 to 10,000
>>> new_grid = pygmt.grdclip(
Expand Down
10 changes: 5 additions & 5 deletions pygmt/src/grdhisteq.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ def compute_bins(
>>> print(bins)
start stop
bin_id
0 179.0 397.5
1 397.5 475.5
2 475.5 573.5
3 573.5 710.5
4 710.5 2103.0
0 170.0 389.0
1 389.0 470.5
2 470.5 571.0
3 571.0 705.0
4 705.0 2275.5
See Also
-------
Expand Down
12 changes: 6 additions & 6 deletions pygmt/src/grdvolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ def grdvolume(grid, output_type="pandas", outfile=None, **kwargs):
... grid=grid, contour=[200, 400, 50], output_type="pandas"
... )
>>> print(output_dataframe)
0 1 2 3
0 200 2.144285e+12 7.972228e+14 371.789489
1 250 2.104042e+12 6.908183e+14 328.329232
2 300 2.014978e+12 5.877195e+14 291.675420
3 350 1.892109e+12 4.897545e+14 258.840510
4 400 1.744792e+12 3.988316e+14 228.584026
0 1 2 3
0 200 2.318187e+12 8.533727e+14 368.120722
1 250 2.272471e+12 7.383936e+14 324.929840
2 300 2.162074e+12 6.273066e+14 290.141086
3 350 2.018302e+12 5.222640e+14 258.764032
4 400 1.857370e+12 4.252699e+14 228.963499
"""
if output_type not in ["numpy", "pandas", "file"]:
raise GMTInvalidInput(
Expand Down

0 comments on commit f019bb0

Please sign in to comment.