Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the doctest output due to changes in the default grid registration #2284

Merged
merged 3 commits into from
Dec 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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