File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments