I’m using GMT ver. 4.5.2 [64-bit] under Debian. I have an output file from a numerical model in Golden Software Surfer Grid 6 text file format. When I’m executing the following gmt command
$ grdimage gridfile.grd … > figure.ps
I receive the following error message:
grdimage: Not a supported grid format [gridfile.grd]
When I convert grid file to Golden Software Surfer Grid 7 binary file format using the Surfer, then grdimage executes OK.
Since I need to automate the process of figures generation, my question is how to make GMT ver. 4.5.2 accept Golden Software Surfer Grid 6 text file format input grid files?
No. grdimageneeds an grid format. I don’t remember what GMT4 can do anymore but maybe you can try the xyz2grd route. That program can ingest xyz and convert it into a grid format that grdimage accepts.