Skip to content

Commit f019bb0

Browse files
authored
Update the doctest output due to changes in the default grid registration (#2284)
1 parent 21ef836 commit f019bb0

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

pygmt/src/grd2xyz.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def grd2xyz(grid, output_type="pandas", outfile=None, **kwargs):
139139
>>> # Create a pandas DataFrame with the xyz data from an input grid
140140
>>> xyz_dataframe = pygmt.grd2xyz(grid=grid, output_type="pandas")
141141
>>> xyz_dataframe.head(n=2)
142-
lon lat elevation
143-
0 10.25 24.75 903.5
144-
1 10.75 24.75 820.0
142+
lon lat elevation
143+
0 10.0 25.0 863.0
144+
1 10.5 25.0 985.5
145145
"""
146146
if output_type not in ["numpy", "pandas", "file"]:
147147
raise GMTInvalidInput(

pygmt/src/grdclip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def grdclip(grid, **kwargs):
9090
... )
9191
>>> # Report the minimum and maximum data values
9292
>>> [grid.data.min(), grid.data.max()]
93-
[179.0, 2103.0]
93+
[170.0, 2275.5]
9494
>>> # Create a new grid from an input grid. Set all values below 1,000 to
9595
>>> # 0 and all values above 1,500 to 10,000
9696
>>> new_grid = pygmt.grdclip(

pygmt/src/grdhisteq.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ def compute_bins(
306306
>>> print(bins)
307307
start stop
308308
bin_id
309-
0 179.0 397.5
310-
1 397.5 475.5
311-
2 475.5 573.5
312-
3 573.5 710.5
313-
4 710.5 2103.0
309+
0 170.0 389.0
310+
1 389.0 470.5
311+
2 470.5 571.0
312+
3 571.0 705.0
313+
4 705.0 2275.5
314314
315315
See Also
316316
-------

pygmt/src/grdvolume.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ def grdvolume(grid, output_type="pandas", outfile=None, **kwargs):
9494
... grid=grid, contour=[200, 400, 50], output_type="pandas"
9595
... )
9696
>>> print(output_dataframe)
97-
0 1 2 3
98-
0 200 2.144285e+12 7.972228e+14 371.789489
99-
1 250 2.104042e+12 6.908183e+14 328.329232
100-
2 300 2.014978e+12 5.877195e+14 291.675420
101-
3 350 1.892109e+12 4.897545e+14 258.840510
102-
4 400 1.744792e+12 3.988316e+14 228.584026
97+
0 1 2 3
98+
0 200 2.318187e+12 8.533727e+14 368.120722
99+
1 250 2.272471e+12 7.383936e+14 324.929840
100+
2 300 2.162074e+12 6.273066e+14 290.141086
101+
3 350 2.018302e+12 5.222640e+14 258.764032
102+
4 400 1.857370e+12 4.252699e+14 228.963499
103103
"""
104104
if output_type not in ["numpy", "pandas", "file"]:
105105
raise GMTInvalidInput(

0 commit comments

Comments
 (0)