Skip to content

Commit ce1af4f

Browse files
committed
Try pad=0
1 parent 39d39d4 commit ce1af4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pygmt/clib/session.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,8 @@ def virtualfile_from_xrgrid(self, xrgrid):
18921892
ranges=region,
18931893
inc=inc,
18941894
registration=_reg,
1895-
pad=self["GMT_PAD_DEFAULT"],
1895+
#pad=self["GMT_PAD_DEFAULT"],
1896+
pad=0,
18961897
)
18971898
if Version(self._info["version"]) < Version("6.5.0"):
18981899
# Upstream bug fixed in GMT>=6.5.0
@@ -1902,7 +1903,7 @@ def virtualfile_from_xrgrid(self, xrgrid):
19021903
header = gmtgrid.contents.header.contents
19031904
header.z_min, header.z_max = matrix.min(), matrix.max()
19041905

1905-
matrix = np.pad(matrix, self["GMT_PAD_DEFAULT"]).astype(np.float32)
1906+
#matrix = np.pad(matrix, self["GMT_PAD_DEFAULT"]).astype(np.float32)
19061907
gmtgrid.contents.data = matrix.ctypes.data_as(ctp.POINTER(gmt_grdfloat))
19071908

19081909
with self.open_virtualfile(family, geometry, "GMT_IN", gmtgrid) as vfile:

0 commit comments

Comments
 (0)