Closed
Description
Hi,
I tried to write a wrapper of the xyz2grd function , in a similar way to the grdfilter wrapper:
I added the function to the gridops.py file, and call it in the init.py file. Still, the function doesn't appear when I try to call it.
Maybe it wasn't as simple as change the 'grdcut' to 'grdfilter', but I would expect it to recognise the function anyway, and then give me errors...
xyz2grd
The function is used to transform a table/text file into a binary grid file.
Right now I use library to call gmt from python:
os.chdir(path_to_xyzfile)
res='60m'
infile=flist[0]
outfile='../nc/test.nc'
command=str('gmt xyz2grd '+str(infile)+' -G'+str(outfile)+' -I'+str(res)+' -Rg')
os.system(command)
Any ideas of how I can solve it?