Hello, My name is Arthur and I am new on this platform.
It has been a while since i used GMT. I am aware a lot has changed since then.
I learnt GMT using the Windows environment. I am not well informed about other platforms. Recently, I resumed using GMT in windows using my old setup files i had saved. However, I faced some challenge which I hope i could acquire assistance from this forum. I had downloaded a grid file (DEM). The range extent of the grid is 25.0/39:59:30/-5.0/10.0. When i run the script below. I see that the grid doesnt effect the settings of the range i defined
Thanks for the response. I have removed the grdraster, grdfilter and grdgradient commands and it seemed to be running well but then i got the message
grdimage: Could not find file [+nt0.5+a360]
I am sure i did not leave any space between -I and +nt0.5+a360 as you see in the code below. It still gives me the same error message. I placed the earth_relief_30s.grd file in the same directory with this batch file, could that have any effect or am i supposed to place them in some other directory? or it is with the settings of the environment. another question, when it is running, why does it take some time before it completes?
@echo off
SET GMTHOME=C:\programs\gmt6
SET HOME=C:\programs\gmt6
SET LIB=%LIB%;%GMTHOME%\LIB
SET PATH=%PATH%;%GMTHOME%\BIN;
set psfile=maps.eps
set farbe=-Ccolour_table.cpt
set range=-R29.4/32/-0.3/2.5
set proj=-JM18
To keep it simple, just do -I+d for now (I may be wrong on the other syntax).
No need to place any data anywhere. GMT downloads in the background and assembles the grid needed. Takes some time first time but fast later.
Keep the name as given: @earth_relief_15s, always with the leading @. But to get a crude plot quickly try 06m instead.
Thank you very much. I am getting a grasp of this version bit by bit. It is in fact better than the old versions. but I still have some issues. Like how to shift the make to positions i prefer. You can see that it is shifted to the bottom left, cutting part of the text. and there is alot of space above and right of it. I have looked around but failed to find a solution. Kindly assist.
set range=-R29.5/35/-1/4
set proj=-JM18
set farbe= -Cgraycolour_table.cpt
I think this is because you selected and eps format. If you use a raster format (like png), then the size of your final image is adjusted to the map (i.e. the white areas are cut).